package com.zioinfo.mes.workorder;

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

/**
 * 작업지시 (mes_workorder).
 *
 * <p>상태: CREATED → RELEASED → INPROGRESS → DONE → CLOSED (CANCELLED 가능).
 */
@Data
public class MesWorkOrder {
    private Long id;
    private String woNo;
    private String itemCode;
    private String itemName;       // 조인 표시(비영속)
    private Double planQty;
    private Double producedQty;     // 누적 산출(생산실적 합)
    private Double defectQty;        // 누적 불량
    private String unit;
    private LocalDate dueDate;
    private String warehouseCode;   // 산출 입고 창고
    private String status;          // CREATED/RELEASED/INPROGRESS/DONE/CLOSED/CANCELLED
    private String priority;        // LOW/MEDIUM/HIGH
    private String remark;
    private String createdBy;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}
