using System;

namespace CloudGaming.Model.DbSqlServer.Db_User;

/// <summary>
/// 用户单点登录表
/// </summary>
public partial class T_User_Token: MultiTenantEntity
{
    public T_User_Token() { }

    public virtual int Id { get; set; }

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

     /// <summary>
    /// 所属租户
    /// </summary>
    public override Guid TenantId { get; set; }
         
    /// <summary>
    /// 登录token
    /// </summary>
    public virtual string? Token { get; set; }

    /// <summary>
    /// 过期时间
    /// </summary>
    public virtual DateTime? ExpiresAt { get; set; }

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

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

    /// <summary>
    /// 设备号
    /// </summary>
    public virtual string? DeviceNumber { get; set; }

    /// <summary>
    /// tokenMd5值
    /// </summary>
    public virtual string? TokenMd5 { get; set; }

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