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

import java.io.Serializable;

import com.dbnt.kcscbackend.config.common.BoardParams;
import io.swagger.v3.oas.annotations.media.Schema;
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.time.LocalDateTime;

@Getter
@Setter
@Accessors(chain = true)
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "th_user_privacy_log")
public class ThPrivacyLog extends BoardParams implements Serializable {
    private static final long serialVersionUID = -3779821913760046011L;

    @Id
    @Column(name = "upl_seq")
    private Long uplSeq;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "target_user_id")
    private String targetUserId;

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

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

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