Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ CREATE TABLE "Account" (
"scope" TEXT,
"id_token" TEXT,
"session_state" TEXT,
"refresh_token_expires_in" INTEGER,

CONSTRAINT "Account_pkey" PRIMARY KEY ("id")
);
Expand All @@ -47,7 +48,7 @@ CREATE TABLE "User" (
"emailVerified" TIMESTAMP(3),
"image" TEXT,
"role" TEXT NOT NULL DEFAULT 'NONE',
"isAdminApproved" BOOLEAN NOT NULL DEFAULT false,
"fccProperUserId" TEXT,

CONSTRAINT "User_pkey" PRIMARY KEY ("id")
);
Expand All @@ -68,6 +69,9 @@ CREATE UNIQUE INDEX "Session_sessionToken_key" ON "Session"("sessionToken");
-- CreateIndex
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");

-- CreateIndex
CREATE UNIQUE INDEX "User_fccProperUserId_key" ON "User"("fccProperUserId");

-- CreateIndex
CREATE UNIQUE INDEX "VerificationToken_token_key" ON "VerificationToken"("token");

Expand Down
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ model User {
emailVerified DateTime?
image String?
role String @default("NONE")
fccProperUserId String? @unique
Classroom Classroom[]
accounts Account[]
sessions Session[]
Expand Down
Loading