This commit is contained in:
jiangdong
2025-10-03 11:24:11 +08:00
commit d81cf186b0
67 changed files with 10243 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FateMaster.API.Models;
/// <summary>
/// 价格配置表
/// </summary>
public class PriceConfig
{
[Key]
public int Id { get; set; }
/// <summary>
/// 服务类型: bazi, career, marriage, tarot, zodiac
/// </summary>
[Required]
[MaxLength(50)]
public string ServiceType { get; set; } = string.Empty;
/// <summary>
/// 价格
/// </summary>
[Required]
[Column(TypeName = "decimal(10,2)")]
public decimal Price { get; set; }
/// <summary>
/// 货币: CNY, USD
/// </summary>
[Required]
[MaxLength(10)]
public string Currency { get; set; } = "CNY";
/// <summary>
/// 是否启用
/// </summary>
public bool IsEnabled { get; set; } = true;
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}