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