namespace Atomx.Admin.Client.Models
{
    /// <summary>
    /// 产品属性值模型
    /// </summary>
    public class ProductAttributeValueModel
    {
        /// <summary>
        /// 数据ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 产品ID
        /// </summary>
        public long ProductId { get; set; }

        /// <summary>
        /// 预设值ID
        /// </summary>
        public long OptionId { get; set; }

        /// <summary>
        /// 产品属性关系数据ID
        /// </summary>
        public long ProductAttributeRelationId { get; set; }

        /// <summary>
        /// 属性值名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 属性图片
        /// </summary>
        public string Image { get; set; } = string.Empty;

        /// <summary>
        /// 重量
        /// </summary>
        public decimal Weight { get; set; }

        /// <summary>
        /// 重量单位，1克，2千克，3磅，4盎司
        /// </summary>
        public int WeightUnit { get; set; }

        /// <summary>
        /// 是否是加重的
        /// </summary>
        public bool IsAddWeight { get; set; } = false;

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

        /// <summary>
        /// 是否在编辑
        /// </summary>
        public bool IsEdit { get; set; }
    }
}
