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 zzf
 * @description:记忆检查实体类
 * @date 2021/5/13 11:02
 */
@Entity
@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_memory_check" )
@org.hibernate.annotations.Table(appliesTo = "t_memory_check", comment = "记忆检查结果表")
@DynamicUpdate
public class MemoryCheckEntity extends BaseEntity {

    @Column(name = "phone",columnDefinition = "varchar(20) not null comment '用户手机号'")
    private String phone;

    @Column(name = "institution_no", columnDefinition = "varchar(50) comment '所属机构编码'")
    private String institutionNo;

    @Column(name = "question_no",columnDefinition = "varchar(5) not null comment '所属题号'")
    private String questionNo;

    @Column(name = "gradea",columnDefinition = "int(4) comment '成绩a'")
    private String gradea;

    @Column(name = "gradeb",columnDefinition = "int(4) comment '成绩b'")
    private String gradeb;

    @Column(name = "gradec",columnDefinition = "int(4) comment '成绩c'")
    private String gradec;

    @Column(name = "mina",columnDefinition = "varchar(15) comment '时长a'")
    private String mina;

    @Column(name = "minb",columnDefinition = "varchar(15) comment '时长b'")
    private String minb;

    @Column(name = "memory_type" ,columnDefinition = "int(2) not null comment '记忆类型：0-无需记忆;1-即时记忆;2-延时记忆;3-长时记忆'")
    private int memoryType;

    @Column(name = "status",columnDefinition = "int(2) not null comment '状态：0-已结束；1-进行中'")
    private int status;

    @Column(name = "test_date",columnDefinition = "varchar(50) not null comment '测试日期'")
    private String testDate;

    @Column(name = "correlation_emory",columnDefinition = "varchar(36) comment '关联记忆id'")
    private String correlationMemory;

    @Column(name = "credentials",columnDefinition = "varchar(255) comment '既时记忆凭证'")
    private String credentials;

    @Column(name = "type" ,columnDefinition = "varchar(50) DEFAULT 'RTC' comment '任务类型：RTC-成人版;RTC_CHILD-儿童版'")
    private String type;

    @Column(name = "test_type" ,columnDefinition = "varchar(5) DEFAULT '0' comment '测试类型：0-流程测试;1-分项测试'")
    private String testType;

}
