using TakeoutSaaS.Shared.Abstractions.Entities;

namespace TakeoutSaaS.Domain.Tenants.Entities;

/// <summary>
/// 租户配额包购买记录。
/// </summary>
public sealed class TenantQuotaPackagePurchase : MultiTenantEntityBase
{
    /// <summary>
    /// 配额包 ID。
    /// </summary>
    public long QuotaPackageId { get; set; }

    /// <summary>
    /// 购买时的配额值。
    /// </summary>
    public decimal QuotaValue { get; set; }

    /// <summary>
    /// 购买价格。
    /// </summary>
    public decimal Price { get; set; }

    /// <summary>
    /// 购买时间。
    /// </summary>
    public DateTime PurchasedAt { get; set; }

    /// <summary>
    /// 过期时间（可选）。
    /// </summary>
    public DateTime? ExpiredAt { get; set; }

    /// <summary>
    /// 备注。
    /// </summary>
    public string? Notes { get; set; }
}
