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 zsf
 * @description:听觉词语学习测验（华山版）
 * @date 2021/5/13 11:02
 */
@Entity
@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_hearing_test" )
@org.hibernate.annotations.Table(appliesTo = "t_hearing_test", comment = "听觉词语学习测验（华山版）表")
@DynamicUpdate
public class HearingTestEntity extends BaseEntity {

    @Column(name = "phone",columnDefinition = "varchar(11) not null comment '用户手机号'")
    private String phone;

    @Column(name = "round",columnDefinition = "varchar(5) not null comment '所属轮次'")
    private String round;

    @Column(name = "correct_no",columnDefinition = "int(4) comment '正确数'")
    private String correctNo;

    @Column(name = "grade",columnDefinition = "int(4) comment '得分'")
    private String grade;

    @Column(name = "status",columnDefinition = "int(2) not null comment '状态：0-已结束；1-进行中'")
    private int status;

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

    @Column(name = "correlation",columnDefinition = "varchar(36) comment '关联测试id'")
    private String correlation;

}
