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.
59 lines
1.6 KiB
59 lines
1.6 KiB
using FreeSql.DataAnnotations;
|
|
using System;
|
|
|
|
namespace SiNan.Model.Db
|
|
{
|
|
|
|
[Table(Name = "product", DisableSyncStructure = true)]
|
|
public partial class Product
|
|
{
|
|
|
|
/// <summary>
|
|
/// SPU
|
|
/// </summary>
|
|
[Column(StringLength = 50, IsPrimary = true, IsNullable = false)]
|
|
public string Id { get; set; }
|
|
|
|
[Column(DbType = "datetime")]
|
|
public DateTime? CreateTime { get; set; }
|
|
|
|
[Column(DbType = "int(1)", MapType = typeof(int))]
|
|
public Enums.Platform Platform { get; set; }
|
|
|
|
/// <summary>
|
|
/// 货号
|
|
/// </summary>
|
|
[Column(StringLength = 100)]
|
|
public string ProductItemNum { get; set; }
|
|
|
|
|
|
public long? ShopId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 标题
|
|
/// </summary>
|
|
|
|
public string Title { get; set; }
|
|
|
|
/// <summary>
|
|
/// 主SkuId
|
|
/// </summary>
|
|
[Column(StringLength = 50)]
|
|
public string MainSkuId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 京东商品状态【-1:删除 1:从未上架 2:自主下架 4:系统下架 8:上架 513:从未上架待审 514:自主下架待审 516:系统下架待审 520:上架待审核 1028:系统下架审核失败】
|
|
/// </summary>
|
|
public int? State { get; set; }
|
|
|
|
[Column(MapType = typeof(int), DbType = "int")]
|
|
public Enums.Stage Stage { get; set; } = Enums.Stage.新品款;
|
|
|
|
/// <summary>
|
|
/// 最大亏损阈值
|
|
/// </summary>
|
|
[Column(DbType = "decimal(18,2)")]
|
|
public decimal? MaxDeficitThreshold { get; set; } = 0.00M;
|
|
}
|
|
|
|
}
|
|
|