using System;

namespace CloudGaming.Model.DbSqlServer.Db_User;

/// <summary>
/// 小程序登录表
/// </summary>
public partial class T_User_MiniProgram_Account: MultiTenantEntity
{
    public T_User_MiniProgram_Account() { }

    /// <summary>
    /// 主键
    /// </summary>
    public virtual int Id { get; set; }

     /// <summary>
    /// 所属租户
    /// </summary>
    public override Guid TenantId { get; set; }
         
    /// <summary>
    /// 用户Id
    /// </summary>
    public virtual int UserId { get; set; }

    /// <summary>
    /// 用户唯一标识
    /// </summary>
    public virtual string OpenId { get; set; } = null!;

    /// <summary>
    /// 用户在开放平台的唯一标识符，若当前小程序已绑定到微信开放平台账号下会返回，详见
    /// </summary>
    public virtual string? Unionid { get; set; }

    public virtual string? SessionKey { get; set; }

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

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