AuthorBuddy/Data/UserEntity.cs

19 lines
479 B
C#
Raw Normal View History

2026-05-17 07:27:18 +02:00
namespace AuthorBuddy.Web.Data;
2026-05-25 06:38:16 +02:00
public enum UserRole
{
Author,
Administrator
}
2026-05-17 07:27:18 +02:00
public class UserEntity
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
2026-05-21 11:04:42 +02:00
public string PasswordHash { get; set; } = string.Empty;
public string TwoFactorSecret { get; set; } = string.Empty;
public bool TwoFactorEnabled { get; set; }
2026-05-25 06:38:16 +02:00
public UserRole Role { get; set; } = UserRole.Author;
public bool IsActive { get; set; } = true;
2026-05-17 07:27:18 +02:00
}