more indices
This commit is contained in:
parent
7997085813
commit
3f59d02c91
|
@ -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");
|
|
@ -41,6 +41,7 @@ model User {
|
|||
tipPopover Boolean @default(false)
|
||||
|
||||
@@index([createdAt])
|
||||
@@index([inviteId])
|
||||
@@map(name: "users")
|
||||
}
|
||||
|
||||
|
@ -71,6 +72,9 @@ model Invite {
|
|||
limit Int?
|
||||
revoked Boolean @default(false)
|
||||
invitees User[]
|
||||
|
||||
@@index([userId])
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
model Message {
|
||||
|
|
Loading…
Reference in New Issue