Files
Guestlist/Guestlist/UserDocument.cs
T
2026-05-11 21:52:12 +02:00

23 lines
545 B
C#

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;
}