using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Atomx.Common.Entities { /// /// 规格属性 /// [Table("SpecificationAttributes")] public class SpecificationAttribute { /// /// 属性ID /// [DatabaseGenerated(DatabaseGeneratedOption.None)] [Key] public long Id { get; set; } /// /// 分类ID /// public long CategoryId { get; set; } /// /// 上级属性,用于规格属性做分组 /// public long ParentId { get; set; } /// /// 属性名称 /// [Column(TypeName = "varchar(50)")] public string Name { get; set; } = string.Empty; /// /// 属性控件类型,1选项,2文本 /// public int ControlType { get; set; } /// /// 使用属性的产品数量 /// public int Count { get; set; } /// /// 展示排序 /// public int DisplayOrder { get; set; } /// /// 数据状态 /// public int Status { get; set; } /// /// 创建时间 /// [Column(TypeName = "timestamptz")] public DateTime CreateTime { get; set; } /// /// 更新时间 /// [Column(TypeName = "timestamptz")] public DateTime? UpdateTime { get; set; } } }