using MongoDB.Bson.Serialization.Attributes;

namespace Guestlist;

public sealed class AccessCodeDocument
{
    [BsonId]
    public string Id { get; set; } = "";

    public string CodeHash { get; set; } = "";

    public string Label { get; set; } = "";

    public bool IsActive { get; set; } = true;

    public DateTime? ExpiresAt { get; set; }

    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}
