fix: make github user id unique
This commit is contained in:
parent
d032ec1596
commit
9e73fea852
@ -0,0 +1,8 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- A unique constraint covering the columns `[githubUserId]` on the table `Account` will be added. If there are existing duplicate values, this will fail.
|
||||
|
||||
*/
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "Account_githubUserId_key" ON "Account"("githubUserId");
|
@ -27,7 +27,7 @@ model Account {
|
||||
updatedAt DateTime @updatedAt
|
||||
settings String?
|
||||
settingsVersion Int @default(0)
|
||||
githubUserId String?
|
||||
githubUserId String? @unique
|
||||
githubUser GithubUser? @relation(fields: [githubUserId], references: [id])
|
||||
|
||||
// Profile
|
||||
|
Loading…
Reference in New Issue
Block a user