using System;
using System.Collections.Generic;

namespace HoneyBox.Model.Entities;

/// <summary>
/// 用户领取的优惠券表
/// </summary>
public partial class CouponReceife
{
    /// <summary>
    /// 主键ID
    /// </summary>
    public int Id { get; set; }

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

    /// <summary>
    /// 优惠金额
    /// </summary>
    public decimal? Price { get; set; }

    /// <summary>
    /// 满减门槛金额
    /// </summary>
    public decimal? ManPrice { get; set; }

    /// <summary>
    /// 过期时间
    /// </summary>
    public DateTime? EndTime { get; set; }

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

    /// <summary>
    /// 优惠券模板ID
    /// </summary>
    public int? CouponId { get; set; }

    /// <summary>
    /// 使用状态: 0未使用/可用 1已使用 2已过期
    /// </summary>
    public byte Status { get; set; }

    /// <summary>
    /// 状态(未使用字段，保留兼容)
    /// </summary>
    public byte? State { get; set; }

    /// <summary>
    /// 优惠券子类型
    /// </summary>
    public int Ttype { get; set; }

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