using SqlSugar; namespace YD_Event.Core.Entities; /// /// 用户优惠券领取记录 /// [SugarTable("UserCoupon")] public class UserCoupon : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime { /// /// 用户ID /// [SugarColumn(ColumnDescription = "用户ID")] public long UserId { get; set; } /// /// 优惠券ID /// [SugarColumn(ColumnDescription = "优惠券ID")] public long CouponId { get; set; } /// /// 领取时间 /// [SugarColumn(ColumnDescription = "领取时间")] public DateTime ClaimTime { get; set; } /// /// 状态(0-未使用 1-已使用 2-已过期) /// [SugarColumn(ColumnDescription = "状态")] public int Status { get; set; } /// /// 使用时间 /// [SugarColumn(ColumnDescription = "使用时间", IsNullable = true)] public DateTime? UseTime { get; set; } /// /// 关联订单ID /// [SugarColumn(ColumnDescription = "关联订单ID", IsNullable = true)] public long? OrderId { get; set; } /// /// 删除标志 /// public bool DeleteMark { get; set; } /// /// 创建人Id /// public long CreatedUserId { get; set; } /// /// 创建时间 /// public DateTime CreatedTime { get; set; } /// /// 更新人Id /// public long? UpdatedUserId { get; set; } /// /// 更新时间 /// public DateTime? UpdatedTime { get; set; } }