diff --git a/backend/prisma/migrations/20231109052515_room/migration.sql b/backend/prisma/migrations/20231109052515_room/migration.sql new file mode 100644 index 00000000..1fb69f84 --- /dev/null +++ b/backend/prisma/migrations/20231109052515_room/migration.sql @@ -0,0 +1,7 @@ +-- CreateTable +CREATE TABLE "Room" ( + "id" SERIAL NOT NULL, + "name" TEXT NOT NULL, + + CONSTRAINT "Room_pkey" PRIMARY KEY ("id") +); diff --git a/backend/prisma/schema.prisma b/backend/prisma/schema.prisma index 2016f4c3..05562a92 100644 --- a/backend/prisma/schema.prisma +++ b/backend/prisma/schema.prisma @@ -16,3 +16,8 @@ model User { name String? password String } + +model Room { + id Int @id @default(autoincrement()) + name String +} \ No newline at end of file