using FreeSql.DataAnnotations;
using System;
namespace BBWYB.Server.Model.Db
{
[Table(Name = "purchaseschemeproductsku", DisableSyncStructure = true)]
public partial class PurchaseSchemeProductSku
{
///
/// 采购商品的SKU和采购方案的关系Id
///
[Column(IsPrimary = true)]
public long Id { get; set; }
[Column(DbType = "datetime")]
public DateTime? CreateTime { get; set; }
[Column(StringLength = 50, IsNullable = false)]
public string ProductId { get; set; }
///
/// 采购商品Id
///
[Column(StringLength = 50, IsNullable = false)]
public string PurchaseProductId { get; set; }
///
/// 采购商品的SkuId
///
[Column(StringLength = 50)]
public string PurchaseSkuId { get; set; }
///
/// 采购商品Sku的SpecId
///
[Column(StringLength = 50)]
public string PurchaseSkuSpecId { get; set; }
[Column(StringLength = 50, IsNullable = false)]
public string SkuId { get; set; }
///
/// Sku采购方案Id
///
public long SkuPurchaseSchemeId { get; set; }
///
/// 采购比例
///
[Column(DbType = "int(1)", IsNullable = true)]
public int? PurchaseRatio { get; set; } = 1;
///
/// 实际单价
///
public decimal? ActualPrice { get; set; }
///
/// 最近议价日期
///
[Column(DbType = "datetime", IsNullable = true)]
public DateTime? LastBargainingTime { get; set; }
///
/// 配件的最近采购价(配件单价)
///
public decimal? LastPurchasePriceCost { get; set; }
}
}