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.

140 lines
3.9 KiB

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; }
/// <summary>
/// 完成优化时间
/// </summary>
[Column(DbType = "datetime")]
public DateTime? CompletionTime { get; set; }
[Column(DbType = "datetime")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 上次优化时间(优化完成后首次采购的时间)
/// </summary>
[Column(DbType = "datetime")]
public DateTime? LastOptimizationTime { get; set; }
/// <summary>
/// 是否完成优化
/// </summary>
public bool? IsOptimizationCompleted { get; set; } = false;
/// <summary>
/// 是否完成采购
/// </summary>
public bool? IsPurchasementCompleted { get; set; } = false;
[Column(StringLength = 50)]
public string JDSkuId { get; set; }
/// <summary>
/// 预估需求量
/// </summary>
[Column(DbType = "int")]
public int? PreItemCount { get; set; } = 0;
/// <summary>
/// 预估采购金额
/// </summary>
[Column(DbType = "decimal(18,2)")]
public decimal? PrePurchasedAmount { get; set; } = 0.00M;
[Column(StringLength = 50)]
public string ProductId { get; set; }
/// <summary>
/// 距离安全预警天数
/// </summary>
[Column(DbType = "int")]
public int? SafeWarningRemainingDay { get; set; } = 0;
[Column(DbType = "bigint")]
public long? ShopId { get; set; }
/// <summary>
/// 来源店铺名
/// </summary>
[Column(StringLength = 50)]
public string BelongShopName { get; set; }
[Column(StringLength = 50)]
public string SkuId { get; set; }
/// <summary>
/// 触发优化原因 首次采购 = 0, 首次优化 = 1, 再次优化 = 2
/// </summary>
[Column(DbType = "int", MapType = typeof(int))]
public Enums.TriggerOptimizationReason? TriggerOptimizationReason { get; set; } = 0;
/// <summary>
/// 上次优化率
/// </summary>
[Column(DbType = "decimal(18,2)")]
public decimal? LastOptimizationRatio { get; set; } = 0.00M;
/// <summary>
/// 上次采购单价
/// </summary>
[Column(DbType = "decimal(18,2)")]
public decimal? LastPurchasePrice { get; set; } = 0.00M;
#region Extension
#region TimeLimitTask
[Column(IsIgnore = true)]
public long TimeLimitTaskId { get; set; }
[Column(IsIgnore = true)]
public DateTime? TimeLimitTaskCompletionTime { get; set; }
[Column(IsIgnore = true)]
public DateTime? TimeLimitTaskCreateTme { get; set; }
[Column(IsIgnore = true)]
public DateTime? TimeLimitTaskPayTime { get; set; }
[Column(IsIgnore = true)]
public DateTime? TimeLimitTaskExpirationTime { get; set; }
[Column(IsIgnore = true)]
public bool? TimeLimitTaskIsTimely { get; set; }
[Column(IsIgnore = true)]
public string TimeLimitTaskOrderId { get; set; }
[Column(IsIgnore = true)]
public string TimeLimitTaskOrderSn { get; set; }
[Column(IsIgnore = true)]
public long? TimeLimitTaskShopId { get; set; }
[Column(IsIgnore = true)]
public string TimeLimitTaskSkuId { get; set; }
[Column(IsIgnore = true)]
public Enums.TimeLimitTaskType? TimeLimitTaskTaskType { get; set; }
[Column(IsIgnore = true)]
public string TimeLimitTaskRemark { get; set; }
[Column(IsIgnore = true)]
public long TimeLimitTaskBelongTaskId { get; set; }
#endregion
#endregion
}
}