ApplicationUser.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 DateTime? PassportExpiryDate { get; set; }
  21. public long? QualificationId { get; set; }
  22. [ForeignKey("QualificationId")]
  23. public Qualification? Qualification { get; set; }
  24. public long? UniversityId { get; set; }
  25. [ForeignKey("UniversityId")]
  26. public University? University { get; set; }
  27. public long? JobTitleId { get; set; }
  28. [ForeignKey("JobTitleId")]
  29. public JobTitle? JobTitle { get; set; }
  30. public long? IndustryId { get; set; }
  31. [ForeignKey("IndustryId")]
  32. public Industry? Industry { get; set; }
  33. public long? NationalityId { get; set; }
  34. [ForeignKey("NationalityId")]
  35. public Nationality? Nationality { get; set; }
  36. public long? CountryId { get; set; }
  37. [ForeignKey("CountryId")]
  38. public CountryLookup? Country { get; set; }
  39. public string? ManagerId { get; set; }
  40. [Column(TypeName = "decimal(18,2)")]
  41. public decimal? TaxNumber { get; set; }
  42. [Column(TypeName = "decimal(18,2)")]
  43. public decimal? IncomeTaxValue { get; set; }
  44. [ForeignKey("ManagerId")]
  45. public ApplicationUser Manager { get; set; }
  46. public string? CreateUser { get; set; }
  47. public DateTime? CreateDate { get; set; }
  48. public DateTime? UpdateDate{ get; set; }
  49. public string? UpdateUser { get; set; }
  50. public bool IsStopped { get; set; }
  51. public bool IsDeleted { get; set; }
  52. public string? DeleteUserId { get; set; }
  53. public string? LinkedInLink { get; set; }
  54. public string? Position { get; set; }
  55. public long? CompanyId { get; set; }
  56. public string? CompanyRepresentativeTitle { get; set; }
  57. public ICollection<ApplicationRole> UserRoles { get; set; }
  58. public ICollection<UserAttachment> UserAttachments { get; set; }
  59. public UserAddress UserAddress { get; set; }
  60. }
  61. }