YD_Event.Admin/YD_Event.Core/Entities/CouponRedemptionCode.cs
2026-04-12 13:14:20 +08:00

64 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace YD_Event.Core.Entities;
/// <summary>
/// 优惠券兑换码记录表
/// </summary>
[SugarTable("CouponRedemptionCode")]
public class CouponRedemptionCode : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
{
/// <summary>
/// 优惠券ID
/// </summary>
[SugarColumn(ColumnDescription = "优惠券ID")]
public long CouponId { get; set; }
/// <summary>
/// 兑换码
/// </summary>
[SugarColumn(ColumnDescription = "兑换码", Length = 32)]
public string Code { get; set; }
/// <summary>
/// 使用状态(0-未使用 1-已使用)
/// </summary>
[SugarColumn(ColumnDescription = "使用状态", DefaultValue = "0")]
public int Status { get; set; }
/// <summary>
/// 使用时间
/// </summary>
[SugarColumn(ColumnDescription = "使用时间", IsNullable = true)]
public DateTime? UsedTime { get; set; }
/// <summary>
/// 关联的用户优惠券ID
/// </summary>
[SugarColumn(ColumnDescription = "关联的用户优惠券ID", IsNullable = true)]
public long? UserCouponId { get; set; }
/// <summary>
/// 删除标志
/// </summary>
public bool DeleteMark { get; set; }
/// <summary>
/// 创建人Id
/// </summary>
public long CreatedUserId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
/// <summary>
/// 更新人Id
/// </summary>
public long? UpdatedUserId { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdatedTime { get; set; }
}