package com.rf.psychological.dao.model;

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

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

/**
 * @author zzf
 * @description:
 * @date 2021/2/1 16:46
 */
@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_life_info")
@org.hibernate.annotations.Table(appliesTo = "t_life_info", comment = "生活事件量表")
@DynamicUpdate
public class LifeEntity extends BaseEntity {

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

    @Column(name = "content", columnDefinition = "varchar(200) comment '内容'")
    private String content;

    @Column(name = "checked", columnDefinition = "varchar(10) comment '发生次数'")
    private String checked;

    @Column(name = "score", columnDefinition = "int(10) comment '单次分值'")
    private int score;
}
