using System;

namespace CloudGaming.Model.DbSqlServer.Db_Phone;

/// <summary>
/// 兑换码使用表
/// </summary>
public partial class T_User_RedemptionUsage: MultiTenantEntity
{
    public T_User_RedemptionUsage() { }

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

    /// <summary>
    /// 兑换码
    /// </summary>
    public virtual string Code { get; set; } = null!;

    /// <summary>
    /// 兑换码主键表
    /// </summary>
    public virtual int RedemptionCodeId { get; set; }

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

    /// <summary>
    /// 兑换码使用时间
    /// </summary>
    public virtual DateTime UsedDate { get; set; }

    /// <summary>
    /// 使用兑换码关联的订单ID（可选）
    /// </summary>
    public virtual string? OrderId { get; set; }

    /// <summary>
    /// 使用状态（如成功、失败、已过期等)
    /// </summary>
    public virtual int Status { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public virtual string? Remarks { get; set; }

     /// <summary>
    /// 所属租户
    /// </summary>
    public override Guid TenantId { get; set; }
         }
