using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Atomx.Common.Entities { /// /// 产品属性组合商品数据 /// [Table("ProductAttributeCombinations")] public class ProductAttributeCombination { /// /// 数据ID /// [DatabaseGenerated(DatabaseGeneratedOption.None)] [Key] public long Id { get; set; } /// /// 产品ID /// public long ProductId { get; set; } /// /// 归属公司ID /// public long CorporationId { get; set; } /// /// 供应制造商ID /// public long ManufacturerId { get; set; } /// /// 属性JSON /// [Column(TypeName = "text")] public string AttributesJson { get; set; } = string.Empty; /// /// 库存数量 /// public int StockQuantity { get; set; } /// /// 销售数量 /// public int SalesQuantity { get; set; } /// /// SKU编码 /// [Column(TypeName = "varchar(20)")] public string SkuNumber { get; set; } = string.Empty; /// /// 重量 /// [Column(TypeName = "decimal(18,4)")] public decimal Weight { get; set; } /// /// 重量单位,1克,2千克,3磅,4盎司 /// public int WeightUnit { get; set; } /// /// 销售加工费 /// [Column(TypeName = "decimal(18,4)")] public decimal ProcessCharge { get; set; } /// /// 加工费成本 /// [Column(TypeName = "decimal(18,4)")] public decimal ProcessCost { get; set; } /// /// 销售附加费 /// [Column(TypeName = "decimal(18,4)")] public decimal Surcharge { get; set; } /// /// 附加费成本 /// [Column(TypeName = "decimal(18,4)")] public decimal SurchargeCost { get; set; } /// /// SKU的市场价,划线价 /// [Column(TypeName = "decimal(18,4)")] public decimal MarketPrice { get; set; } /// /// SKU的销售价格 /// [Column(TypeName = "decimal(18,4)")] public decimal Price { get; set; } /// /// 标记 /// public int Mark { get; set; } /// /// 备注说明 /// [Column(TypeName = "varchar(256)")] public string Note { get; set; } = string.Empty; /// /// 是否禁用停售 /// public bool Enabled { get; set; } /// /// 更新时间 /// [Column(TypeName = "timestamptz")] public DateTime? UpdateTime { get; set; } } }