using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Atomx.Common.Entities { /// /// 规格属性选项 /// [Table("SpecificationAttributeOptions")] public class SpecificationAttributeOption { /// /// 预设值ID /// [DatabaseGenerated(DatabaseGeneratedOption.None)] [Key] public long Id { get; set; } /// /// 产品属性ID /// public long SpecificationId { get; set; } /// /// 预设值名称 /// [Column(TypeName = "varchar(50)")] public string Value { get; set; } = string.Empty; /// /// 属性值使用量 /// 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; } } }