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

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

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

/**
    * @Description:认知任务维度关联表
    * @Author: zsf
    * @Date: 2022/7/19
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@Table(name = "t_cognitive_dimension_info")
@org.hibernate.annotations.Table(appliesTo = "t_cognitive_dimension_info", comment = "认知任务维度关联表")
@DynamicUpdate(value = true)
public class CognitiveDimension extends BaseEntity {

    @Column(name = "cognition_id", columnDefinition = "varchar(36) comment '认知任务id'")
    private String cognitionId;

    @Column(name = "name", columnDefinition = "varchar(20) comment '维度名称'")
    private String name;

    @Column(name = "include_questions", columnDefinition = "varchar(20) comment '维度包含的问题'")
    private String includeQuestions;

    @Column(name = "max_num", columnDefinition = "varchar(10) comment '维度最大值'")
    private String maxNum;

    @Column(name = "description", columnDefinition = "varchar(200) comment '维度描述'")
    private String description;
}
