package cn.qinys.platform.entity.upms;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户表(UpmsUser)实体类
 *
 * @author makejava
 * @since 2024-02-27 16:16:52
 */

@Data
@TableName("upms_user")
public class UpmsUser implements Serializable {

    /**
     * 主键
     * 自增 => @TableId(type = IdType.AUTO)
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 用户名/工号
     */
    @TableField("username")
    private String username;
    /**
     * 手机号
     */
    @TableField("mobile")
    private String mobile;
    /**
     * 密码
     */
    @TableField("password")
    private String password;
    /**
     * 密码是否过期
     */
    @TableField("expired")
    private String expired;
    /**
     * 账号是否锁定
     */
    @TableField("locked")
    private String locked;
    /**
     * 密码过期时间
     */
    @TableField("pwd_expired")
    private LocalDateTime pwdExpired;
    /**
     * 性别
     */
    @TableField("sex")
    private String sex;
    /**
     * 姓名
     */
    @TableField("full_name")
    private String fullName;
    /**
     * 电子邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 软删除
     */
    @TableField("deleted")
    @TableLogic
    private String deleted;
    /**
     * 登录次数
     */
    @TableField("login_count")
    private Integer loginCount;

    /**
     * 头像
     */
    @TableField("avatar")
    private String avatar;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("last_login_time")
    private LocalDateTime lastLoginTime;

    @TableField("pwd_change_time")
    private LocalDateTime pwdChangeTime;

    @TableField("tenant_id")
    private String tenantId;

}
