diff --git a/backend/LexData/Migrations/20240606084230_AddOrgProjectsTable.Designer.cs b/backend/LexData/Migrations/20240606084230_AddOrgProjectsTable.Designer.cs index 762cd37316..42c80a2df1 100644 --- a/backend/LexData/Migrations/20240606084230_AddOrgProjectsTable.Designer.cs +++ b/backend/LexData/Migrations/20240606084230_AddOrgProjectsTable.Designer.cs @@ -634,6 +634,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasKey("Id"); + b.HasIndex("OrgId"); + b.HasIndex("ProjectId"); b.HasIndex("OrgId", "ProjectId") diff --git a/backend/LexData/Migrations/20240606084230_AddOrgProjectsTable.cs b/backend/LexData/Migrations/20240606084230_AddOrgProjectsTable.cs index 25b5bf622c..41023967b2 100644 --- a/backend/LexData/Migrations/20240606084230_AddOrgProjectsTable.cs +++ b/backend/LexData/Migrations/20240606084230_AddOrgProjectsTable.cs @@ -44,6 +44,11 @@ protected override void Up(MigrationBuilder migrationBuilder) columns: new[] { "OrgId", "ProjectId" }, unique: true); + migrationBuilder.CreateIndex( + name: "IX_OrgProjects_OrgId", + table: "OrgProjects", + column: "OrgId"); + migrationBuilder.CreateIndex( name: "IX_OrgProjects_ProjectId", table: "OrgProjects", diff --git a/backend/LexData/Migrations/LexBoxDbContextModelSnapshot.cs b/backend/LexData/Migrations/LexBoxDbContextModelSnapshot.cs index 3fdd7df2a7..5542317887 100644 --- a/backend/LexData/Migrations/LexBoxDbContextModelSnapshot.cs +++ b/backend/LexData/Migrations/LexBoxDbContextModelSnapshot.cs @@ -629,6 +629,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasKey("Id"); + b.HasIndex("OrgId"); + b.HasIndex("ProjectId"); b.HasIndex("OrgId", "ProjectId")