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 LandOwnerChange {
    private Long id;
    @JsonProperty("row_num")
    private Integer rowNum;
    @JsonProperty("land_id")
    private Integer landId;
    @JsonProperty("land_name")
    private String landName;
    @JsonProperty("building_id")
    private Integer buildingId;
    @JsonProperty("building_name")
    private String buildingName;
    @JsonProperty("user_guid")
    private String userGuid;
    @JsonProperty("user_name")
    private String userName;
    @JsonProperty("reservation_dt")
    private LocalDateTime reservationDt;
    @JsonProperty("is_reserve")
    private boolean isReserve;
    private CHANGE_STATUS status;

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