namespace AuthorBuddy.Web.Data; public enum UserRole { Author, Administrator } public class UserEntity { public int Id { get; set; } public string Name { get; set; } = string.Empty; public string PasswordHash { get; set; } = string.Empty; public string TwoFactorSecret { get; set; } = string.Empty; public bool TwoFactorEnabled { get; set; } public UserRole Role { get; set; } = UserRole.Author; public bool IsActive { get; set; } = true; }