package com.caliverse.admin.domain.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Calium {
    private Long id;
    @JsonProperty("row_num")
    private Long rowNum;
    // 요청 사유
    private String content;
    private String dept;
    private double count;
    //칼리움 요청 상태
    private CALIUMREQUESTSTATUS status;
    // 요청 id
    @JsonProperty("request_id")
    private String requestId;
    @JsonProperty("create_time")
    private String createTime;
    @JsonProperty("state_message")
    private String stateMessage;
    @JsonProperty("state_time")
    private String stateTime;

    @JsonProperty("create_by")
    private String createBy;
    @JsonProperty("create_dt")
    private LocalDateTime createDt;
    @JsonProperty("update_by")
    private String updateBy;
    @JsonProperty("update_dt")
    private LocalDateTime updateDt;

    public enum CALIUMREQUESTSTATUS {
        WAIT,
        FINISH,
        FAIL,
        COMPLETE,
        REJECT
        ;
    }
}
