using System;
using System.Collections.Generic;

namespace HoneyBox.Model.Entities;

/// <summary>
/// 欧气券表
/// </summary>
public partial class UserCoupon
{
    /// <summary>
    /// 主键ID
    /// </summary>
    public int Id { get; set; }

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

    /// <summary>
    /// 等级
    /// </summary>
    public int? Level { get; set; }

    /// <summary>
    /// 数量
    /// </summary>
    public int Num { get; set; }

    /// <summary>
    /// 剩余数量
    /// </summary>
    public decimal? LNum { get; set; }

    /// <summary>
    /// 状态: 1启用 0禁用
    /// </summary>
    public byte Status { get; set; }

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

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

    /// <summary>
    /// 来源ID
    /// </summary>
    public string FromId { get; set; } = null!;

    /// <summary>
    /// 分享时间
    /// </summary>
    public DateTime? ShareTime { get; set; }

    /// <summary>
    /// 自己获得金额
    /// </summary>
    public decimal? Own { get; set; }

    /// <summary>
    /// 自己获得金额2
    /// </summary>
    public decimal? Own2 { get; set; }

    /// <summary>
    /// 他人获得金额
    /// </summary>
    public decimal? Other { get; set; }

    /// <summary>
    /// 他人获得金额2
    /// </summary>
    public decimal? Other2 { get; set; }

    /// <summary>
    /// 扣除数量
    /// </summary>
    public int? KlNum { get; set; }

    /// <summary>
    /// 扣除数量2
    /// </summary>
    public int? KlNum2 { get; set; }

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

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