package com.dbnt.kcscbackend.standardCode.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

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

@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "tn_document_content")
public class TnDocumentContent {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "doc_cont_seq")
  private Integer docContSeq;
  @Column(name = "doc_info_seq")
  private Integer docInfoSeq;
  @Column(name = "cont_order")
  private Integer contOrder;
  @Column(name = "onto_link_cd")
  private String ontoLinkCd;
  @Column(name = "group_title")
  private String groupTitle;
  @Column(name = "cont_type_cd")
  private String contTypeCd;
  @Column(name = "cont_level")
  private Integer contLevel;
  @Column(name = "parent_cont_seq")
  private Integer parentContSeq;
  @Column(name = "cont_label")
  private String  contLabel;
  @Column(name = "table_content")
  private String tableContent;
  @Column(name = "full_content")
  private String fullContent;
  @Column(name = "cont_rev_yn")
  private String contRevYn;
  @Column(name = "cont_abolish_yn")
  private String contAbolishYn;
  @Column(name = "doc_rev_hist_seq")
  private Integer docRevHistSeq;
  @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;
  @Column(name = "error_cd")
  private String errorCd;
  @Column(name = "old_seq")
  private Integer oldSeq;
}
