package com.rf.psychological.institution.model;

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

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

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_institution_info")
@org.hibernate.annotations.Table(appliesTo = "t_institution_info", comment = "机构超级管理员表")
public class InstitutionEntity extends BaseEntity {

    @Column(name = "institution_name", columnDefinition = "varchar(50) comment '所属机构名称'")
    private String institutionName;

    @Column(name = "institution_no", unique = true, columnDefinition = "varchar(50) comment '所属机构编码'")
    private String institutionNo;

    @Column(name = "login_name", columnDefinition = "varchar(50) comment '登录用户名'")
    private String loginName;

    @Column(name = "password", columnDefinition = "varchar(50) comment '登陆密码'")
    private String password;

    @Column(name = "is_test_num",columnDefinition = "int default 0 comment '有效测试次数是否生效：1-->是;0-->否'")
    private Integer isTestNum;

    @Column(name = "test_num",columnDefinition = "int comment '有效测试次数'")
    private Integer testNum;

    @Column(name = "is_registrants_num",columnDefinition = "int default 0 comment '最大注册人数是否生效：1-->是;0-->否'")
    private Integer isRegistrantsNum;

    @Column(name = "registrants_num",columnDefinition = "int comment '最大注册人数'")
    private Integer registrantsNum;

}
