You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.0 KiB

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