package com.yuchen.saas.manage.user.api.entity;

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

import java.util.Date;

/**
 * 人员-企业登记信息
 */
@Data
@TableName("saas_user_company")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "人员-企业登记信息", description = "人员-企业登记信息")
public class SaasUserCompany extends BaseEntity {

	private static final long serialVersionUID = 1L;


	@ApiModelProperty(value = "用户id")
	@JsonSerialize(
			using = ToStringSerializer.class
	)
	private Long saasUserId;

	@ApiModelProperty(value = "企业id")
	@JsonSerialize(
			using = ToStringSerializer.class
	)
	private Long saasCompanyId;

	@ApiModelProperty(value = "统一信用代码")
	private String creditCode;

	@ApiModelProperty(value = "人员类型1管理员，2普通员工")
	private Integer type;

	@ApiModelProperty(value = "照片")
	private String pic;

	@ApiModelProperty(value = "所在部门")
	private String deptName;

	@ApiModelProperty(value = "联系地址")
	private String contactAddress;

	@ApiModelProperty(value = "岗位级别")
	private String stationLevel;

	@ApiModelProperty(value = "岗位名称")
	private String stationName;

	@ApiModelProperty(value = "入职时间")
	private Date entryTime;

	@ApiModelProperty(value = "姓名")
	private String name;

	@ApiModelProperty(value = "性别1男，2女")
	private Integer sex;

	@ApiModelProperty(value = "电话")
	private String contactPhone;

	@ApiModelProperty(value = "证件号码")
	private String idcard;

	@ApiModelProperty(value = "审核原因")
	private String reason;


}
