package com.maternalmall.domain;

import jakarta.persistence.*;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;

import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "inventory_record")
public class InventoryRecord {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable = false)
    private Long productId;

    @Column(nullable = false)
    private Long merchantId;

    @Column(nullable = false)
    private Integer changeQty;

    @Column(length = 255)
    private String note;

    @CreationTimestamp
    private LocalDateTime createdAt;
}
