ApplicationUser.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using Microsoft.AspNetCore.Identity;
  2. using MTWorkHR.Core.Entities;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace MTWorkHR.Infrastructure.Entities
  10. {
  11. public class ApplicationUser : IdentityUser
  12. {
  13. public string FirstName { get; set; }
  14. public string LastName { get; set; }
  15. public int UserType { get; set; }
  16. public string? FavoriteName { get; set; }
  17. public string PassportNumber { get; set; }
  18. public long? QualificationId { get; set; }
  19. [ForeignKey("QualificationId")]
  20. public Qualification? Qualification { get; set; }
  21. public long? UniversityId { get; set; }
  22. [ForeignKey("UniversityId")]
  23. public University? University { get; set; }
  24. public long? JobTitleId { get; set; }
  25. [ForeignKey("JobTitleId")]
  26. public JobTitle? JobTitle { get; set; }
  27. public long? IndustryId { get; set; }
  28. [ForeignKey("IndustryId")]
  29. public Industry? Industry { get; set; }
  30. public long? CountryId { get; set; }
  31. [ForeignKey("CountryId")]
  32. public CountryLookup? Country { get; set; }
  33. public string? ManagerId { get; set; }
  34. [Column(TypeName = "decimal(18,2)")]
  35. public decimal? TaxNumber { get; set; }
  36. [Column(TypeName = "decimal(18,2)")]
  37. public decimal? IncomeTaxValue { get; set; }
  38. [ForeignKey("ManagerId")]
  39. public ApplicationUser Manager { get; set; }
  40. public string? CreateUser { get; set; }
  41. public string? UpdateUser { get; set; }
  42. public bool IsStopped { get; set; }
  43. public bool IsDeleted { get; set; }
  44. public string? DeleteUserId { get; set; }
  45. public string? LinkedInLink { get; set; }
  46. public ICollection<ApplicationRole> UserRoles { get; set; }
  47. public ICollection<UserAttachment> UserAttachments { get; set; }
  48. public UserAddress UserAddress { get; set; }
  49. }
  50. }