2026-02-07 16:03:52 +08:00

50 lines
1.2 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.

using SqlSugar;
namespace YD_Event.Core.Entities;
/// <summary>
/// 用户优惠券领取记录
/// </summary>
[SugarTable("UserCoupon")]
public class UserCoupon : Entity<long>, ICreatedTime, ISoftDelete
{
/// <summary>
/// 用户ID
/// </summary>
[SugarColumn(ColumnDescription = "用户ID")]
public long UserId { get; set; }
/// <summary>
/// 优惠券ID
/// </summary>
[SugarColumn(ColumnDescription = "优惠券ID")]
public long CouponId { get; set; }
/// <summary>
/// 领取时间
/// </summary>
[SugarColumn(ColumnDescription = "领取时间")]
public DateTime ClaimTime { get; set; }
/// <summary>
/// 状态(0-未使用 1-已使用 2-已过期)
/// </summary>
[SugarColumn(ColumnDescription = "状态")]
public int Status { get; set; }
/// <summary>
/// 使用时间
/// </summary>
[SugarColumn(ColumnDescription = "使用时间", IsNullable = true)]
public DateTime? UseTime { get; set; }
/// <summary>
/// 关联订单ID
/// </summary>
[SugarColumn(ColumnDescription = "关联订单ID", IsNullable = true)]
public long? OrderId { get; set; }
public DateTime CreatedTime { get; set; }
public bool DeleteMark { get; set; }
}