using ROLAC.API.Entities;

namespace ROLAC.API.Entities.Notifications;

/// <summary>A short-lived code a member types to the Line bot to complete account binding.</summary>
public class LineBindingCode
{
    public int       Id         { get; set; }
    public string    Code       { get; set; } = null!;
    public int       MemberId   { get; set; }
    public Member?   Member     { get; set; }
    public DateTime  ExpiresAt  { get; set; }
    public DateTime? ConsumedAt { get; set; }            // null = unused
}
