package com.zioinfo.mes.lotserial;

import lombok.Data;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * LOT/시리얼 (mes_lotserial) — 생산/입고로 발생한 LOT·시리얼 추적·유효기간.
 *
 * <p>status: ACTIVE/CONSUMED/SHIPPED/EXPIRED.
 */
@Data
public class MesLotSerial {
    private Long id;
    private String lotNo;
    private String serialNo;
    private String itemCode;
    private String itemName;       // 조인 표시(비영속)
    private Double qty;
    private String sourceType;     // PRODUCTION/RECEIVING
    private String sourceRef;
    private LocalDate mfgDate;
    private LocalDate expiryDate;
    private String status;
    private String createdBy;
    private LocalDateTime createdAt;
}
