do db changes needed for join command persistance

This commit is contained in:
Joonas 2023-02-11 19:11:50 +02:00
parent af1728f71b
commit 3a20fe0b00
2 changed files with 13 additions and 0 deletions

View File

@ -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");

View File

@ -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