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.LocalDate;
import java.awt.*;

@Getter
@Setter
@Accessors(chain = true)
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "th_attach_file_log")
public class ThAttachFileLog {
    @Id
    @Column(name = "file_log_seq")
    private Long fileLogSeq;

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

    @Column(name = "access_dt")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate accessDt;
}
