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