using FreeSql.DataAnnotations; namespace BBWYB.Server.Model.Db { [Table(Name = "orderpurchaseinfo", DisableSyncStructure = true)] public partial class OrderPurchaseInfo { [Column(IsPrimary = true, IsNullable = false)] public long Id { get; set; } [Column(StringLength = 50, IsNullable = false)] public string OrderId { get; set; } [Column(DbType = "datetime")] public DateTime? CreateTime { get; set; } /// /// 采购账号Id /// [Column(StringLength = 100)] public string PurchaseAccountId { get; set; } /// /// 采购账号名称 /// [Column(StringLength = 100)] public string PurchaseAccountName { get; set; } [Column(MapType = typeof(int?))] public Enums.PurchaseMethod? PurchaseMethod { get; set; } /// /// 采购单Id /// [Column(StringLength = 100)] public string PurchaseOrderId { get; set; } [Column(MapType = typeof(int?))] public Enums.Platform? PurchasePlatform { get; set; } /// /// 采购商Id /// [Column(StringLength = 100)] public string PurchaserId { get; set; } /// /// 采购商名称 /// [Column(StringLength = 100)] public string PurchaserName { get; set; } /// /// 店铺Id /// public long? ShopId { get; set; } /// /// 归属订单Sku /// [Column(StringLength = 500)] public string BelongSkuIds { get; set; } [Column(DbType = "bit")] public bool IsEnabled { get; set; } = true; /// /// 采购单备注 /// [Column(StringLength = 500)] public string Remark { get; set; } /// /// 设置历史采购单时间 /// [Column(DbType = "datetime", IsNullable = true)] public DateTime HistorySettingTime { get; set; } /// /// 采购单状态 /// [Column(MapType = typeof(int?))] public Enums.PurchaseOrderState? OrderState { get; set; } /// /// 是否平价 /// [Column(MapType = typeof(int?))] public Enums.AutoEditOrderPriceType? IsAutoEditOrderPrice { get; set; } } }