using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Atomx.Admin.Client.Models
{
    public class SpecificationAttributeOptionModel
    {
        /// <summary>
        /// 预设值ID
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Key]

        public long Id { get; set; }

        /// <summary>
        /// 供应商自定义值
        /// </summary>
        public long VendorId { get; set; }

        /// <summary>
        /// 产品属性ID
        /// </summary>
        public long SpecificationId { get; set; }

        /// <summary>
        /// 预设值名称
        /// </summary>
        [Column(TypeName = "varchar(50)")]
        public string Value { get; set; } = string.Empty;

        /// <summary>
        /// 展示排序
        /// </summary>
        public int DisplayOrder { get; set; }

        /// <summary>
        /// 是否通用的
        /// </summary>
        public bool Standard { get; set; }

        /// <summary>
        /// 数据状态
        /// </summary>
        public int Status { get; set; }
    }
}
