package com.dbnt.faisp.main.userInfo.model;

import com.dbnt.faisp.config.BaseModel;
import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.time.LocalDateTime;


@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "user_request_log")
public class UserRequestLog extends BaseModel {
  @Id
  @Column(name = "ul_key")
  private String ulKey;
  @Column(name = "contact_ip")
  private String contactIp;
  @Column(name = "request_url")
  private String requestUrl;
  @Column(name = "request_method")
  private String requestMethod;
  @Column(name = "search_params")
  private String searchParams;
  @Column(name = "handler_description")
  private String handlerDescription;
  @Column(name = "user_organ")
  private String userOrgan;
  @Column(name = "user_belong")
  private String userBelong;
  @Column(name = "wrt_dt")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private LocalDateTime wrtDt;
}
