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,86 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FateMaster.API.Models;
/// <summary>
/// 卜卦记录表
/// </summary>
public class DivinationRecord
{
[Key]
public long Id { get; set; }
/// <summary>
/// 卜卦类型: bazi, career, marriage, tarot, zodiac
/// </summary>
[Required]
[MaxLength(50)]
public string Type { get; set; } = string.Empty;
/// <summary>
/// 用户输入数据(JSON)
/// </summary>
[Required]
[Column(TypeName = "json")]
public string InputData { get; set; } = string.Empty;
/// <summary>
/// 传统算法结果(JSON)
/// </summary>
[Column(TypeName = "json")]
public string? TraditionalResult { get; set; }
/// <summary>
/// AI解读结果
/// </summary>
[Column(TypeName = "text")]
public string? AIInterpretation { get; set; }
/// <summary>
/// 支付状态: pending, paid, failed
/// </summary>
[Required]
[MaxLength(20)]
public string PaymentStatus { get; set; } = "pending";
/// <summary>
/// 支付方式: alipay, paypal, stripe
/// </summary>
[MaxLength(20)]
public string? PaymentMethod { get; set; }
/// <summary>
/// 支付金额
/// </summary>
[Column(TypeName = "decimal(10,2)")]
public decimal Amount { get; set; }
/// <summary>
/// 支付订单号
/// </summary>
[MaxLength(100)]
public string? PaymentOrderId { get; set; }
/// <summary>
/// 客户端IP
/// </summary>
[MaxLength(50)]
public string? ClientIp { get; set; }
/// <summary>
/// 语言
/// </summary>
[MaxLength(10)]
public string? Language { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}

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;
}

View File

@@ -0,0 +1,41 @@
using System.ComponentModel.DataAnnotations;
namespace FateMaster.API.Models;
/// <summary>
/// 系统配置表
/// </summary>
public class SystemConfig
{
[Key]
public int Id { get; set; }
/// <summary>
/// 配置键
/// </summary>
[Required]
[MaxLength(100)]
public string ConfigKey { get; set; } = string.Empty;
/// <summary>
/// 配置值
/// </summary>
[Required]
public string ConfigValue { get; set; } = string.Empty;
/// <summary>
/// 描述
/// </summary>
[MaxLength(500)]
public string? Description { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}