package com.dbnt.kcscbackend.admin.contents.survey.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;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "tn_survey_qt")
public class TnSurveyQt {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "qt_seq")
  private Integer qtSeq;

  @Column(name = "svy_seq")
  private Integer svySeq;
  @Column(name = "qt_title")
  private String qtTitle;
  @Column(name = "qt_desc")
  private String qtDesc;
  @Column(name = "qt_type")
  private Integer qtType;
  @Column(name = "max_no")
  private Integer maxNo;
  @Column(name = "mandatory_yn")
  private String mandatoryYn;
  @Column(name = "etc_yn")
  private String etcYn;
  @Column(name = "old_seq")
  private Integer oldSeq;

  @Transient
  private List<TnSurveyQtItem> itemList = new ArrayList<>();
}
