diff --git a/api/prisma/migrations/20240520173759_application_user_id_index/migration.sql b/api/prisma/migrations/20240520173759_application_user_id_index/migration.sql new file mode 100644 index 0000000000..cd9d056d67 --- /dev/null +++ b/api/prisma/migrations/20240520173759_application_user_id_index/migration.sql @@ -0,0 +1,4 @@ +-- CreateIndex + +CREATE INDEX "applications_user_id_idx" ON "applications"("user_id"); + diff --git a/api/prisma/schema.prisma b/api/prisma/schema.prisma index 3b71e30f72..e6b9efb69b 100644 --- a/api/prisma/schema.prisma +++ b/api/prisma/schema.prisma @@ -225,6 +225,7 @@ model Applications { @@unique([listingId, confirmationCode]) @@index([listingId]) + @@index([userId]) @@map("applications") }