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

namespace QYZH.InteractiveMagazine.Models.Entity
{
    /// <summary>
    /// 商品兑换记录表
    /// </summary>
    [SugarTable("ExchangeRecord")]
    public partial class ExchangeRecord : SqlSugarBaseEntity
    {
        public ExchangeRecord() { }

        /// <summary>
        /// Desc:用户Id
        /// Default:
        /// Nullable:False
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// Desc:商品Id
        /// Default:
        /// Nullable:False
        /// </summary>
        public long ProductId { get; set; }

        /// <summary>
        /// Desc:商品名称（快照）
        /// Default:
        /// Nullable:False
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// Desc:商品类型（快照）: MakeUpCard, PetBg
        /// Default:
        /// Nullable:False
        /// </summary>
        public string ProductType { get; set; }

        /// <summary>
        /// Desc:消耗积分
        /// Default:
        /// Nullable:False
        /// </summary>
        public int PointsCost { get; set; }

        /// <summary>
        /// Desc:兑换后积分余额
        /// Default:
        /// Nullable:False
        /// </summary>
        public int PointsBalance { get; set; }

        /// <summary>
        /// Desc:兑换数量
        /// Default:1
        /// Nullable:False
        /// </summary>
        public int Quantity { get; set; }

    }
}
