AspNetUserDto.cs 969 B

123456789101112131415161718192021222324
  1. namespace Application.Abstractions.Identity.Models
  2. {
  3. public sealed class AspNetUserDto
  4. {
  5. public required string ID { get; init; }
  6. public string? UserName { get; init; }
  7. public string? NormalizedUserName { get; init; }
  8. public string? Email { get; init; }
  9. public string? NormalizedEmail { get; init; }
  10. public bool EmailConfirmed { get; init; } = false;
  11. public string? PhoneNumber { get; init; }
  12. public bool PhoneNumberConfirmed { get; init; } = false;
  13. public bool TwoFactorEnabled { get; init; } = false;
  14. public DateTimeOffset? LockoutEnd { get; init; }
  15. public bool LockoutEnabled { get; init; } = false;
  16. public int AccessFailedCount { get; init; }
  17. // Custom columns (ApplicationUser)
  18. public string? FullName { get; init; }
  19. public bool IsDeleted { get; init; } = false;
  20. public IEnumerable<string> Roles { get; set; } = [];
  21. }
  22. }