using SqlSugar;
using QYZH.InteractiveMagazine.Models.Enum;

namespace QYZH.InteractiveMagazine.Models.Entity
{
    ///<summary>
    ///虚拟商品表
    ///</summary>
    [SugarTable("Product")]
    public partial class Product : SqlSugarBaseEntity
    {
        public Product()
        {


        }

        /// <summary>
        /// Desc:商品名称
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string Name { get; set; }

        /// <summary>
        /// Desc:描述
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Description { get; set; }

        /// <summary>
        /// Desc:商品图片
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string ImageUrl { get; set; }

        /// <summary>
        /// Desc:所需积分
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int Price { get; set; }

        /// <summary>
        /// Desc:商品类型: MakeUpCard, PetBg
        /// Default:
        /// Nullable:False
        /// </summary>           
        public ProductTypeEnum Type { get; set; }

        /// <summary>
        /// Desc:扩展数据
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string MetaData { get; set; }

        /// <summary>
        /// Desc:是否上架
        /// Default:b'1'
        /// Nullable:False
        /// </summary>           
        public bool IsActive { get; set; }

        /// <summary>
        /// Desc:库存(-1无限)
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int Stock { get; set; }
        /// <summary>
        /// Desc:是否是虚拟商品
        /// </summary>           
        public bool IsVirtual { get; set; }
        /// <summary>
        /// Desc:Type对应的Id
        /// </summary>           
        public long TypeId { get; set; }

    }
}
