ApplicationUser.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 string IdNumber { get; set; }
  16. public DateTime DateOfBirth { get; set; }
  17. public int UserType { get; set; }
  18. public string? FavoriteName { get; set; }
  19. public string PassportNumber { get; set; }
  20. public long? QualificationId { get; set; }
  21. [ForeignKey("QualificationId")]
  22. public Qualification? Qualification { get; set; }
  23. public long? UniversityId { get; set; }
  24. [ForeignKey("UniversityId")]
  25. public University? University { get; set; }
  26. public long? JobTitleId { get; set; }
  27. [ForeignKey("JobTitleId")]
  28. public JobTitle? JobTitle { get; set; }
  29. public long? IndustryId { get; set; }
  30. [ForeignKey("IndustryId")]
  31. public Industry? Industry { get; set; }
  32. public long? CountryId { get; set; }
  33. [ForeignKey("CountryId")]
  34. public CountryLookup? Country { get; set; }
  35. public string? ManagerId { get; set; }
  36. [Column(TypeName = "decimal(18,2)")]
  37. public decimal? TaxNumber { get; set; }
  38. [Column(TypeName = "decimal(18,2)")]
  39. public decimal? IncomeTaxValue { get; set; }
  40. [ForeignKey("ManagerId")]
  41. public ApplicationUser Manager { get; set; }
  42. public string? CreateUser { get; set; }
  43. public string? UpdateUser { get; set; }
  44. public bool IsStopped { get; set; }
  45. public bool IsDeleted { get; set; }
  46. public string? DeleteUserId { get; set; }
  47. public string? LinkedInLink { get; set; }
  48. public long? CompanyId { get; set; }
  49. public ICollection<ApplicationRole> UserRoles { get; set; }
  50. public ICollection<UserAttachment> UserAttachments { get; set; }
  51. public UserAddress UserAddress { get; set; }
  52. }
  53. }