package com.yonge.cooleshow.biz.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author Eric
 * @since 2022-09-02
 */
@Getter
@Setter
@TableName("sys_user")
@ApiModel(value = "SysUser对象", description = "用户表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id_", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户名")
    @TableField("username_")
    private String username;

    @TableField("password_")
    private String password;

    @ApiModelProperty("随机盐")
    @TableField("salt_")
    private String salt;

    @ApiModelProperty("手机号")
    @TableField("phone_")
    private String phone;

    @ApiModelProperty("头像")
    @TableField("avatar_")
    private String avatar;

    @ApiModelProperty("创建时间")
    @TableField("create_time_")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time_")
    private LocalDateTime updateTime;

    @ApiModelProperty("0-正常，1-锁定")
    @TableField("lock_flag_")
    private Integer lockFlag;

    @ApiModelProperty("微信openid")
    @TableField("wx_openid_")
    private String wxOpenid;

    @ApiModelProperty("QQ openid")
    @TableField("qq_openid_")
    private String qqOpenid;

    @ApiModelProperty("用户类型（STUDENT/TEACHER/SYSTEM）")
    @TableField("user_type_")
    private String userType;

    @ApiModelProperty("性别（0，女  1，男）")
    @TableField("gender_")
    private Integer gender;

    @ApiModelProperty("民族")
    @TableField("nation_")
    private String nation;

    @ApiModelProperty("出生日期")
    @TableField("birthdate_")
    private LocalDate birthdate;

    @ApiModelProperty("邮箱")
    @TableField("email_")
    private String email;

    @ApiModelProperty("融云token")
    @TableField("im_token_")
    private String imToken;

    @ApiModelProperty("真实姓名")
    @TableField("real_name_")
    private String realName;

    @ApiModelProperty("身份证号码")
    @TableField("id_card_no_")
    private String idCardNo;

    @ApiModelProperty("证件类型")
    @TableField("certificate_type_")
    private String certificateType;

    @ApiModelProperty("是否是超管")
    @TableField("is_super_admin_")
    private Boolean superAdmin;

    @ApiModelProperty("微信号")
    @TableField("wechat_id_")
    private String wechatId;

    @ApiModelProperty("0-正常，1-删除")
    @TableField("del_flag_")
    private Integer delFlag;

    @ApiModelProperty("最近一次修改用户名称时间")
    @TableField("last_username_time_")
    private LocalDateTime lastUsernameTime;


}
