|
@@ -55,6 +55,9 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.Property<DateTime?>("CheckOutTime")
|
|
b.Property<DateTime?>("CheckOutTime")
|
|
.HasColumnType("datetime2");
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
+ b.Property<long>("CompanyId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
b.Property<DateTime>("CreateDate")
|
|
b.Property<DateTime>("CreateDate")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnOrder(3);
|
|
.HasColumnOrder(3);
|
|
@@ -98,6 +101,8 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
b.HasKey("Id");
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
+ b.HasIndex("CompanyId");
|
|
|
|
+
|
|
b.ToTable("Attendances");
|
|
b.ToTable("Attendances");
|
|
});
|
|
});
|
|
|
|
|
|
@@ -255,8 +260,8 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
{
|
|
{
|
|
Id = 2L,
|
|
Id = 2L,
|
|
IsRequired = false,
|
|
IsRequired = false,
|
|
- NameAr = "الهوية",
|
|
|
|
- NameEn = "Identification"
|
|
|
|
|
|
+ NameAr = "جواز السفر",
|
|
|
|
+ NameEn = "Passport"
|
|
},
|
|
},
|
|
new
|
|
new
|
|
{
|
|
{
|
|
@@ -278,6 +283,27 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
IsRequired = false,
|
|
IsRequired = false,
|
|
NameAr = "شهادة الاحتراف",
|
|
NameAr = "شهادة الاحتراف",
|
|
NameEn = "Professional Certification"
|
|
NameEn = "Professional Certification"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 6L,
|
|
|
|
+ IsRequired = false,
|
|
|
|
+ NameAr = "شهادة الاحتراف",
|
|
|
|
+ NameEn = "Commercial Regestration"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 7L,
|
|
|
|
+ IsRequired = false,
|
|
|
|
+ NameAr = "البطاقة الضريبية",
|
|
|
|
+ NameEn = "Tax Declaration"
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 8L,
|
|
|
|
+ IsRequired = false,
|
|
|
|
+ NameAr = "الهوية",
|
|
|
|
+ NameEn = "Identification"
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
@@ -1059,6 +1085,9 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
|
|
|
|
+ b.Property<long>("CompanyId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
b.Property<DateTime>("CreateDate")
|
|
b.Property<DateTime>("CreateDate")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnOrder(3);
|
|
.HasColumnOrder(3);
|
|
@@ -1111,6 +1140,8 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
b.HasKey("Id");
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
+ b.HasIndex("CompanyId");
|
|
|
|
+
|
|
b.ToTable("Meetings");
|
|
b.ToTable("Meetings");
|
|
});
|
|
});
|
|
|
|
|
|
@@ -1222,6 +1253,9 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
|
|
|
|
+ b.Property<long>("CompanyId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
b.Property<DateTime>("CreateDate")
|
|
b.Property<DateTime>("CreateDate")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnOrder(3);
|
|
.HasColumnOrder(3);
|
|
@@ -1258,6 +1292,8 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
b.HasKey("Id");
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
+ b.HasIndex("CompanyId");
|
|
|
|
+
|
|
b.HasIndex("LeaveTypeId");
|
|
b.HasIndex("LeaveTypeId");
|
|
|
|
|
|
b.HasIndex("OrderTypeId");
|
|
b.HasIndex("OrderTypeId");
|
|
@@ -1357,6 +1393,232 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.HasKey("Id");
|
|
b.HasKey("Id");
|
|
|
|
|
|
b.ToTable("Permissions");
|
|
b.ToTable("Permissions");
|
|
|
|
+
|
|
|
|
+ b.HasData(
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 1L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Project",
|
|
|
|
+ Name = "Project",
|
|
|
|
+ Show = true
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 2L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Project.Create",
|
|
|
|
+ Name = "Project.Create",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 3L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Project.Update",
|
|
|
|
+ Name = "Project.Update",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 4L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Project.Delete",
|
|
|
|
+ Name = "Project.Delete",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 5L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Meeting",
|
|
|
|
+ Name = "Meeting",
|
|
|
|
+ Show = true
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 6L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Meeting.Create",
|
|
|
|
+ Name = "Meeting.Create",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 7L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Meeting.Update",
|
|
|
|
+ Name = "Meeting.Update",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 8L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Meeting.Delete",
|
|
|
|
+ Name = "Meeting.Delete",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 9L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Team",
|
|
|
|
+ Name = "Team",
|
|
|
|
+ Show = true
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 10L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Team.Create",
|
|
|
|
+ Name = "Team.Create",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 11L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Team.Update",
|
|
|
|
+ Name = "Team.Update",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 12L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Team.Delete",
|
|
|
|
+ Name = "Team.Delete",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 13L,
|
|
|
|
+ CategoryName = "Sales",
|
|
|
|
+ Desc = "UserTask",
|
|
|
|
+ Name = "UserTask",
|
|
|
|
+ Show = true
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 14L,
|
|
|
|
+ CategoryName = "Sales",
|
|
|
|
+ Desc = "UserTask.Create",
|
|
|
|
+ Name = "UserTask.Create",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 15L,
|
|
|
|
+ CategoryName = "Sales",
|
|
|
|
+ Desc = "UserTask.Update",
|
|
|
|
+ Name = "UserTask.Update",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 16L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "UserTask.Delete",
|
|
|
|
+ Name = "UserTask.Delete",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 17L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Company",
|
|
|
|
+ Name = "Company",
|
|
|
|
+ Show = true
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 18L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Company.Create",
|
|
|
|
+ Name = "Company.Create",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 19L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Company.Update",
|
|
|
|
+ Name = "Company.Update",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 20L,
|
|
|
|
+ CategoryName = "User",
|
|
|
|
+ Desc = "Company.Delete",
|
|
|
|
+ Name = "Company.Delete",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 21L,
|
|
|
|
+ CategoryName = "Adminstration",
|
|
|
|
+ Desc = "User",
|
|
|
|
+ Name = "User",
|
|
|
|
+ Show = true
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 22L,
|
|
|
|
+ CategoryName = "Adminstration",
|
|
|
|
+ Desc = "User.Create",
|
|
|
|
+ Name = "User.Create",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 23L,
|
|
|
|
+ CategoryName = "Adminstration",
|
|
|
|
+ Desc = "User.Update",
|
|
|
|
+ Name = "User.Update",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 24L,
|
|
|
|
+ CategoryName = "Adminstration",
|
|
|
|
+ Desc = "User.Delete",
|
|
|
|
+ Name = "User.Delete",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 25L,
|
|
|
|
+ CategoryName = "Adminstration",
|
|
|
|
+ Desc = "Role",
|
|
|
|
+ Name = "Role",
|
|
|
|
+ Show = true
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 26L,
|
|
|
|
+ CategoryName = "Adminstration",
|
|
|
|
+ Desc = "Role.Create",
|
|
|
|
+ Name = "Role.Create",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 27L,
|
|
|
|
+ CategoryName = "Adminstration",
|
|
|
|
+ Desc = "Role.Update",
|
|
|
|
+ Name = "Role.Update",
|
|
|
|
+ Show = false
|
|
|
|
+ },
|
|
|
|
+ new
|
|
|
|
+ {
|
|
|
|
+ Id = 28L,
|
|
|
|
+ CategoryName = "Adminstration",
|
|
|
|
+ Desc = "Role.Delete",
|
|
|
|
+ Name = "Role.Delete",
|
|
|
|
+ Show = false
|
|
|
|
+ });
|
|
});
|
|
});
|
|
|
|
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
|
|
@@ -1368,6 +1630,9 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
|
|
|
|
+ b.Property<long>("CompanyId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
b.Property<DateTime>("CreateDate")
|
|
b.Property<DateTime>("CreateDate")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnOrder(3);
|
|
.HasColumnOrder(3);
|
|
@@ -1407,6 +1672,8 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
b.HasKey("Id");
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
+ b.HasIndex("CompanyId");
|
|
|
|
+
|
|
b.ToTable("Projects");
|
|
b.ToTable("Projects");
|
|
});
|
|
});
|
|
|
|
|
|
@@ -1579,6 +1846,9 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
|
|
|
|
+ b.Property<long>("CompanyId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
b.Property<DateTime>("CreateDate")
|
|
b.Property<DateTime>("CreateDate")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnOrder(3);
|
|
.HasColumnOrder(3);
|
|
@@ -1618,6 +1888,8 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
b.HasKey("Id");
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
+ b.HasIndex("CompanyId");
|
|
|
|
+
|
|
b.ToTable("Teams");
|
|
b.ToTable("Teams");
|
|
});
|
|
});
|
|
|
|
|
|
@@ -1779,6 +2051,9 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.Property<int?>("CityId")
|
|
b.Property<int?>("CityId")
|
|
.HasColumnType("int");
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
+ b.Property<long>("CompanyId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
b.Property<int?>("CountryId")
|
|
b.Property<int?>("CountryId")
|
|
.HasColumnType("int");
|
|
.HasColumnType("int");
|
|
|
|
|
|
@@ -1833,6 +2108,8 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
b.HasKey("Id");
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
+ b.HasIndex("CompanyId");
|
|
|
|
+
|
|
b.HasIndex("LeaveTypeId");
|
|
b.HasIndex("LeaveTypeId");
|
|
|
|
|
|
b.HasIndex("OrderTypeId");
|
|
b.HasIndex("OrderTypeId");
|
|
@@ -1910,6 +2187,9 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.Property<long>("AssignedUserId")
|
|
b.Property<long>("AssignedUserId")
|
|
.HasColumnType("bigint");
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
+ b.Property<long>("CompanyId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
b.Property<DateTime>("CreateDate")
|
|
b.Property<DateTime>("CreateDate")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnOrder(3);
|
|
.HasColumnOrder(3);
|
|
@@ -1959,6 +2239,8 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
b.HasKey("Id");
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
+ b.HasIndex("CompanyId");
|
|
|
|
+
|
|
b.HasIndex("ProjectId");
|
|
b.HasIndex("ProjectId");
|
|
|
|
|
|
b.HasIndex("StatusId");
|
|
b.HasIndex("StatusId");
|
|
@@ -2261,6 +2543,9 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.Property<int>("AccessFailedCount")
|
|
b.Property<int>("AccessFailedCount")
|
|
.HasColumnType("int");
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
+ b.Property<long?>("CompanyId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
b.Property<string>("ConcurrencyStamp")
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("nvarchar(max)");
|
|
.HasColumnType("nvarchar(max)");
|