using System;
using System.Collections.Generic;

namespace HoneyBox.Model.Entities;

/// <summary>
/// 商品奖品列表，存储盲盒中的奖品信息
/// </summary>
public partial class GoodsItem
{
    /// <summary>
    /// 奖品ID
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 商品ID
    /// </summary>
    public int GoodsId { get; set; }

    /// <summary>
    /// 奖品编号
    /// </summary>
    public int Num { get; set; }

    /// <summary>
    /// 奖品标题
    /// </summary>
    public string Title { get; set; } = null!;

    /// <summary>
    /// 奖品图片URL
    /// </summary>
    public string ImgUrl { get; set; } = null!;

    /// <summary>
    /// 总库存
    /// </summary>
    public int Stock { get; set; }

    /// <summary>
    /// 剩余库存
    /// </summary>
    public int SurplusStock { get; set; }

    /// <summary>
    /// 奖品价格
    /// </summary>
    public decimal Price { get; set; }

    /// <summary>
    /// 回收金额
    /// </summary>
    public decimal Money { get; set; }

    /// <summary>
    /// 市场回收金额
    /// </summary>
    public decimal ScMoney { get; set; }

    /// <summary>
    /// 真实概率
    /// </summary>
    public decimal RealPro { get; set; }

    /// <summary>
    /// 商品类型 1-实物 2-虚拟
    /// </summary>
    public byte GoodsType { get; set; }

    /// <summary>
    /// 开售时间
    /// </summary>
    public DateTime? SaleTime { get; set; }

    /// <summary>
    /// 排序值
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// 奖品等级ID
    /// </summary>
    public int? ShangId { get; set; }

    /// <summary>
    /// 奖励数量
    /// </summary>
    public int RewardNum { get; set; }

    /// <summary>
    /// 排名
    /// </summary>
    public int Rank { get; set; }

    /// <summary>
    /// 赠送金额
    /// </summary>
    public int GiveMoney { get; set; }

    /// <summary>
    /// 特殊库存
    /// </summary>
    public int SpecialStock { get; set; }

    /// <summary>
    /// 卡片编号
    /// </summary>
    public string? CardNo { get; set; }

    /// <summary>
    /// 奖品编码
    /// </summary>
    public string? PrizeCode { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreatedAt { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime UpdatedAt { get; set; }

    /// <summary>
    /// 奖品数量
    /// </summary>
    public int PrizeNum { get; set; }

    /// <summary>
    /// 类型
    /// </summary>
    public byte Type { get; set; }

    /// <summary>
    /// 连击类型
    /// </summary>
    public byte LianJiType { get; set; }

    /// <summary>
    /// 奖励ID
    /// </summary>
    public string? RewardId { get; set; }

    /// <summary>
    /// 奖品详情图片URL
    /// </summary>
    public string? ImgUrlDetail { get; set; }

    /// <summary>
    /// 翻倍倍数
    /// </summary>
    public int Doubling { get; set; }

    /// <summary>
    /// 关联奖品列表ID
    /// </summary>
    public int GoodsListId { get; set; }

    /// <summary>
    /// 是否灵珠奖品 0-否 1-是
    /// </summary>
    public byte IsLingzhu { get; set; }
}
