Skip to content

Commit

Permalink
Generate prisma migration, small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
evan10s committed Jan 9, 2025
1 parent 0fbc9bd commit abd73a8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Project organization:
- [`client`](client) contains all frontend code (Vue3, Typescript)

Install some baseline dependencies:
- nodejs (version >= 20.0 required; Node 20 (LTS) is recommended)
- nodejs (version >= 22.0 required; Node 22 (LTS) is recommended)
- yarn

- To run the server: `cd server && yarn run dev`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-- CreateTable
CREATE TABLE "UploadedVideo" (
"youTubeVideoId" TEXT NOT NULL,
"workerJobId" TEXT,
"filePath" TEXT NOT NULL,
"matchKey" TEXT NOT NULL,
"eventKey" TEXT NOT NULL,
"label" TEXT NOT NULL,
"addToYouTubePlaylistSucceeded" BOOLEAN,
"linkOnTheBlueAllianceSucceeded" BOOLEAN,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,

CONSTRAINT "UploadedVideo_pkey" PRIMARY KEY ("youTubeVideoId")
);

-- CreateIndex
CREATE UNIQUE INDEX "UploadedVideo_youTubeVideoId_key" ON "UploadedVideo"("youTubeVideoId");

-- AddForeignKey
ALTER TABLE "UploadedVideo" ADD CONSTRAINT "UploadedVideo_workerJobId_fkey" FOREIGN KEY ("workerJobId") REFERENCES "WorkerJob"("jobId") ON DELETE SET NULL ON UPDATE CASCADE;

0 comments on commit abd73a8

Please sign in to comment.