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

namespace Atomx.Admin.Client.Models
{
    public class SpecificationAttributeModel
    {
        /// <summary>
        /// 属性ID
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Key]
        public long Id { get; set; }

        /// <summary>
        /// 上级属性,用于规格属性做分组
        /// </summary>
        public long ParentId { get; set; }

        /// <summary>
        /// 分类ID
        /// </summary>
        public long CategoryId { get; set; }

        /// <summary>
        /// 属性名称
        /// </summary>
        [Column(TypeName = "varchar(50)")]

        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 属性控件类型，1选项，2文本
        /// </summary>
        public int ControlType { get; set; }

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

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