using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; namespace Atomx.Admin.Client.Models { public class SpecificationAttributeModel { /// /// 属性ID /// [DatabaseGenerated(DatabaseGeneratedOption.None)] [Key] public long Id { get; set; } /// /// 上级属性,用于规格属性做分组 /// public long ParentId { get; set; } /// /// 分类ID /// public long CategoryId { get; set; } /// /// 属性名称 /// [Column(TypeName = "varchar(50)")] public string Name { get; set; } = string.Empty; /// /// 属性控件类型,1选项,2文本 /// public int ControlType { get; set; } /// /// 展示排序 /// public int DisplayOrder { get; set; } /// /// 数据状态 /// public int Status { get; set; } } }