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.LocalDate;

@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "tn_bbs")
public class TnBbs {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "bbs_seq")
  private Long bbsSeq;

  @Column(name = "bbs_id", nullable = false)
  private String bbsId;

  @Column(name = "bbs_title", nullable = false)
  private String bbsTitle;

  @Column(name = "bbs_desc")
  private String bbsDesc;

  @Column(name = "bbs_type")
  private String bbsType;

  @Column(name = "bbs_ans_yn", nullable = false)
  private char bbsAnsYn;

  @Column(name = "bbs_repl_yn", nullable = false)
  private char bbsReplYn;

  @Column(name = "read_role_grp_id")
  private String readRoleGrpId;

  @Column(name = "write_role_grp_id")
  private String writeRoleGrpId;

  @Column(name = "sec_role_grp_id")
  private String secRoleGrpId;

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

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

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

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

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

  @Column(name = "oldd_seq")
  private Long olddSeq;

}