11 lines
375 B
SQL
11 lines
375 B
SQL
-- CreateTable
|
|
CREATE TABLE "GitHubAuth" (
|
|
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
"userId" INTEGER NOT NULL,
|
|
"accessToken" TEXT NOT NULL,
|
|
CONSTRAINT "GitHubAuth_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
);
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "GitHubAuth_userId_key" ON "GitHubAuth"("userId");
|