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 WorldEvent {
    private Long id;
    @JsonProperty("row_num")
    private Integer rowNum;
    private String title;
    @JsonProperty("global_event_action_id")
    private Integer globalEventActionId;
    @JsonProperty("personal_event_action_id")
    private Integer personalEventActionId;
    // 시작 일자
    @JsonProperty("start_dt")
    private LocalDateTime startDt;
    // 종료 일자
    @JsonProperty("end_dt")
    private LocalDateTime endDt;
    //이벤트 상태
    private EVENT_STATUS status;
    @JsonProperty("max_point")
    private Integer maxPoint;

    private boolean deleted;

    @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 EVENT_STATUS {
        WAIT,
        FINISH,
        FAIL,
        RUNNING,
        ;
    }
}
