using System;

namespace CloudGaming.Model.DbSqlServer.Db_User;

/// <summary>
/// 用户表
/// </summary>
public partial class T_User: MultiTenantEntity
{
    public T_User() { }

    /// <summary>
    /// 用户Id
    /// </summary>
    public virtual int Id { get; set; }

     /// <summary>
    /// 所属租户
    /// </summary>
    public override Guid TenantId { get; set; }
         
    /// <summary>
    /// 用户昵称
    /// </summary>
    public virtual string NickName { get; set; } = null!;

    /// <summary>
    /// 身份证号
    /// </summary>
    public virtual string? IDCard { get; set; }

    /// <summary>
    /// 姓名
    /// </summary>
    public virtual string? UserName { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public virtual DateTime CreatedAt { get; set; }

    /// <summary>
    /// 首次注册方式
    /// </summary>
    public virtual int RegisterType { get; set; }

    /// <summary>
    /// 最后一次登录方式,1手机号，2默认登录
    /// </summary>
    public virtual int LastLoginType { get; set; }

    /// <summary>
    /// 最后一次登录时间
    /// </summary>
    public virtual DateTime LastLoginAt { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public virtual DateTime UpdatedAt { get; set; }

    /// <summary>
    /// Ip地址
    /// </summary>
    public virtual string? Ip { get; set; }

    /// <summary>
    /// 0正常，1注销
    /// </summary>
    public virtual int State { get; set; }

    /// <summary>
    /// 用户头像
    /// </summary>
    public virtual string? UserIconUrl { get; set; }

    /// <summary>
    /// 是否是测试账号
    /// </summary>
    public virtual bool? IsTest { get; set; }

    /// <summary>
    /// 用户实名认证状态0未认证，1已整整，2未成年
    /// </summary>
    public virtual int UserRealNameStatus { get; set; }
}
