using FreeSql.DataAnnotations; namespace BBWYB.Server.Model.Db { /// /// 历史采购方案表 /// [Table(Name = "historypurchasescheme", DisableSyncStructure = true)] public partial class HistoryPurchaseScheme { /// /// 历史流水Id /// [Column(DbType = "bigint", IsPrimary = true)] public long HistoryId { get; set; } [Column(DbType = "datetime")] public DateTime? CreateTime { get; set; } /// /// 采购默认成本 /// public decimal? DefaultCost { 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? Id { get; set; } /// /// 上次采购成本 /// [Column(DbType = "decimal(18,2)")] public decimal? LastPurchasePriceCost { get; set; } /// /// 上次采购时间 /// [Column(DbType = "datetime")] public DateTime? LastPurchaseTime { get; set; } [Column(StringLength = 50, IsNullable = false)] public string ProductId { get; set; } /// /// 方案分组Id /// [Column(DbType = "bigint")] public long? SchemeGroupId { get; set; } /// /// 店铺Id /// [Column(DbType = "bigint")] public long ShopId { get; set; } [Column(StringLength = 50, IsNullable = false)] public string SkuId { get; set; } /// /// 采购方案版本 /// [Column(DbType = "int")] public int? Version { get; set; } = 1; /// /// 议价成本,只有当任意配件包含议价成本时才具备此值 /// public decimal? BargainingCost { get; set; } /// /// 采购次数 /// public int? PurchasedCount { get; set; } = 0; /// /// 采购金额 /// public decimal? PurchasedAmount { get; set; } = 0M; } }