package com.rf.psychological.scale.dao.model;

import com.rf.psychological.base.model.BaseEntity;
import com.rf.psychological.security.EncryptDecodeConverter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * @author zsy
 * @description:量表详情信息表
 * @date 2023/10/11 11:02
 */
@Entity
@Data
@EqualsAndHashCode(callSuper=true)
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_scale_details")
@org.hibernate.annotations.Table(appliesTo = "t_scale_details", comment = "量表详情信息表")
@DynamicUpdate
public class ScaleDetailsEntity extends BaseEntity {

    @Column(name = "flag", columnDefinition = "varchar(50) comment '标识：所属量表'")
    private String flag;

    @Column(name = "scale_name", columnDefinition = "varchar(50) comment '量表名称'")
    private String scaleName;

    @Column(name = "evaluation_introduction", columnDefinition = "text comment '测评介绍（暂时不用）'")
    private String evaluationIntroduction;

    @Column(name = "celebrity_aphorism", columnDefinition = "text comment '名人警句'")
    private String celebrityAphorism;

    @Column(name = "related_question", columnDefinition = "text comment '相关问句'")
    private String relatedQuestion;

    @Column(name = "evaluation_theory", columnDefinition = "text comment '测评理论'")
    private String evaluationTheory;

    @Column(name = "evaluation_theory_attention", columnDefinition = "text comment '测评理论（注）'")
    private String evaluationTheoryAttention;

    @Column(name = "obtained", columnDefinition = "text comment '你将获得'")
    private String obtained;

    @Column(name = "suit_crowd", columnDefinition = "text comment '适合人群'")
    private String suitCrowd;

    @Column(name = "report_content", columnDefinition = "text comment '测评报告内容'")
    private String reportContent;

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

    @Column(name = "dimension_introduction", columnDefinition = "text comment '维度介绍'")
    private String dimensionIntroduction;

    @Column(name = "is_value", columnDefinition = "varchar(10) comment '是否有效0有效1无效'")
    private String isValid;


    @Transient
    private int testNum;//测试次数

}
