2026-02-07 16:03:52 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
|
|
namespace YD_Event.Core.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用户优惠券领取记录
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarTable("UserCoupon")]
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public class UserCoupon : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
|
2026-02-07 16:03:52 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <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; }
|
|
|
|
|
|
|
2026-03-14 09:30:01 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 删除标志
|
|
|
|
|
|
/// </summary>
|
2026-02-07 16:03:52 +08:00
|
|
|
|
public bool DeleteMark { get; set; }
|
2026-02-26 18:29:08 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-03-14 09:30:01 +08:00
|
|
|
|
/// 创建人Id
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long CreatedUserId { get; set; }
|
|
|
|
|
|
|
2026-03-14 09:30:01 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建时间
|
|
|
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public DateTime CreatedTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-03-14 09:30:01 +08:00
|
|
|
|
/// 更新人Id
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long? UpdatedUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime? UpdatedTime { get; set; }
|
2026-02-07 16:03:52 +08:00
|
|
|
|
}
|