package com.caliverse.admin.domain.request;

import com.caliverse.admin.domain.entity.HISTORYTYPEDETAIL;
import com.caliverse.admin.domain.entity.SEARCHTYPE;
import com.caliverse.admin.domain.entity.log.LogAction;
import com.caliverse.admin.domain.entity.log.LogCategory;
import com.caliverse.admin.mongodb.entity.DBType;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class HistoryRequest {
    @JsonProperty("start_dt")
    private LocalDateTime startDt;
    @JsonProperty("end_dt")
    private LocalDateTime endDt;
    @JsonProperty("history_type")
    private HISTORYTYPEDETAIL historyType;
    @JsonProperty("user_mail")
    private String userMail;
    @JsonProperty("db_type")
    private DBType dbType;
    private LogCategory category;
    private LogAction action;
    private String status;

    @JsonProperty("search_type")
    private SEARCHTYPE searchType;
    @JsonProperty("search_key")
    private String searchKey;

    @JsonProperty("sql_id")
    private long sqlId;
    @JsonProperty("table_name")
    private String tableName;

}
