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

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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;


@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "user_inout_log")
public class UserInoutLog extends BaseModel {
  @Id
  @Column(name = "inout_key")
  private String inoutKey;
  @Column(name = "inout_type")
  private String inoutType;
  @Column(name = "contact_ip")
  private String contactIp;
  @Column(name = "session_id")
  private String sessionId;
  @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;

}
