4 changed files with 134 additions and 2 deletions
@ -0,0 +1,39 @@ |
|||
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; } |
|||
|
|||
} |
|||
|
|||
} |
@ -0,0 +1,74 @@ |
|||
using FreeSql.DatabaseModel; |
|||
using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
using System.Threading.Tasks; |
|||
using Newtonsoft.Json; |
|||
using FreeSql.DataAnnotations; |
|||
|
|||
namespace BBWYB.Server.Model.Db |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// Sku总销量表
|
|||
/// </summary>
|
|||
[Table(Name = "skutotalsaleinfo", DisableSyncStructure = true)] |
|||
public partial class SkuTotalSaleInfo |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// Sku
|
|||
/// </summary>
|
|||
[Column(StringLength = 50, IsPrimary = true, IsNullable = false)] |
|||
public string SkuId { get; set; } |
|||
|
|||
[Column(DbType = "datetime")] |
|||
public DateTime? CreateTime { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 是否有效
|
|||
/// </summary>
|
|||
|
|||
public bool? IsEnabled { get; set; } = false; |
|||
|
|||
/// <summary>
|
|||
/// 是否需要议价
|
|||
/// </summary>
|
|||
|
|||
public bool? IsNeedOptimization { get; set; } = false; |
|||
|
|||
/// <summary>
|
|||
/// 销量,销售件数
|
|||
/// </summary>
|
|||
[Column(DbType = "bigint")] |
|||
public long? ItemCount { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 上次优化时的销量
|
|||
/// </summary>
|
|||
[Column(DbType = "bigint")] |
|||
public long? LastOptimizationItemCount { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 上次优化时间
|
|||
/// </summary>
|
|||
[Column(DbType = "datetime")] |
|||
public DateTime? LastOptimizationTime { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// Spu
|
|||
/// </summary>
|
|||
[Column(StringLength = 50)] |
|||
public string ProductId { get; set; } |
|||
|
|||
[Column(DbType = "bigint")] |
|||
public long? ShopId { get; set; } |
|||
|
|||
[Column(DbType = "datetime")] |
|||
public DateTime? UpdateTime { get; set; } |
|||
|
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue