using FreeSql.DataAnnotations;
namespace BBWYB.Server.Model.Db
{
[Table(Name = "skuoptimizationtask", DisableSyncStructure = true)]
public partial class SkuOptimizationTask
{
[Column(DbType = "bigint", IsPrimary = true)]
public long Id { get; set; }
///
/// 完成优化时间
///
[Column(DbType = "datetime")]
public DateTime? CompletionTime { get; set; }
[Column(DbType = "datetime")]
public DateTime? CreateTime { get; set; }
///
/// 是否完成优化
///
public bool? IsOptimizationCompleted { get; set; } = false;
///
/// 是否完成采购
///
public bool? IsPurchasementCompleted { get; set; } = false;
[Column(StringLength = 50)]
public string JDSkuId { get; set; }
///
/// 预估需求量
///
[Column(DbType = "int")]
public int? PreItemCount { get; set; } = 0;
///
/// 预估采购金额
///
[Column(DbType = "decimal(18,2)")]
public decimal? PrePurchasedAmount { get; set; } = 0.00M;
[Column(StringLength = 50)]
public string ProductId { get; set; }
///
/// 距离安全预警天数
///
[Column(DbType = "int")]
public int? SafeWarningRemainingDay { get; set; } = 0;
[Column(DbType = "bigint")]
public long? ShopId { get; set; }
///
/// 来源店铺名
///
[Column(StringLength = 50)]
public string BelongShopName { get; set; }
[Column(StringLength = 50)]
public string SkuId { get; set; }
///
/// 触发优化原因 首次采购 = 0, 首次优化 = 1, 再次优化 = 2
///
[Column(DbType = "int", MapType = typeof(int))]
public Enums.TriggerOptimizationReason? TriggerOptimizationReason { get; set; } = 0;
///
/// 上次优化率
///
[Column(DbType = "decimal(18,2)")]
public decimal? LastOptimizationRatio { get; set; } = 0.00M;
///
/// 上次采购单价
///
[Column(DbType = "decimal(18,2)")]
public decimal? LastPurchasePrice { get; set; } = 0.00M;
}
}