50% done with submission flow i think

This commit is contained in:
Micha Albert 2024-08-17 22:25:32 +00:00
parent f57c38250a
commit 25dbca5c56
7 changed files with 218 additions and 44 deletions

View file

@ -0,0 +1,10 @@
-- CreateTable
CREATE TABLE "PullRequest" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"userId" TEXT NOT NULL,
"token" TEXT NOT NULL,
CONSTRAINT "PullRequest_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
);
-- CreateIndex
CREATE UNIQUE INDEX "PullRequest_token_key" ON "PullRequest"("token");