package com.rf.psychological.scale.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 zsy
 * @description:用户心理和生理测试记录关联表
 * @date 2021/6/17 15:55
 */
@Entity
@Data
@EqualsAndHashCode(callSuper=true)
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_user_record_phy")
@org.hibernate.annotations.Table(appliesTo = "t_user_record_phy", comment = "用户心理和生理测试记录关联表")
@DynamicUpdate
public class UserRecordPhy extends BaseEntity {

    @Column(name = "test_date", columnDefinition = "varchar(50) not null comment '测试日期'")
    private String testDate;

    @Column(name = "test_result", columnDefinition = "mediumtext comment '测试结果'")
    private String testResult;

    @Column(name = "type", columnDefinition = "text comment '类型：1为脉搏；2为心电；3为脑电'")
    private String type;

}
