package com.dbnt.kcscbackend.admin.boards.entity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

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

@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "tn_bbs_contents")
public class TnBbsContents {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "bbs_cont_seq")
  private Long bbsContSeq;

  @Column(name = "bbs_seq", nullable = false)
  private Long bbsSeq;

  @Column(name = "bbs_cont_title")
  private String bbsContTitle;

  @Column(name = "bbs_contents", columnDefinition = "TEXT")
  private String bbsContents;

  @Column(name = "bbs_cont_seq_group")
  private Long bbsContSeqGroup;

  @Column(name = "bbs_cont_seq_parent")
  private Long bbsContSeqParent;

  @Column(name = "bbs_cont_level", nullable = false)
  private Long bbsContLevel;

  @Column(name = "bbs_cont_sort")
  private Long bbsContSort;

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

  @Column(name = "bbs_read_cnt", nullable = false)
  private Long bbsReadCnt;

  @Column(name = "fixed_yn", nullable = false)
  private String fixedYn;

  @Column(name = "secret_yn", nullable = false)
  private String secretYn;

  @Column(name = "secret_pwd")
  private String secretPwd;

  @Column(name = "doc_info_seq")
  private Long docInfoSeq;

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

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

  @Column(name = "frst_crt_dt", nullable = false)
  private LocalDateTime frstCrtDt;

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

  @Column(name = "last_chg_dt")
  private LocalDateTime lastChgDt;

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

  @Column(name = "old_seq")
  private Long oldSeq;

  @Column(name = "bbs_id")
  private String bbsId;
}