ApplicationUser.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using Microsoft.AspNetCore.Identity;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace MTWorkHR.Identity.Entities
  9. {
  10. public class ApplicationUser : IdentityUser
  11. {
  12. public string FirstName { get; set; }
  13. public string LastName { get; set; }
  14. public int UserType { get; set; }
  15. public string? FavoriteName { get; set; }
  16. public string PassportNumber { get; set; }
  17. public int? QualificationId { get; set; }
  18. public string? University { get; set; }
  19. public string? JobTitle { get; set; }
  20. public string? ManagerId { get; set; }
  21. [Column(TypeName = "decimal(18,2)")]
  22. public decimal? TaxNumber { get; set; }
  23. [Column(TypeName = "decimal(18,2)")]
  24. public decimal? IncomeTaxValue { get; set; }
  25. [ForeignKey("ManagerId")]
  26. public ApplicationUser Manager { get; set; }
  27. public string? CreateUser { get; set; }
  28. public string? UpdateUser { get; set; }
  29. public bool IsStopped { get; set; }
  30. public bool IsDeleted { get; set; }
  31. public string? DeleteUserId { get; set; }
  32. public ICollection<ApplicationRole> UserRoles { get; set; }
  33. public ICollection<UserAttachment> UserAttachments { get; set; }
  34. public UserAddress UserAddress { get; set; }
  35. }
  36. }