using System; using System.Collections.Generic; using System.Linq; using System.Text.Json.Serialization; using SqlSugar; using Yi.Framework.Model.Base; namespace Yi.Framework.Model.SHOP.Entitys { /// /// Sku表 /// [SugarTable("Sku")] public partial class SkuEntity : IBaseModelEntity { public SkuEntity() { CreateTime = DateTime.Now; } [JsonConverter(typeof(ValueToStringConverter))] [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)] public long Id { get; set; } /// /// SpuId /// [SugarColumn(ColumnName = "SpuId")] public long? SpuId { get; set; } /// /// 库存 /// [SugarColumn(ColumnName = "Stock")] public int? Stock { get; set; } /// /// 价格 /// [SugarColumn(ColumnName = "Price")] public int? Price { get; set; } /// /// 创建者 /// [SugarColumn(ColumnName = "CreateUser")] public long? CreateUser { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "CreateTime")] public DateTime? CreateTime { get; set; } /// /// 修改者 /// [SugarColumn(ColumnName = "ModifyUser")] public long? ModifyUser { get; set; } /// /// 修改时间 /// [SugarColumn(ColumnName = "ModifyTime")] public DateTime? ModifyTime { get; set; } /// /// 是否删除 /// [SugarColumn(ColumnName = "IsDeleted")] public bool? IsDeleted { get; set; } /// /// 租户Id /// [SugarColumn(ColumnName = "TenantId")] public long? TenantId { get; set; } /// /// 排序字段 /// [SugarColumn(ColumnName = "OrderNum")] public int? OrderNum { get; set; } /// /// 描述 /// [SugarColumn(ColumnName = "Remark")] public string? Remark { get; set; } /// /// 规格sku信息 /// [SugarColumn(ColumnName = "SpecsSkuInfo", IsJson = true)] public List? SpecsSkuInfo { get; set; } /// /// 规格sku完整信息 /// [SugarColumn(ColumnName = "SpecsSkuAllInfo", IsJson = true)] public List? SpecsSkuAllInfo { get; set; } } public class SpecsSkuAllInfoModel { public string? SpecsGroupName { get; set; } public string? SpecsName { get; set; } } public class SpecsSkuInfoModel { public long? SpecsGroupId { get; set; } public long? SpecsId { get; set; } } }