using BBWYB.Server.Model.Db; using FreeSql.DataAnnotations; using Newtonsoft.Json; namespace BBWYB.Server.Model { /// /// Sku采购方案表 /// [Table(Name = "purchasescheme", DisableSyncStructure = true)] public partial class PurchaseScheme { /// /// Sku采购方案Id /// [Column(IsPrimary = true)] public long Id { get; set; } [Column(DbType = "datetime")] public DateTime? CreateTime { get; set; } /// /// 采购默认成本 /// public decimal DefaultCost { get; set; } = 0.0M; /// /// 上次采购成本 /// public decimal LastPurchasePriceCost { get; set; } = 0.0M; [Column(StringLength = 50, IsNullable = false)] public string ProductId { get; set; } ///// ///// 采购商Id ///// //[Column(StringLength = 20)] //public string PurchaserId { get; set; } [Column(StringLength = 50, IsNullable = false)] public string SkuId { get; set; } public long ShopId { get; set; } /// /// 最后采购时间 /// public DateTime? LastPurchaseTime { get; set; } /// /// 慧眼标的Id /// [Column(StringLength = 50)] public string HYBDId { get; set; } /// /// 慧眼方案Id /// [Column(StringLength = 50)] public string HYSchemeId { get; set; } /// /// 分组Id /// [Column(DbType = "bigint")] public long SchemeGroupId { get; set; } = 0; /// /// 方案版本 /// [Column(DbType = "int")] public int Version { get; set; } = 1; [Column(IsIgnore = true)] public List PurchaseSchemeProductList { get; set; } } }