package cn.com.countrygarden.bi.main.model.wcx;

import cn.com.countrygarden.bi.main.dto.wcx.WcxBaseDto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 *  微创新用户
 *  
 *  @author ferren
 */
@Data
@Table(name = "wcx_user")
public class WcxUserAdmDto extends WcxBaseDto {

    @Column(name = "user_id")
    private String userId; // varchar(36) NOT NULL COMMENT '用户主键',
    @Column(name = "open_id")
    private String openId; // varchar(28) DEFAULT NULL COMMENT '微信应用主键',
    @Column(name = "head_pic_url")
    private String headPicUrl; // varchar(450) DEFAULT NULL COMMENT '微信用户头像地址',
    @Column(name = "nick_name")
    private String nickName; // varchar(80) DEFAULT NULL COMMENT '微信用户昵称',
    @Column(name = "role_id")
    private String roleId; // varchar(36) DEFAULT NULL COMMENT '用户角色主键',
    @Column(name = "employee_id")
    private Long employeeId; // varchar(36) DEFAULT NULL COMMENT '员工唯一主键',
    @Column(name = "employee_name")
    private String employeeName; // varchar(36) DEFAULT NULL COMMENT '员工姓名',
    @Column(name = "employee_phone")
    private String employeePhone; // varchar(36) DEFAULT NULL COMMENT '员工手机号',
    @Column(name = "employee_card_id")
    private String employeeCardId; //  身份信息
    @Column(name = "status")
    private String status; // char(1) DEFAULT NULL COMMENT '状态(0:未启用,1:启用)',
    @Column(name = "create_date")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate; // datetime DEFAULT NULL COMMENT '创建日期',

    @Column(name = "org_code")
    private String orgCode;
    @Column(name = "org_name")
    private String orgName;
    @Column(name = "comm_code")
    private String commCode;
    @Column(name = "comm_name")
    private String commName;

    @Column(name = "is_invalid")
    private Integer isInvalid;// '是否生效 1生效 0失效'

    @Column(name = "user_code")
    private String userCode;// NC code

    @Transient
    private Integer release;//发布数

    @Transient
    private String id;

    @Transient
    private String index;
}
