package com.rf.psychological.dao.model;

import com.rf.psychological.base.model.BaseEntity;
import lombok.*;

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

/**
 * @author zzf
 * @description:社会支持评定量表
 * @date 2021/1/20 17:55
 */
@Entity
@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_support_info")
@org.hibernate.annotations.Table(appliesTo = "t_support_info", comment = "社会支持评定量表")
public class SupportEntity extends BaseEntity {
    /**
     * 编号
     */
    @Column(name = "no", columnDefinition = "varchar(10) comment '编号'")
    private String no;

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

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

    /**
     * 默认选项
     */
    @Column(name = "checked", columnDefinition = "text comment '默认选项'")
    private String checked;

    @Column(name = "sort_by", columnDefinition = "int(10) comment '排序字段'")
    private int sortBy;
}
