Skip to content

Commit

Permalink
add new model room
Browse files Browse the repository at this point in the history
yarn prisma migrate dev -name room
  • Loading branch information
kotto5 committed Nov 9, 2023
1 parent 5d68bba commit 3647598
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/prisma/migrations/20231109052515_room/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- CreateTable
CREATE TABLE "Room" (
"id" SERIAL NOT NULL,
"name" TEXT NOT NULL,

CONSTRAINT "Room_pkey" PRIMARY KEY ("id")
);
5 changes: 5 additions & 0 deletions backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ model User {
name String?
password String
}

model Room {
id Int @id @default(autoincrement())
name String
}

0 comments on commit 3647598

Please sign in to comment.