using System;

namespace CloudGaming.Model.DbSqlServer.Db_Phone;

/// <summary>
/// 用户玩游戏日志表
/// </summary>
public partial class T_Game_PlayGameLog: MultiTenantEntity
{
    public T_Game_PlayGameLog() { }

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

     /// <summary>
    /// 所属租户
    /// </summary>
    public override Guid TenantId { get; set; }
         
    /// <summary>
    /// 游戏Id
    /// </summary>
    public virtual string GameId { get; set; } = null!;

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

    /// <summary>
    /// 游戏名称
    /// </summary>
    public virtual string GameName { get; set; } = null!;

    /// <summary>
    /// 用户剩余钻石
    /// </summary>
    public virtual int UserPlayGameDiamonds { get; set; }

    /// <summary>
    /// 用户本次玩游戏共花销多少钻石
    /// </summary>
    public virtual int SpendingDiamonds { get; set; }

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

    /// <summary>
    /// 最后一次修改时间
    /// </summary>
    public virtual DateTime LastDateTime { get; set; }

    /// <summary>
    /// 开始游戏时间
    /// </summary>
    public virtual DateTime? PlayGameStartAt { get; set; }

    /// <summary>
    /// 本次游玩时间（秒）
    /// </summary>
    public virtual int PlayGameTotalSeconds { get; set; }

    /// <summary>
    /// 游戏心跳时间
    /// </summary>
    public virtual DateTime? PlayGameHeartbeatAt { get; set; }

    /// <summary>
    /// 最后一次扣费时间
    /// </summary>
    public virtual DateTime? LastChargingAt { get; set; }

    /// <summary>
    /// 用户设备号
    /// </summary>
    public virtual string Sn { get; set; } = null!;

    /// <summary>
    /// 设备号
    /// </summary>
    public virtual string SessionId { get; set; } = null!;

    /// <summary>
    /// 设备型号
    /// </summary>
    public virtual string ModelName { get; set; } = null!;

    /// <summary>
    /// 用户cpu
    /// </summary>
    public virtual string Cpu { get; set; } = null!;

    /// <summary>
    /// 鲸云scid
    /// </summary>
    public virtual int ScId { get; set; }

    /// <summary>
    /// 第三方游戏id
    /// </summary>
    public virtual string JyGameId { get; set; } = null!;

    /// <summary>
    /// 显示等级
    /// </summary>
    public virtual int DisplayGrade { get; set; }

    /// <summary>
    /// 队列等级
    /// </summary>
    public virtual int QueueGrade { get; set; }

    /// <summary>
    /// 用户游戏状态
    /// </summary>
    public virtual int GameStatus { get; set; }

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

    /// <summary>
    /// 用户开始排队时间
    /// </summary>
    public virtual DateTime? PlayQueueStartAt { get; set; }

    /// <summary>
    /// 结束排队时间
    /// </summary>
    public virtual DateTime? PlayQueueSuccessAt { get; set; }

    /// <summary>
    /// 金额日志表id
    /// </summary>
    public virtual int CurrencyLogId { get; set; }

    /// <summary>
    /// 资产记录日志表id
    /// </summary>
    public virtual int DiamondListId { get; set; }

    /// <summary>
    /// 用户操作内容
    /// </summary>
    public virtual string? GameUserOperationJson { get; set; }

    /// <summary>
    /// 渠道号
    /// </summary>
    public virtual string? Channel { get; set; }

    public virtual int CreateDay { get; set; }
}
