You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

80 lines
2.9 KiB

using FreeSql.DataAnnotations;
namespace Znyc.CloudCar.Model.Entities
{
/// <summary>
/// 订单主表
/// </summary>
[Table(Name = "order")]
public class OrderEntity : EntityBase
{
/// <summary>
/// 订单编号
/// </summary>
[Column(StringLength = 12)]
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“OrderSn”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string OrderSn { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“OrderSn”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// <summary>
/// 下单人ID
/// </summary>
public long UserId { get; set; }
/// <summary>
/// 支付方式:1现金,2余额,3网银,4支付宝,5微信.6云币
/// </summary>
public int PaymentMethod { get; set; }
/// <summary>
/// 订单金额
/// </summary>
public decimal OrderMoney { get; set; }
/// <summary>
/// 优惠金额
/// </summary>
public decimal DistrictMoney { get; set; }
/// <summary>
/// 支付金额
/// </summary>
public decimal PaymentMoney { get; set; }
/// <summary>
/// 快递公司名称
/// </summary>
[Column(StringLength = 8)]
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“ShippingCompName”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string ShippingCompName { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“ShippingCompName”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// <summary>
/// 快递单号
/// </summary>
[Column(StringLength = 15)]
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“ShippingSn”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string ShippingSn { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“ShippingSn”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// <summary>
/// 支付时间
/// </summary>
public DateTime PayTime { get; set; }
/// <summary>
/// 订单状态:0-已取消-10-未付款,20-已付款,40-已发货,50-交易成功,60-交易关闭
/// </summary>
public int OrderStatus { get; set; }
/// <summary>
/// 订单云币
/// </summary>
public decimal OrderCurrency { get; set; }
/// <summary>
/// 订单类型 1-充值/2-优惠卡
/// </summary>
public int OrderType { get; set; }
}
}