using System;

namespace CloudGaming.Model.DbSqlServer.Db_User;

/// <summary>
/// 订单完成表
/// </summary>
public partial class T_User_Order: MultiTenantEntity
{
    public T_User_Order() { }

    public virtual int Id { get; set; }

     /// <summary>
    /// 所属租户
    /// </summary>
    public override Guid TenantId { get; set; }
         
    /// <summary>
    /// 订单编号
    /// </summary>
    public virtual string OrderId { get; set; } = null!;

    /// <summary>
    /// 用户Id
    /// </summary>
    public virtual int UserId { get; set; }

    /// <summary>
    /// 订单创建时间
    /// </summary>
    public virtual DateTime OrderDate { get; set; }

    /// <summary>
    /// 订单支付时间
    /// </summary>
    public virtual DateTime PaymentDate { get; set; }

    /// <summary>
    /// 订单支付方式
    /// </summary>
    public virtual string PaymentMethod { get; set; } = null!;

    /// <summary>
    /// 购买的产品Id
    /// </summary>
    public virtual string ProductId { get; set; } = null!;

    /// <summary>
    /// 价格
    /// </summary>
    public virtual decimal TotalPrice { get; set; }

    /// <summary>
    /// 订单状态
    /// </summary>
    public virtual int Status { get; set; }

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

    /// <summary>
    /// 修改时间
    /// </summary>
    public virtual DateTime UpdatedAt { get; set; }

    /// <summary>
    /// 订单创建天
    /// </summary>
    public virtual DateOnly PaymentDay { get; set; }

    /// <summary>
    /// 渠道
    /// </summary>
    public virtual string? Channel { get; set; }
}
