AuthorBuddy/Data/UserEntity.cs
2026-05-25 06:38:16 +02:00

18 lines
479 B
C#

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