added create channel to sql and browse channels page

This commit is contained in:
Ren Amamiya
2023-04-10 11:29:06 +07:00
parent 549cc991a9
commit 213d7514d2
7 changed files with 95 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
-- CreateTable
CREATE TABLE "Channel" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"eventId" TEXT NOT NULL,
"content" TEXT NOT NULL
);
-- CreateIndex
CREATE UNIQUE INDEX "Channel_eventId_key" ON "Channel"("eventId");
-- CreateIndex
CREATE INDEX "Channel_eventId_idx" ON "Channel"("eventId");