/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.enterprise.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-03-30
 */
@Data
@TableName("enterprise_staff")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Staff对象", description = "Staff对象")
public class Staff extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 昵称
	*/
		@ApiModelProperty(value = "昵称")
		private String name;
	/**
	* 真名
	*/
		@ApiModelProperty(value = "真名")
		private String realName;
	/**
	* 邮箱
	*/
		@ApiModelProperty(value = "邮箱")
		private String email;
	/**
	* 头像
	*/
		@ApiModelProperty(value = "头像")
		private String avatar;
	/**
	* 手机
	*/
		@ApiModelProperty(value = "手机")
		private String phone;
	/**
	* 生日
	*/
		@ApiModelProperty(value = "生日")
		private LocalDateTime birthday;
	/**
	* 人脸信息
	*/
		@ApiModelProperty(value = "人脸信息")
		private String faceUrl;
	/**
	* 身份证号码
	*/
		@ApiModelProperty(value = "身份证号码")
		private String idcard;
	/**
	* 性别
	*/
		@ApiModelProperty(value = "性别")
		private Integer sex;
	/**
	* 住址
	*/
		@ApiModelProperty(value = "住址")
		private String address;
	/**
	* 审核时间
	*/
		@ApiModelProperty(value = "审核时间")
		private LocalDateTime auditTime;
	/**
	* 是否审核通过（0待审核，1审核通过，2审核不通过）
	*/
		@ApiModelProperty(value = "是否审核通过（0待审核，1审核通过，2审核不通过）")
		private Integer auditStatus;
	/**
	* 审核意见
	*/
		@ApiModelProperty(value = "审核意见")
		private String auditOpinion;
	/**
	* 所属企业
	*/
		@ApiModelProperty(value = "所属企业")
		@JsonSerialize(using = ToStringSerializer.class)
		private Long enterpriseId;
	/**
	* 企业名称
	*/
		@ApiModelProperty(value = "企业名称")
		private String enterpriseName;

	/**
	 * 所属企业
	 */
	@ApiModelProperty(value = "所属部门")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long enterpriseDeptId;
	/**
	 * 企业名称
	 */
	@ApiModelProperty(value = "部门名称")
	private String enterpriseDeptName;
	/**
	* 园区id
	*/
		@ApiModelProperty(value = "园区id")
		@JsonSerialize(using = ToStringSerializer.class)
		private Long agencyId;
	/**
	* 区域id
	*/
		@ApiModelProperty(value = "区域id")
		private Long residentialId;

	/**
	 * 园区id
	 */
	@ApiModelProperty(value = "园区名称")
	@JsonSerialize(using = ToStringSerializer.class)
	private String agencyName;
	/**
	 * 区域id
	 */
	@ApiModelProperty(value = "区域名称")
	private String residentialName;
	/**
	* 小程序openId
	*/
		@ApiModelProperty(value = "小程序openId")
		private String openId;
	/**
	* 部门id
	*/
		@ApiModelProperty(value = "部门id")
		private String deptId;
	/**
	* 岗位id
	*/
		@ApiModelProperty(value = "岗位id")
		private String postId;
	/**
	* 备注
	*/
		@ApiModelProperty(value = "备注")
		private String remarks;
	/**
	* 创建方式（来源）{0：后台，1：小程序}
	*/
		@ApiModelProperty(value = "创建方式（来源）{0：后台，1：小程序}")
		private Integer createType;
	/**
	* 机构路径
	*/
		@ApiModelProperty(value = "机构路径")
		private String orgPosition;
	/**
	* 是否为小程序园区管理员：0-否 1-是
	*/
		@ApiModelProperty(value = "是否为小程序园区管理员：0-否 1-是")
		private Integer isAgencyManager;
	/**
	* 若为园区管理员时的小程序登录账号
	*/
		@ApiModelProperty(value = "若为园区管理员时的小程序登录账号")
		private String agencyAccount;
	/**
	* 若为园区管理员时的小程序登录密码
	*/
		@ApiModelProperty(value = "若为园区管理员时的小程序登录密码")
		private String agencyPassword;
	/**
	* 是否为企业管理员：0-否 1-是
	*/
		@ApiModelProperty(value = "是否为企业管理员：0-否 1-是")
		private Integer isEnterpriseManager;
	/**
	* 若为企业管理员时的小程序登录账号
	*/
		@ApiModelProperty(value = "若为企业管理员时的小程序登录账号")
		private String enterpriseAccount;
	/**
	* 若为企业管理员时的小程序登录密码
	*/
		@ApiModelProperty(value = "若为企业管理员时的小程序登录密码")
		private String enterprisePassword;

	/**
	 * 租户ID
	 */
	@ApiModelProperty(value = "租户ID")
	private String tenantId;

}
