package com.maternalmall.domain;

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

import java.time.LocalDateTime;

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

    @Column(nullable = false)
    private Long orderId;

    @Column(nullable = false)
    private Long merchantId;

    @Column(length = 255, nullable = false)
    private String status;

    @Column(length = 255)
    private String note;

    @CreationTimestamp
    private LocalDateTime createdAt;
}
