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