package com.zioinfo.mes.capa;

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

/**
 * 시정·예방조치 (mes_capa) — Corrective And Preventive Action(8D).
 *
 * <p>status: OPEN → INPROGRESS → VERIFY → CLOSED. capaType: CORRECTIVE/PREVENTIVE.
 */
@Data
public class MesCapa {
    private Long id;
    private String capaNo;
    private String ncrNo;
    private String capaType;         // CORRECTIVE/PREVENTIVE
    private String title;
    private String rootCause;
    private String actionPlan;       // 8D/시정조치 계획
    private String owner;
    private LocalDate dueDate;
    private String effectiveness;
    private String status;           // OPEN/INPROGRESS/VERIFY/CLOSED
    private String createdBy;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}
