using System;
using System.Collections.Generic;

namespace HoneyBox.Model.Entities;

/// <summary>
/// 订单详情表，存储订单中的抽奖结果/奖品信息
/// </summary>
public partial class OrderItem
{
    /// <summary>
    /// 订单详情ID，主键自增
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 关联订单ID
    /// </summary>
    public int OrderId { get; set; }

    /// <summary>
    /// 用户ID
    /// </summary>
    public int UserId { get; set; }

    /// <summary>
    /// 回收单号
    /// </summary>
    public string? RecoveryNum { get; set; }

    /// <summary>
    /// 发货单号
    /// </summary>
    public string? SendNum { get; set; }

    /// <summary>
    /// 状态：0待处理，1已回收，2已发货
    /// </summary>
    public byte Status { get; set; }

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

    /// <summary>
    /// 抽奖次数序号
    /// </summary>
    public int Num { get; set; }

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

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

    /// <summary>
    /// 奖品标题快照
    /// </summary>
    public string? GoodslistTitle { get; set; }

    /// <summary>
    /// 奖品图片快照
    /// </summary>
    public string? GoodslistImgurl { get; set; }

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

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

    /// <summary>
    /// 奖品类型：1实物，2虚拟
    /// </summary>
    public byte GoodslistType { get; set; }

    /// <summary>
    /// 奖品销售时间戳
    /// </summary>
    public int GoodslistSaleTime { get; set; }

    /// <summary>
    /// 创建时间戳
    /// </summary>
    public int Addtime { get; set; }

    /// <summary>
    /// 选择时间戳
    /// </summary>
    public int ChoiceTime { get; set; }

    /// <summary>
    /// 是否保险：0否，1是
    /// </summary>
    public byte InsuranceIs { get; set; }

    /// <summary>
    /// 订单类型：0普通，1福利屋
    /// </summary>
    public byte OrderType { get; set; }

    /// <summary>
    /// 关联订单详情ID
    /// </summary>
    public int OrderListId { get; set; }

    /// <summary>
    /// 幸运号码
    /// </summary>
    public int LuckNo { get; set; }

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

    /// <summary>
    /// 是否重复：0否，1是
    /// </summary>
    public byte? IsChong { get; set; }

    /// <summary>
    /// 删除时间戳
    /// </summary>
    public int? Deltime { get; set; }

    /// <summary>
    /// 来源：1普通，2其他
    /// </summary>
    public byte? Source { get; set; }

    /// <summary>
    /// 发货状态
    /// </summary>
    public int FhStatus { get; set; }

    /// <summary>
    /// 发货备注
    /// </summary>
    public string? FhRemarks { get; set; }

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

    /// <summary>
    /// 父商品奖品ID
    /// </summary>
    public int ParentGoodsListId { get; set; }

    /// <summary>
    /// 是否灵珠：0否，1是
    /// </summary>
    public byte IsLingzhu { get; set; }

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

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