package com.chinaweal.aiccs.org.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 用户补充信息
 * </p>
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "T_USERSAPP", schema = "CXAICORG")
public class TUsersapp extends Model<TUsersapp> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "USERID")
    @ApiModelProperty("用户id")
    private String userid;

    /**
     * 性别
     */
    @TableField("GENDER")
    @ApiModelProperty("性别")
    private String gender;

    /**
     * 联系电话号码
     */
    @ApiModelProperty("联系电话号码")
    @TableField("PHONENUMBER")
    private String phonenumber;

    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    @TableField("MOBILE")
    private String mobile;

    /**
     * 邮箱
     */
    @ApiModelProperty("邮箱")
    @TableField("EMAIL")
    private String email;

    /**
     * 地址
     */
    @ApiModelProperty("地址")
    @TableField("ADDRESS")
    private String address;

    /**
     * 工号
     */
    @ApiModelProperty("工号")
    @TableField("WORKNO")
    private String workno;

    /**
     * 工作类型
     */
    @ApiModelProperty("工作类型")
    @TableField("WORKTYPE")
    private String worktype;

    /**
     * 生日日期
     */
    @ApiModelProperty("生日日期")
    @TableField("BIRTHDAY")
    private LocalDate birthday;

    /**
     * 雇用日期
     */
    @ApiModelProperty("雇用日期")
    @TableField("HIREDATE")
    private LocalDate hiredate;

    /**
     * 离职日期
     */
    @ApiModelProperty("离职日期")
    @TableField("LEAVEDATE")
    private LocalDate leavedate;

    /**
     * 身份证号
     */
    @ApiModelProperty("身份证号")
    @TableField("IDENTITYNO")
    private String identityno;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @TableField("REMARK")
    private String remark;

    @Override
    protected Serializable pkVal() {
        return this.userid;
    }

}
