fix: Add username idx (#11918)
* Add index on 'users.username' * Bring back fields that are in mainpull/11926/head
parent
f2ecd9818a
commit
a02dcf485f
|
@ -0,0 +1,2 @@
|
|||
-- CreateIndex
|
||||
CREATE INDEX "users_username_idx" ON "users"("username");
|
|
@ -253,6 +253,7 @@ model User {
|
|||
@@unique([email])
|
||||
@@unique([email, username])
|
||||
@@unique([username, organizationId])
|
||||
@@index([username])
|
||||
@@index([emailVerified])
|
||||
@@index([identityProvider])
|
||||
@@index([identityProviderId])
|
||||
|
|
Loading…
Reference in New Issue