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;

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@Table(name = "t_institution_user")
@org.hibernate.annotations.Table(appliesTo = "t_institution_user", comment = "机构管理员表")
public class InstitutionUserEntity extends BaseEntity {

    @Column(name = "phone",columnDefinition = "varchar(20) not null comment '手机号（唯一）'")
    private String phone;

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

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

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

    @Column(name = "gender", columnDefinition = "varchar(2)   not null comment '性别(0-男；1-女)'")
    private String gender;

    @Column(name = "pet_name", columnDefinition = "varchar(10) not null comment '昵称'")
    private String petName;

    @Column(name = "birthday", columnDefinition = "varchar(15) not null comment '出生日期'")
    private String birthday;

    @Column(name = "profession", columnDefinition = "varchar(50) comment '职业'")
    private String profession;

    @Column(name = "user_status", columnDefinition = "varchar(2) comment '用户状态，1-待审核 2-审核通过 3-密码被重置状态'")
    private String userStatus = "1";

    @Column(name = "addition_info", columnDefinition = "varchar(500) comment '附加信息'")
    private String additionInfo;
}
