more indices

This commit is contained in:
keyan 2022-03-10 13:26:35 -06:00
parent 7997085813
commit 3f59d02c91
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,8 @@
-- CreateIndex
CREATE INDEX "Invite.userId_index" ON "Invite"("userId");
-- CreateIndex
CREATE INDEX "Invite.created_at_index" ON "Invite"("created_at");
-- CreateIndex
CREATE INDEX "users.inviteId_index" ON "users"("inviteId");

View File

@ -41,6 +41,7 @@ model User {
tipPopover Boolean @default(false) tipPopover Boolean @default(false)
@@index([createdAt]) @@index([createdAt])
@@index([inviteId])
@@map(name: "users") @@map(name: "users")
} }
@ -71,6 +72,9 @@ model Invite {
limit Int? limit Int?
revoked Boolean @default(false) revoked Boolean @default(false)
invitees User[] invitees User[]
@@index([userId])
@@index([createdAt])
} }
model Message { model Message {