package egovframework.dbnt.kcsc.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_group")
public class TnDocumentGroup {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "group_seq")
  private Integer groupSeq;
  @Column(name = "group_full_cd")
  private String groupFullCd;
  @Column(name = "kcsc_cd")
  private String kcscCd;
  @Column(name = "group_cur_cd")
  private String groupCurCd;
  @Column(name = "group_nm")
  private String groupNm;
  @Column(name = "group_type")
  private String groupType;
  @Column(name = "item_cd")
  private String itemCd;
  @Column(name = "doc_type")
  private Integer docType;
  @Column(name = "doc_level")
  private Integer docLevel;
  @Column(name = "doc_order")
  private Integer docOrder;
  @Column(name = "parent_group_seq")
  private Integer parentGroupSeq;
  @Column(name = "rvsn_remark")
  private String rvsnRemark;
  @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 = "old_seq")
  private Integer oldSeq;
}
