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/1/20 17:38
 */
@Entity
@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_ask_info")
@org.hibernate.annotations.Table(appliesTo = "t_ask_info", comment = "艾森克人格量表")
@DynamicUpdate
public class ASKEntity extends BaseEntity {

    /**
     * 编号
     */
    @Column(name = "no", columnDefinition = "int(10) comment '编号'")
    private int no;

    /**
     * 内容
     */
    @Column(name = "content", columnDefinition = "text comment '内容'")
    private String content;

    /**
     * 选项
     */
    @Column(name = "check_items", columnDefinition = "text comment '选项'")
    private String checkItems;

    /**
     * 类型
     * 1：是记1分
     * 0：否记1分
     */
    @Column(name = "type", columnDefinition = "varchar(2) comment '类型：1正向，0反向'")
    private String type;

    @Column(name = "scale", columnDefinition = "varchar(2) comment '量表'")
    private String scale;
}
