feat: 新增配额包/支付相关实体与迁移

App:新增 operation_logs/quota_packages/tenant_payments/tenant_quota_package_purchases 表

Identity:修正 Avatar 字段类型(varchar(256)->text),保持现有数据不变
This commit is contained in:
2025-12-17 17:27:45 +08:00
parent 9c28790f5e
commit ab59e2e3e2
103 changed files with 14450 additions and 4 deletions

View File

@@ -0,0 +1,51 @@
using MediatR;
using TakeoutSaaS.Application.App.QuotaPackages.Dto;
using TakeoutSaaS.Domain.Tenants.Enums;
namespace TakeoutSaaS.Application.App.QuotaPackages.Commands;
/// <summary>
/// 更新配额包命令。
/// </summary>
public sealed record UpdateQuotaPackageCommand : IRequest<QuotaPackageDto?>
{
/// <summary>
/// 配额包 ID。
/// </summary>
public long QuotaPackageId { get; init; }
/// <summary>
/// 配额包名称。
/// </summary>
public string Name { get; init; } = string.Empty;
/// <summary>
/// 配额类型。
/// </summary>
public TenantQuotaType QuotaType { get; init; }
/// <summary>
/// 配额数值。
/// </summary>
public decimal QuotaValue { get; init; }
/// <summary>
/// 价格。
/// </summary>
public decimal Price { get; init; }
/// <summary>
/// 是否上架。
/// </summary>
public bool IsActive { get; init; } = true;
/// <summary>
/// 排序。
/// </summary>
public int SortOrder { get; init; } = 0;
/// <summary>
/// 描述。
/// </summary>
public string? Description { get; init; }
}