package com.ann.demo.entity.normalEntity;


import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @Description 用户
 * @Date 2019/6/15 16:57
 * @Created by  ljx
 */

@Table(name = "powerUser")
@Entity
@Data
public class User {

    /**
     * 用户标识
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "userId")
    private Integer id;

    @Column(name = "remark")
    private String USER_ID;

    /**
     * 用户姓名
     */
    @Column(name = "userName")
    private String USER_NAME;

    /**
     * 用户科室
     */
    @Column(name = "deptId")
    private String USER_DEPT;

    /**
     * 用户密码
     */
    @Column(name = "userPwd")
    private String USER_PWD;

    /**
     * 建立日期
     */
    @Column(name = "createDate")
    private String CREATE_DATE;

    /**
     * 用户类型 用户角色 0 为医生,1 为护士；
     */
    @Column(name = "roleId")
    private Integer USER_TYPE;


    @Column(name = "effective")
    private Integer isValid = 0;

    /**
     * 1 有资质 0 无资质；
     */
    private Integer EDUCATION_FLAG;

}
