64 lines
1.6 KiB
C#
64 lines
1.6 KiB
C#
|
|
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; }
|
|||
|
|
}
|