fix: oauthId optional

This commit is contained in:
diced 2022-12-17 09:06:00 -08:00
parent 4e70daa4d8
commit 268215ff5f
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "OAuth" ALTER COLUMN "oauthId" DROP NOT NULL;

View file

@ -100,7 +100,7 @@ model OAuth {
user User @relation(fields: [userId], references: [id], onDelete: Cascade) user User @relation(fields: [userId], references: [id], onDelete: Cascade)
userId Int userId Int
username String username String
oauthId String oauthId String?
token String token String
refresh String? refresh String?