package com.xiaoniu.system.platformusers.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户端用户信息表
 * </p>
 *
 * @author haoxuyang
 * @since 2024-10-14 11:55:30
 */
@Getter
@Setter
@TableName("tb_client_user")
@Schema(name = "TbClientUser", description = "用户端用户信息表")
public class TbClientUser implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "openId")
    private String openId;

    @Schema(description = "用户昵称")
    private String nickName;

    @Schema(description = "用户手机号")
    private String phoneNumber;

    @Schema(description = "用户性别")
    private String gender;

    @Schema(description = "头像url")
    private String avatarUrl;

    @Schema(description = "用户类型")
    private String userType;

    @Schema(description = "最后登录时间")
    private Date loginDate;

    @Schema(description = "创建",hidden = true)
    private Date createTime;

    @Schema(description = "状态（1-正常 2-注销 3-拉黑）")
    private Integer status;

    @Schema(description = "登陆token")
    private String loginToken;

    @Schema(description = "删除标志（0-正常 2-删除）")
    private Integer delFlag;

    @Schema(description = "所在位置")
    private String location;

    @Schema(description = "备注")
    private String remark;
}
