Skip to content

Commit

Permalink
Update gitignore
Browse files Browse the repository at this point in the history
Change schema to match current migration
Update README
  • Loading branch information
lukesbart committed Mar 5, 2023
1 parent 98fc820 commit 5ec4bb2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#Enviroment Variables
.env

node_modules
node_modules
.DS_Store
coolvideo.mp4
coolvideo.mp4
db/dev.db
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Event Manager

An event manager webapp with Express and Prisma
All POST fields are required
An event manager webapp with Express and Prisma\
All POST fields are required\
All PUT fields are optional

Route tree:\
Expand Down
13 changes: 3 additions & 10 deletions db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ CREATE TABLE "Event" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"event_title" TEXT NOT NULL,
"date" DATETIME NOT NULL,
"description" TEXT NOT NULL
);

-- CreateTable
CREATE TABLE "Media" (
"event_id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"description" TEXT NOT NULL,
"audio_url" TEXT NOT NULL,
"video_url" TEXT NOT NULL,
"transcript_url" TEXT NOT NULL,
CONSTRAINT "Media_event_id_fkey" FOREIGN KEY ("event_id") REFERENCES "Event" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
"handout_url" TEXT NOT NULL
);

-- CreateIndex
CREATE UNIQUE INDEX "Event_event_title_key" ON "Event"("event_title");

CREATE UNIQUE INDEX "Event_event_title_key" ON "Event"("event_title");

0 comments on commit 5ec4bb2

Please sign in to comment.