package com.tzy.pojo.question;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Table( name = "questionnaire")
@Data
public class Questionnaire implements Serializable {

  @Id
  private Long id;
  @JsonIgnore
  private String type;
  private String title;
  private String description;
  @JsonIgnore
  private Integer status;
  private Integer incrAmount;
  private Integer dailyLimit;
  private Integer weeklyLimit;
  @JsonIgnore
  private Date createTime;

  private List<Question> questions;

}
