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