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.

57 lines
1.5 KiB

using FreeSql.DataAnnotations;
namespace BBWYB.Server.Model.Db
{
/// <summary>
/// Sku历史优化表
/// </summary>
[Table(Name = "skuoptimizationhistory", DisableSyncStructure = true)]
public partial class SkuOptimizationHistory
{
[Column(DbType = "bigint", IsPrimary = true)]
public long Id { get; set; }
/// <summary>
/// 优化时间
/// </summary>
[Column(DbType = "datetime")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 优化率
/// </summary>
[Column(DbType = "decimal(18,2)")]
public decimal? OptimizationRatio { get; set; }
[Column(StringLength = 50)]
public string ProductId { get; set; }
[Column(DbType = "bigint")]
public long? ShopId { get; set; }
[Column(StringLength = 50)]
public string SkuId { get; set; }
/// <summary>
/// 上次采购单价
/// </summary>
[Column(DbType = "decimal(18,2)", IsNullable = true)]
public decimal? LastPurchasePrice { get; set; } = 0.0M;
/// <summary>
/// 本次采购单价
/// </summary>
[Column(DbType = "decimal(18,2)", IsNullable = true)]
public decimal? CurrentPurchasePrice { get; set; } = 0.0M;
/// <summary>
/// 触发优化原因
/// </summary>
[Column(DbType = "int(1)", MapType = typeof(int?), IsNullable = true)]
public Enums.TriggerOptimizationReason? TriggerOptimizationReason { get; set; }
}
}