package com.zioinfo.mes.item;

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

/**
 * 품목 마스터 (mes_item) — 원자재/반제품/제품/부자재.
 *
 * <p>itemType: RAW(원자재), WIP(반제품), FG(완제품), SUB(부자재)
 */
@Data
public class MesItem {
    private Long id;
    private String itemCode;
    private String itemName;
    private String itemType;     // RAW / WIP / FG / SUB
    private String unit;         // EA, KG, M, BOX ...
    private String barcode;
    private String spec;
    private Double safetyStock;
    private String warehouseCode; // 기본 보관 창고
    private String attributes;    // JSONB — 가변 속성
    private String status;        // ACTIVE / INACTIVE
    private String createdBy;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}
