package com.dbnt.kcscbackend.admin.contents.popUp.entity;

import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

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

@Getter
@Setter
@Entity(name = "tn_popup_mng")
@NoArgsConstructor
public class TnPopupMngWithoutPopupContents {

  @Id
  @Column(name = "popup_seq")
  private Long popupSeq;

  @Column(name = "popup_title")
  private String popupTitle;

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

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

  @Column(name = "file_grp_id")
  private String fileGrpId;

  @Column(name = "frst_crt_id")
  private String frstCrtId;

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

  @Column(name = "last_chg_id")
  private String lastChgId;

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

  @Column(name = "use_yn")
  private String useYn;

}