using System;

namespace CloudGaming.Model.DbSqlServer.Db_Phone;

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

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

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

    /// <summary>
    /// 兑换码类型（如优惠券、礼品卡等）
    /// </summary>
    public virtual int Type { get; set; }

    /// <summary>
    /// 最大使用次数，0表示无限次使用
    /// </summary>
    public virtual int UsageLimit { get; set; }

    /// <summary>
    /// 兑换码有效期截止时间
    /// </summary>
    public virtual DateTime ExpirationDate { get; set; }

    /// <summary>
    /// 是否启用（1为启用，0为禁用）
    /// </summary>
    public virtual bool IsActive { get; set; }

    /// <summary>
    /// 兑换码生成时间
    /// </summary>
    public virtual DateTime CreatedDate { get; set; }

    /// <summary>
    /// 备注信息（可选
    /// </summary>
    public virtual string? Remarks { get; set; }

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