using System.ComponentModel.DataAnnotations; using GamificationService.Utils; using Microsoft.AspNetCore.Identity; namespace GamificationService.Models.Database; public class ApplicationUser : IdentityUser { [Required(ErrorMessage = "Username is required")] [StringLength(50, ErrorMessage = "Username must be less than 50 characters")] public string Username { get; set; } = null!; public bool TwoFactorEnabled { get; set; } public string? TwoFactorSecret { get; set; } public bool EmailConfirmed { get; set; } public List TwoFactorProviders { get; set; } = new List(); public List RefreshTokens { get; set; } = new List(); public List UserRoles { get; set; } = new List(); }