using FreeSql.DataAnnotations;
namespace BBWYB.Server.Model.Db
{
///
/// 订单SKU
///
[Table(Name = "ordersku", DisableSyncStructure = true)]
public partial class OrderSku
{
[Column(IsPrimary = true)]
public long Id { get; set; }
[Column(DbType = "datetime")]
public DateTime? CreateTime { get; set; }
///
/// 是否退款
///
public bool? IsRefund { get; set; } = false;
///
/// 销售数量
///
[Column(DbType = "int(1)")]
public int? ItemTotal { get; set; }
///
/// Logo
///
public string Logo { get; set; }
[Column(StringLength = 50)]
public string OrderId { get; set; }
///
/// 销售单价
///
[Column(DbType = "decimal(20,2)")]
public decimal? Price { get; set; }
///
/// 最初单价
///
[Column(DbType = "decimal(20,2)")]
public decimal? InitialPrice { get; set; }
[Column(StringLength = 50)]
public string ProductId { get; set; }
///
/// 货号
///
[Column(StringLength = 50)]
public string ProductNo { get; set; }
public long? ShopId { get; set; }
[Column(StringLength = 50, IsNullable = false)]
public string SkuId { get; set; }
///
/// 归属SkuId
///
[Column(StringLength = 50)]
public string BelongSkuId { get; set; }
///
/// Sku标题
///
public string Title { get; set; }
[Column(DbType = "int(1)", MapType = typeof(int?))]
public Enums.PackConfigState? PackConfigState { get; set; }
///
/// 买家支付运费
///
[Column(DbType = "decimal(20,2)")]
public decimal? BuyerPayFreight { get; set; } = 0.00M;
///
/// 实收打包费
///
[Column(DbType = "decimal(20,2)")]
public decimal? InPackAmount { get; set; } = 0.00M;
///
/// SKU备注
///
[Column(StringLength = 500)]
public string Remark { get; set; }
///
/// 是否验收
///
[Column(DbType = "bit", IsNullable = true)]
public bool? IsCheck { get; set; }
///
/// 是否需要优化 是=1 否=0
///
[Column(DbType = "int(1)", IsNullable = true)]
public int? IsNeedOptimization { get; set; } = 0;
///
/// 是否优化完成 是=1 否=0
///
[Column(DbType = "int(1)", IsNullable = true)]
public int? IsOptimizationCompleted { get; set; } = 0;
///
/// 触发优化原因
///
[Column(DbType = "int(1)", MapType = typeof(int?), IsNullable = true)]
public Enums.TriggerOptimizationReason? TriggerOptimizationReason { get; set; }
}
}