AspNetUserDto.cs 891 B

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