using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Atomx.Common.Entities { /// /// 产品属性值表 /// [Table("ProductAttributeValues")] public class ProductAttributeValue { /// /// 数据ID /// [DatabaseGenerated(DatabaseGeneratedOption.None)] [Key] public long Id { get; set; } /// /// 产品ID /// public long ProductId { get; set; } /// /// 预设值ID /// public long OptionId { get; set; } /// /// 产品属性关系数据ID /// public long ProductAttributeRelationId { get; set; } /// /// 属性值名称 /// [Column(TypeName = "varchar(50)")] public string Name { get; set; } = string.Empty; /// /// 属性图片 /// [Column(TypeName = "varchar(256)")] public string Image { get; set; } = string.Empty; /// /// 重量 /// [Column(TypeName = "decimal(18,4)")] public decimal Weight { get; set; } /// /// 重量单位,1克,2千克,3磅,4盎司 /// public int WeightUnit { get; set; } /// /// 是否是加重的 /// public bool IsAddWeight { get; set; } = false; /// /// 展示排序 /// public int DisplayOrder { get; set; } } }