From 4e6e1db8ede44fe2b1799b09a848a79cb061225d Mon Sep 17 00:00:00 2001 From: Yazeed Loonat Date: Wed, 22 May 2024 13:47:50 -0700 Subject: [PATCH] feat: new application index on user_id (#4098) * feat: new application index on user_id * fix: update for ci --- .../20240520173759_application_user_id_index/migration.sql | 4 ++++ api/prisma/schema.prisma | 1 + 2 files changed, 5 insertions(+) create mode 100644 api/prisma/migrations/20240520173759_application_user_id_index/migration.sql 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") }