package com.cirle.scientific.po;/*
 *24901
 *2022/12/21
 *17:28
 */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.*;
import java.util.Date;

/**
 * @author 24901
 */
@Entity
@Table(name = "qkj_question_answer_app")
@Data
@ApiModel
@EntityListeners(AuditingEntityListener.class)
public class QkjQuestionAnswerApp {

    @javax.persistence.Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "答案id")
    private Integer id;

    @ApiModelProperty(value = "用户唯一标识")
    private String memCard;

    @ApiModelProperty(value = "患者信息id")
    private Integer patientId;

    @ApiModelProperty(value = "类型 1:问卷 2:试题")
    private Integer type;

    @ApiModelProperty(value = "类型对应的id")
    private Integer objId;

    @ApiModelProperty(value = "问题id")
    private Integer quId;

    @ApiModelProperty(value = "问题类型默认0")
    private Integer quType;

    @ApiModelProperty(value = "问题")
    private String quTitle;

    @ApiModelProperty(value = "选项id")
    private Integer optionId;

    @ApiModelProperty(value = "回答内容")
    private String answerContent;

    @ApiModelProperty(value = "得分")
    private Integer score;

    @ApiModelProperty(value = "状态 0:未删除 1删除")
    private Integer status;

    @ApiModelProperty(value = "患者问卷回答 2:第一问卷,3:第二问卷")
    private Integer frequency;

    @ApiModelProperty(value = "创建时间")
    @CreatedDate
    @Column(nullable = false, updatable = false)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @LastModifiedDate
    @Column()
    private Date updateTime;

}
