package com.zioinfo.mes.equipment;

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

/**
 * 설비 마스터 (mes_equipment) — 점검주기·파라미터(JSONB)·상태.
 */
@Data
public class MesEquipment {
    private Long id;
    private String equipmentCode;
    private String equipmentName;
    private String processCode;
    private String warehouseCode;   // 위치(라인/공장)
    private Integer checkCycleDays;  // 점검 주기(일)
    private LocalDateTime lastCheckedAt;
    private String parameters;       // JSONB — 가변 설비 파라미터
    private String runStatus;        // RUN / IDLE / DOWN / MAINT
    private String status;           // ACTIVE / INACTIVE
    private String createdBy;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}
