using System;
using System.Collections.Generic;

namespace HoneyBox.Model.Entities;

/// <summary>
/// 钻石订单表
/// </summary>
public partial class DiamondOrder
{
    /// <summary>
    /// 主键ID
    /// </summary>
    public long Id { get; set; }

    /// <summary>
    /// 订单号
    /// </summary>
    public string OrderNo { get; set; } = null!;

    /// <summary>
    /// 用户ID
    /// </summary>
    public long UserId { get; set; }

    /// <summary>
    /// 钻石商品ID
    /// </summary>
    public int DiamondId { get; set; }

    /// <summary>
    /// 产品ID
    /// </summary>
    public string ProductId { get; set; } = null!;

    /// <summary>
    /// 产品名称
    /// </summary>
    public string? ProductName { get; set; }

    /// <summary>
    /// 支付金额
    /// </summary>
    public decimal AmountPaid { get; set; }

    /// <summary>
    /// 支付方式
    /// </summary>
    public string PayMethod { get; set; } = null!;

    /// <summary>
    /// 奖励日志
    /// </summary>
    public string? RewardLog { get; set; }

    /// <summary>
    /// 是否首充: 0否 1是
    /// </summary>
    public byte? IsFirstCharge { get; set; }

    /// <summary>
    /// 订单状态: pending待支付 paid已支付 cancelled已取消
    /// </summary>
    public string? Status { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreatedAt { get; set; }

    /// <summary>
    /// 支付时间
    /// </summary>
    public DateTime? PaidAt { get; set; }
}
