|
@@ -316,6 +316,34 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.ToTable("Companies");
|
|
b.ToTable("Companies");
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ modelBuilder.Entity("MTWorkHR.Core.Entities.CountryLookup", b =>
|
|
|
|
+ {
|
|
|
|
+ b.Property<long>("Id")
|
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
|
+ .HasColumnType("bigint")
|
|
|
|
+ .HasColumnOrder(0);
|
|
|
|
+
|
|
|
|
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
+
|
|
|
|
+ b.Property<string>("Code")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
|
+
|
|
|
|
+ b.Property<string>("NameAr")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasMaxLength(250)
|
|
|
|
+ .HasColumnType("nvarchar(250)");
|
|
|
|
+
|
|
|
|
+ b.Property<string>("NameEn")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasMaxLength(250)
|
|
|
|
+ .HasColumnType("nvarchar(250)");
|
|
|
|
+
|
|
|
|
+ b.HasKey("Id");
|
|
|
|
+
|
|
|
|
+ b.ToTable("CountryLookups");
|
|
|
|
+ });
|
|
|
|
+
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.FileLog", b =>
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.FileLog", b =>
|
|
{
|
|
{
|
|
b.Property<long>("Id")
|
|
b.Property<long>("Id")
|
|
@@ -374,6 +402,502 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.ToTable("FileLogs");
|
|
b.ToTable("FileLogs");
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ modelBuilder.Entity("MTWorkHR.Core.Entities.Industry", b =>
|
|
|
|
+ {
|
|
|
|
+ b.Property<long>("Id")
|
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
|
+ .HasColumnType("bigint")
|
|
|
|
+ .HasColumnOrder(0);
|
|
|
|
+
|
|
|
|
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
+
|
|
|
|
+ b.Property<string>("NameAr")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasMaxLength(250)
|
|
|
|
+ .HasColumnType("nvarchar(250)");
|
|
|
|
+
|
|
|
|
+ b.Property<string>("NameEn")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasMaxLength(250)
|
|
|
|
+ .HasColumnType("nvarchar(250)");
|
|
|
|
+
|
|
|
|
+ b.HasKey("Id");
|
|
|
|
+
|
|
|
|
+ b.ToTable("Industries");
|
|
|
|
+
|
|
|
|
+ b.HasData(
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 1L,
|
|
|
|
+ NameAr = "صناعة الطيران والفضاء",
|
|
|
|
+ NameEn = "Aerospace industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 2L,
|
|
|
|
+ NameAr = "صناعة الزراعة",
|
|
|
|
+ NameEn = "Agricultural industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 3L,
|
|
|
|
+ NameAr = "صناعة السيارات",
|
|
|
|
+ NameEn = "Automotive industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 4L,
|
|
|
|
+ NameAr = "صناعة المعادن الأساسية",
|
|
|
|
+ NameEn = "Basic metal"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 5L,
|
|
|
|
+ NameAr = "صناعة الكيماويات",
|
|
|
|
+ NameEn = "Chemical industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 6L,
|
|
|
|
+ NameAr = "صناعة الحواسيب",
|
|
|
|
+ NameEn = "Computer industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 7L,
|
|
|
|
+ NameAr = "صناعة البناء",
|
|
|
|
+ NameEn = "Construction industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 8L,
|
|
|
|
+ NameAr = "صناعة الإبداعية",
|
|
|
|
+ NameEn = "Creative industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 9L,
|
|
|
|
+ NameAr = "صناعة الثقافة",
|
|
|
|
+ NameEn = "Cultural industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 10L,
|
|
|
|
+ NameAr = "صناعة الدفاع",
|
|
|
|
+ NameEn = "Defense industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 11L,
|
|
|
|
+ NameAr = "صناعة التعليم",
|
|
|
|
+ NameEn = "Education industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 12L,
|
|
|
|
+ NameAr = "صناعة الطاقة الكهربائية",
|
|
|
|
+ NameEn = "Electric power"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 13L,
|
|
|
|
+ NameAr = "صناعة الإلكترونيات",
|
|
|
|
+ NameEn = "Electronics industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 14L,
|
|
|
|
+ NameAr = "صناعة الطاقة",
|
|
|
|
+ NameEn = "Energy industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 15L,
|
|
|
|
+ NameAr = "صناعة الهندسة",
|
|
|
|
+ NameEn = "Engineering industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 16L,
|
|
|
|
+ NameAr = "صناعة الترفيه",
|
|
|
|
+ NameEn = "Entertainment industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 17L,
|
|
|
|
+ NameAr = "صناعة الزراعة",
|
|
|
|
+ NameEn = "Farming industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 18L,
|
|
|
|
+ NameAr = "صناعة الموضة",
|
|
|
|
+ NameEn = "Fashion industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 19L,
|
|
|
|
+ NameAr = "صناعة السينما",
|
|
|
|
+ NameEn = "Film industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 20L,
|
|
|
|
+ NameAr = "صناعة الخدمات المالية",
|
|
|
|
+ NameEn = "Financial services"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 21L,
|
|
|
|
+ NameAr = "صناعة الصيد",
|
|
|
|
+ NameEn = "Fishing industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 22L,
|
|
|
|
+ NameAr = "صناعة الأغذية",
|
|
|
|
+ NameEn = "Food industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 23L,
|
|
|
|
+ NameAr = "صناعة الغابات",
|
|
|
|
+ NameEn = "Forestry industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 24L,
|
|
|
|
+ NameAr = "صناعة القمار",
|
|
|
|
+ NameEn = "Gambling industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 25L,
|
|
|
|
+ NameAr = "صناعة الغاز",
|
|
|
|
+ NameEn = "Gas industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 26L,
|
|
|
|
+ NameAr = "صناعة البيئة",
|
|
|
|
+ NameEn = "Green industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 27L,
|
|
|
|
+ NameAr = "صناعة الخدمات الصحية",
|
|
|
|
+ NameEn = "Health services industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 28L,
|
|
|
|
+ NameAr = "صناعة الضيافة",
|
|
|
|
+ NameEn = "Hospitality industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 29L,
|
|
|
|
+ NameAr = "صناعة الفنادق",
|
|
|
|
+ NameEn = "Hotels industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 30L,
|
|
|
|
+ NameAr = "صناعة الروبوتات الصناعية",
|
|
|
|
+ NameEn = "Industrial robot"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 31L,
|
|
|
|
+ NameAr = "صناعة المعلومات",
|
|
|
|
+ NameEn = "Information industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 32L,
|
|
|
|
+ NameAr = "صناعة تكنولوجيا المعلومات",
|
|
|
|
+ NameEn = "Information technology"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 33L,
|
|
|
|
+ NameAr = "صناعة البنية التحتية",
|
|
|
|
+ NameEn = "Infrastructure industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 34L,
|
|
|
|
+ NameAr = "صناعة التأمين",
|
|
|
|
+ NameEn = "Insurance industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 35L,
|
|
|
|
+ NameAr = "صناعة الترفيه",
|
|
|
|
+ NameEn = "Leisure industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 36L,
|
|
|
|
+ NameAr = "صناعة التكنولوجيا المنخفضة",
|
|
|
|
+ NameEn = "Low technology"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 37L,
|
|
|
|
+ NameAr = "صناعة التصنيع",
|
|
|
|
+ NameEn = "Manufacturing industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 38L,
|
|
|
|
+ NameAr = "صناعة اللحوم",
|
|
|
|
+ NameEn = "Meat industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 39L,
|
|
|
|
+ NameAr = "صناعة الإعلام",
|
|
|
|
+ NameEn = "Media industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 40L,
|
|
|
|
+ NameAr = "صناعة التجارة",
|
|
|
|
+ NameEn = "Merchandising industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 41L,
|
|
|
|
+ NameAr = "صناعة التعدين",
|
|
|
|
+ NameEn = "Mining industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 42L,
|
|
|
|
+ NameAr = "صناعة الموسيقى",
|
|
|
|
+ NameEn = "Music industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 43L,
|
|
|
|
+ NameAr = "صناعة وسائل الإعلام",
|
|
|
|
+ NameEn = "News media"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 44L,
|
|
|
|
+ NameAr = "صناعة النفط والغاز",
|
|
|
|
+ NameEn = "Oil and gas industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 45L,
|
|
|
|
+ NameAr = "صناعة الأدوية",
|
|
|
|
+ NameEn = "Pharmaceutical industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 46L,
|
|
|
|
+ NameAr = "صناعة المهنية",
|
|
|
|
+ NameEn = "Professional industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 47L,
|
|
|
|
+ NameAr = "صناعة النشر",
|
|
|
|
+ NameEn = "Publishing industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 48L,
|
|
|
|
+ NameAr = "صناعة الورق واللب",
|
|
|
|
+ NameEn = "Pulp and paper industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 49L,
|
|
|
|
+ NameAr = "صناعة السكك الحديدية",
|
|
|
|
+ NameEn = "Railway industry"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 50L,
|
|
|
|
+ NameAr = "الانشاءات",
|
|
|
|
+ NameEn = "Real estate"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ modelBuilder.Entity("MTWorkHR.Core.Entities.JobTitle", b =>
|
|
|
|
+ {
|
|
|
|
+ b.Property<long>("Id")
|
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
|
+ .HasColumnType("bigint")
|
|
|
|
+ .HasColumnOrder(0);
|
|
|
|
+
|
|
|
|
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
+
|
|
|
|
+ b.Property<string>("NameAr")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasMaxLength(250)
|
|
|
|
+ .HasColumnType("nvarchar(250)");
|
|
|
|
+
|
|
|
|
+ b.Property<string>("NameEn")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasMaxLength(250)
|
|
|
|
+ .HasColumnType("nvarchar(250)");
|
|
|
|
+
|
|
|
|
+ b.HasKey("Id");
|
|
|
|
+
|
|
|
|
+ b.ToTable("JobTitles");
|
|
|
|
+
|
|
|
|
+ b.HasData(
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 1L,
|
|
|
|
+ NameAr = "مساعد ادارى",
|
|
|
|
+ NameEn = "Administrative Assistant"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 2L,
|
|
|
|
+ NameAr = "موظف استقبال",
|
|
|
|
+ NameEn = "Receptionist"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 3L,
|
|
|
|
+ NameAr = "مدير مكتب",
|
|
|
|
+ NameEn = "Office Manager"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 4L,
|
|
|
|
+ NameAr = "مدقق محتوى",
|
|
|
|
+ NameEn = "Auditing Clerk"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 5L,
|
|
|
|
+ NameAr = "محاسب",
|
|
|
|
+ NameEn = "Bookkeeper"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 6L,
|
|
|
|
+ NameAr = "مدير تنفيذى",
|
|
|
|
+ NameEn = "Account Executive"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 7L,
|
|
|
|
+ NameAr = "مدير فرع",
|
|
|
|
+ NameEn = "Branch Manager"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 8L,
|
|
|
|
+ NameAr = "مدير",
|
|
|
|
+ NameEn = "Business Manager"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 9L,
|
|
|
|
+ NameAr = "مسؤول الجودة",
|
|
|
|
+ NameEn = "Quality Control Coordinator"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 10L,
|
|
|
|
+ NameAr = "مدير ادارى",
|
|
|
|
+ NameEn = "Administrative Manager"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 11L,
|
|
|
|
+ NameAr = "الرئيس التنفيذي",
|
|
|
|
+ NameEn = "Chief Executive Officer"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 12L,
|
|
|
|
+ NameAr = "محلل",
|
|
|
|
+ NameEn = "Business Analyst"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 13L,
|
|
|
|
+ NameAr = "مدير المخاطر",
|
|
|
|
+ NameEn = "Risk Manager"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 14L,
|
|
|
|
+ NameAr = "موارد بشرية",
|
|
|
|
+ NameEn = "Human Resources"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 15L,
|
|
|
|
+ NameAr = "مساعد مكتب",
|
|
|
|
+ NameEn = "Office Assistant"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 16L,
|
|
|
|
+ NameAr = "السكرتارية",
|
|
|
|
+ NameEn = "Secretary"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 17L,
|
|
|
|
+ NameAr = "موظف مكتب",
|
|
|
|
+ NameEn = "Office Clerk"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 18L,
|
|
|
|
+ NameAr = "جامع الحسابات",
|
|
|
|
+ NameEn = "Account Collector"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 19L,
|
|
|
|
+ NameAr = "أخصائي إداري",
|
|
|
|
+ NameEn = "Administrative Specialist"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 20L,
|
|
|
|
+ NameAr = "مساعد تنفيذي",
|
|
|
|
+ NameEn = "Executive Assistant"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 21L,
|
|
|
|
+ NameAr = "مسؤل البرنامج",
|
|
|
|
+ NameEn = "Program Administrator"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 22L,
|
|
|
|
+ NameAr = "مدير البرنامج",
|
|
|
|
+ NameEn = "Program Manager"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 23L,
|
|
|
|
+ NameAr = "محلل إداري",
|
|
|
|
+ NameEn = "Administrative Analyst"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 24L,
|
|
|
|
+ NameAr = "مدخل بيانات",
|
|
|
|
+ NameEn = "Data Entry"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.LeaveType", b =>
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.LeaveType", b =>
|
|
{
|
|
{
|
|
b.Property<long>("Id")
|
|
b.Property<long>("Id")
|
|
@@ -796,6 +1320,30 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.ToTable("Projects");
|
|
b.ToTable("Projects");
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ modelBuilder.Entity("MTWorkHR.Core.Entities.Qualification", b =>
|
|
|
|
+ {
|
|
|
|
+ b.Property<long>("Id")
|
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
|
+ .HasColumnType("bigint")
|
|
|
|
+ .HasColumnOrder(0);
|
|
|
|
+
|
|
|
|
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
+
|
|
|
|
+ b.Property<string>("NameAr")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasMaxLength(250)
|
|
|
|
+ .HasColumnType("nvarchar(250)");
|
|
|
|
+
|
|
|
|
+ b.Property<string>("NameEn")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasMaxLength(250)
|
|
|
|
+ .HasColumnType("nvarchar(250)");
|
|
|
|
+
|
|
|
|
+ b.HasKey("Id");
|
|
|
|
+
|
|
|
|
+ b.ToTable("Qualifications");
|
|
|
|
+ });
|
|
|
|
+
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.RoleLog", b =>
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.RoleLog", b =>
|
|
{
|
|
{
|
|
b.Property<long>("Id")
|
|
b.Property<long>("Id")
|
|
@@ -1065,6 +1613,30 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.ToTable("TeamUser");
|
|
b.ToTable("TeamUser");
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ modelBuilder.Entity("MTWorkHR.Core.Entities.University", b =>
|
|
|
|
+ {
|
|
|
|
+ b.Property<long>("Id")
|
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
|
+ .HasColumnType("bigint")
|
|
|
|
+ .HasColumnOrder(0);
|
|
|
|
+
|
|
|
|
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
+
|
|
|
|
+ b.Property<string>("NameAr")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasMaxLength(250)
|
|
|
|
+ .HasColumnType("nvarchar(250)");
|
|
|
|
+
|
|
|
|
+ b.Property<string>("NameEn")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasMaxLength(250)
|
|
|
|
+ .HasColumnType("nvarchar(250)");
|
|
|
|
+
|
|
|
|
+ b.HasKey("Id");
|
|
|
|
+
|
|
|
|
+ b.ToTable("Universities");
|
|
|
|
+ });
|
|
|
|
+
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.User.OrderRequest", b =>
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.User.OrderRequest", b =>
|
|
{
|
|
{
|
|
b.Property<long>("Id")
|
|
b.Property<long>("Id")
|
|
@@ -1564,6 +2136,9 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
.IsConcurrencyToken()
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("nvarchar(max)");
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
+ b.Property<long?>("CountryId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
b.Property<string>("CreateUser")
|
|
b.Property<string>("CreateUser")
|
|
.HasColumnType("nvarchar(max)");
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
@@ -1587,14 +2162,17 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.Property<decimal?>("IncomeTaxValue")
|
|
b.Property<decimal?>("IncomeTaxValue")
|
|
.HasColumnType("decimal(18,2)");
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
|
|
|
|
+ b.Property<long?>("IndustryId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
b.Property<bool>("IsDeleted")
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
.HasColumnType("bit");
|
|
|
|
|
|
b.Property<bool>("IsStopped")
|
|
b.Property<bool>("IsStopped")
|
|
.HasColumnType("bit");
|
|
.HasColumnType("bit");
|
|
|
|
|
|
- b.Property<string>("JobTitle")
|
|
|
|
- .HasColumnType("nvarchar(max)");
|
|
|
|
|
|
+ b.Property<long?>("JobTitleId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
|
|
b.Property<string>("LastName")
|
|
b.Property<string>("LastName")
|
|
.IsRequired()
|
|
.IsRequired()
|
|
@@ -1633,8 +2211,8 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
.HasColumnType("bit");
|
|
.HasColumnType("bit");
|
|
|
|
|
|
- b.Property<int?>("QualificationId")
|
|
|
|
- .HasColumnType("int");
|
|
|
|
|
|
+ b.Property<long?>("QualificationId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
b.Property<string>("SecurityStamp")
|
|
.HasColumnType("nvarchar(max)");
|
|
.HasColumnType("nvarchar(max)");
|
|
@@ -1645,8 +2223,8 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
.HasColumnType("bit");
|
|
.HasColumnType("bit");
|
|
|
|
|
|
- b.Property<string>("University")
|
|
|
|
- .HasColumnType("nvarchar(max)");
|
|
|
|
|
|
+ b.Property<long?>("UniversityId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
|
|
b.Property<string>("UpdateUser")
|
|
b.Property<string>("UpdateUser")
|
|
.HasColumnType("nvarchar(max)");
|
|
.HasColumnType("nvarchar(max)");
|
|
@@ -1660,6 +2238,12 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
b.HasKey("Id");
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
+ b.HasIndex("CountryId");
|
|
|
|
+
|
|
|
|
+ b.HasIndex("IndustryId");
|
|
|
|
+
|
|
|
|
+ b.HasIndex("JobTitleId");
|
|
|
|
+
|
|
b.HasIndex("ManagerId");
|
|
b.HasIndex("ManagerId");
|
|
|
|
|
|
b.HasIndex("NormalizedEmail")
|
|
b.HasIndex("NormalizedEmail")
|
|
@@ -1670,6 +2254,10 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
.HasDatabaseName("UserNameIndex")
|
|
.HasDatabaseName("UserNameIndex")
|
|
.HasFilter("[NormalizedUserName] IS NOT NULL");
|
|
.HasFilter("[NormalizedUserName] IS NOT NULL");
|
|
|
|
|
|
|
|
+ b.HasIndex("QualificationId");
|
|
|
|
+
|
|
|
|
+ b.HasIndex("UniversityId");
|
|
|
|
+
|
|
b.ToTable("AspNetUsers", (string)null);
|
|
b.ToTable("AspNetUsers", (string)null);
|
|
|
|
|
|
b.HasData(
|
|
b.HasData(
|
|
@@ -1692,7 +2280,7 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
|
|
PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
|
|
PhoneNumber = "1234567890",
|
|
PhoneNumber = "1234567890",
|
|
PhoneNumberConfirmed = true,
|
|
PhoneNumberConfirmed = true,
|
|
- QualificationId = 1,
|
|
|
|
|
|
+ QualificationId = 1L,
|
|
SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
|
|
SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
|
|
TaxNumber = 111m,
|
|
TaxNumber = 111m,
|
|
TwoFactorEnabled = false,
|
|
TwoFactorEnabled = false,
|
|
@@ -1718,7 +2306,7 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
|
|
PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
|
|
PhoneNumber = "1234567890",
|
|
PhoneNumber = "1234567890",
|
|
PhoneNumberConfirmed = true,
|
|
PhoneNumberConfirmed = true,
|
|
- QualificationId = 1,
|
|
|
|
|
|
+ QualificationId = 1L,
|
|
SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
|
|
SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
|
|
TaxNumber = 222m,
|
|
TaxNumber = 222m,
|
|
TwoFactorEnabled = false,
|
|
TwoFactorEnabled = false,
|
|
@@ -2107,11 +2695,41 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
|
|
modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
|
|
{
|
|
{
|
|
|
|
+ b.HasOne("MTWorkHR.Core.Entities.CountryLookup", "Country")
|
|
|
|
+ .WithMany()
|
|
|
|
+ .HasForeignKey("CountryId");
|
|
|
|
+
|
|
|
|
+ b.HasOne("MTWorkHR.Core.Entities.Industry", "Industry")
|
|
|
|
+ .WithMany()
|
|
|
|
+ .HasForeignKey("IndustryId");
|
|
|
|
+
|
|
|
|
+ b.HasOne("MTWorkHR.Core.Entities.JobTitle", "JobTitle")
|
|
|
|
+ .WithMany()
|
|
|
|
+ .HasForeignKey("JobTitleId");
|
|
|
|
+
|
|
b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "Manager")
|
|
b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "Manager")
|
|
.WithMany()
|
|
.WithMany()
|
|
.HasForeignKey("ManagerId");
|
|
.HasForeignKey("ManagerId");
|
|
|
|
|
|
|
|
+ b.HasOne("MTWorkHR.Core.Entities.Qualification", "Qualification")
|
|
|
|
+ .WithMany()
|
|
|
|
+ .HasForeignKey("QualificationId");
|
|
|
|
+
|
|
|
|
+ b.HasOne("MTWorkHR.Core.Entities.University", "University")
|
|
|
|
+ .WithMany()
|
|
|
|
+ .HasForeignKey("UniversityId");
|
|
|
|
+
|
|
|
|
+ b.Navigation("Country");
|
|
|
|
+
|
|
|
|
+ b.Navigation("Industry");
|
|
|
|
+
|
|
|
|
+ b.Navigation("JobTitle");
|
|
|
|
+
|
|
b.Navigation("Manager");
|
|
b.Navigation("Manager");
|
|
|
|
+
|
|
|
|
+ b.Navigation("Qualification");
|
|
|
|
+
|
|
|
|
+ b.Navigation("University");
|
|
});
|
|
});
|
|
|
|
|
|
modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
|
|
modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
|