Skip to content

Commit

Permalink
index on firebsae uid
Browse files Browse the repository at this point in the history
  • Loading branch information
soof-golan committed Oct 28, 2024
1 parent 43ea156 commit 5b35530
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions prisma/migrations/20241028162739_index_firebase_uid/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- AlterTable
ALTER TABLE "Registrant" ALTER COLUMN "createdAt" SET DEFAULT now();

-- AlterTable
ALTER TABLE "User" ALTER COLUMN "createdAt" SET DEFAULT now();

-- AlterTable
ALTER TABLE "WaitingRoom" ALTER COLUMN "createdAt" SET DEFAULT now();

-- CreateIndex
CREATE INDEX "User_firebaseUid_idx" ON "User"("firebaseUid");
2 changes: 2 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ model User {
firebaseUid String @unique
email String @default("")
waitingRooms WaitingRoom[]
@@index([firebaseUid])
}

enum IdType {
Expand Down

0 comments on commit 5b35530

Please sign in to comment.