namespace YD_Event.Core.Entities; /// /// 优惠券兑换码记录表 /// [SugarTable("CouponRedemptionCode")] public class CouponRedemptionCode : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime { /// /// 优惠券ID /// [SugarColumn(ColumnDescription = "优惠券ID")] public long CouponId { get; set; } /// /// 兑换码 /// [SugarColumn(ColumnDescription = "兑换码", Length = 32)] public string Code { get; set; } /// /// 使用状态(0-未使用 1-已使用) /// [SugarColumn(ColumnDescription = "使用状态", DefaultValue = "0")] public int Status { get; set; } /// /// 使用时间 /// [SugarColumn(ColumnDescription = "使用时间", IsNullable = true)] public DateTime? UsedTime { get; set; } /// /// 关联的用户优惠券ID /// [SugarColumn(ColumnDescription = "关联的用户优惠券ID", IsNullable = true)] public long? UserCouponId { 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; } }