package com.dbnt.kcscbackend.admin.logs.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
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
@Accessors(chain = true)
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "th_attach_file_log")
public class ThAttachFileLog {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "file_log_seq")
    private Long fileLogSeq;

    @Column(name = "file_seq")
    private Long fileSeq;

    @Column(name = "access_type")
    private String accessType;

    @Column(name = "access_id")
    private String accessId;

    @Column(name = "access_dt")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime accessDt;

    @Column(name = "ip_address")
    private String ipAddress;

    @Column(name = "group_cur_cd")
    private String groupCurCd;
}
