package com.rf.psychological.dao.model;

import com.rf.psychological.base.model.BaseEntity;
import lombok.*;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author zsy
 * @description:认知任务列表
 * @date 2021/5/17 9:25
 */
@Entity
@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_cognitive_task")
@org.hibernate.annotations.Table(appliesTo = "t_cognitive_task", comment = "认知任务列表信息表")
@DynamicUpdate
public class CognitiveTaskEntity extends BaseEntity {
    @Column(name = "task_code", columnDefinition = "varchar(50) comment '查询标志'")
    private String taskCode;
    @Column(name = "description", columnDefinition = "text comment '任务说明'")
    private String description;
    @Column(name = "name", columnDefinition = "varchar(100) comment '认知任务名称'")
    private String name;
    @Column(name = "image_url", columnDefinition = "varchar(255) comment '图片路径'")
    private String imageUrl;
    @Column(name = "image_name", columnDefinition = "varchar(100) comment '图片名称'")
    private String imageName;
    @Column(name = "test_description", columnDefinition = "text comment '测试任务描述'")
    private String testDescription;
    @Column(name = "test_num", columnDefinition = "int(10) comment '测试次数'")
    private int testNum;
    @Column(name = "type", columnDefinition = "varchar(10) comment '类型：0-量表；1-认知任务'")
    private String type;
    @Column(name = "page_url", columnDefinition = "varchar(200) comment '分页路径'")
    private String pageUrl;
    @Column(name = "test_explain", columnDefinition = "text comment '任务解释'")
    private String testExplain;
    @Column(name = "status", columnDefinition = "varchar(1) comment '状态：0-可用；9-不可用'")
    private int status;
    @Column(name = "scale_limit", columnDefinition = "varchar(10) comment '认知任务权限:private 私密  public 公开'")
    private String scaleLimit;
    @Column(name = "no", columnDefinition = "int(10) comment '编号，用于排序'")
    private int no;

    @Column(name = "mobile_description", columnDefinition = "text default '无' comment '移动端任务说明'")
    private String mobileDescription;

    @Column(name = "mobile_page_url", columnDefinition = "varchar(200) default '无' comment '移动端前台页面路径'")
    private String mobilePageUrl;

    @Column(name = "mobile_test_description", columnDefinition = "text default '无' comment '移动端测试任务描述'")
    private String mobileTestDescription;

    @Column(name = "mobile_status", columnDefinition = "varchar(1) default '0' comment '移动端任务状态：0-不可用；1-可用'")
    private String mobileStatus;

    @Column(name = "report_version", columnDefinition = "varchar(1) default '1' comment '报告版本：1-老模板报告；2-新模板报告'")
    private String reportVersion;

    @Column(name = "practice", columnDefinition = "varchar(10) default '2' comment '类型：1-有练习测试；2-无练习测试'")
    private String practice;

    @Column(name = "illustrating_picture", columnDefinition = "varchar(255) comment '任务配图'")
    private String illustratingPicture;

    @Column(name = "estimated_time", columnDefinition = "varchar(5) comment '预计用时（分钟）'")
    private String estimatedTime;

    @Column(name = "report_pages", columnDefinition = "int(5) default '3' comment '报告页数'")
    private int reportPages;

    @Column(name = "reference", columnDefinition = "varchar(1000) comment '参考文献'")
    private String reference;


}
