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 18:40
 */
@Entity
@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_mood_info")
@org.hibernate.annotations.Table(appliesTo = "t_mood_info", comment = "正性负性情绪量表")
@DynamicUpdate
public class MoodEntity extends BaseEntity {
    /**
     * 编号
     */
    @Column(name = "no", columnDefinition = "int(10) comment '编号'")
    private int no;

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

    /**
     * 类型：1 正向情绪 0 反向情绪
     */
    @Column(name = "type", columnDefinition = "varchar(2) comment '类型：1正向情绪 0反向情绪'")
    private String type;

    @Column(name = "checked", columnDefinition = "varchar(50) comment '选择项'")
    private String checked;
}
