using System;
using System.Collections.Generic;

namespace HoneyBox.Model.Entities;

/// <summary>
/// 优惠券模板表
/// </summary>
public partial class Coupon
{
    /// <summary>
    /// 主键ID
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 优惠券类型
    /// </summary>
    public byte? Type { get; set; }

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

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

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

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

    /// <summary>
    /// 有效天数
    /// </summary>
    public int? EffectiveDay { get; set; }

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

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

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