using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Guestlist;

public sealed class UserDocument
{
    [BsonId]
    [BsonRepresentation(BsonType.ObjectId)]
    public string? Id { get; set; }

    public string DisplayName { get; set; } = "";
    
    public string Username { get; set; } = "";
    
    public string PasswordHash { get; set; } = "";

    public string Role { get; set; } = UserRoles.Admin;

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

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