do db changes needed for join command persistance

master
Joonas 4 months ago
parent af1728f71b
commit 3a20fe0b00

@ -0,0 +1,8 @@
-- CreateTable
CREATE TABLE "Channel" (
"id" TEXT NOT NULL PRIMARY KEY,
"name" TEXT NOT NULL
);
-- CreateIndex
CREATE UNIQUE INDEX "Channel_name_key" ON "Channel"("name");

@ -10,6 +10,11 @@ datasource db {
url = env("DATABASE_URL")
}
model Channel {
id String @id @default(uuid())
name String @unique
}
model User {
id String @id @default(uuid())
userId String @unique

Loading…
Cancel
Save