ApplicationUser.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 string? Position { get; set; }
  49. public long? CompanyId { get; set; }
  50. public ICollection<ApplicationRole> UserRoles { get; set; }
  51. public ICollection<UserAttachment> UserAttachments { get; set; }
  52. public UserAddress UserAddress { get; set; }
  53. }
  54. }