Skip to content

Commit

Permalink
chore: 데이터베이스 날아간 김에 migration 하나로 통합
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaemy committed Aug 3, 2023
1 parent ccd21b0 commit 3cedff0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 35 deletions.

This file was deleted.

20 changes: 0 additions & 20 deletions prisma/migrations/20230719092330_users_api/migration.sql

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ CREATE TABLE "Room" (
"dateOnly" BOOLEAN NOT NULL,
"startTime" TEXT,
"endTime" TEXT,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,

CONSTRAINT "Room_pkey" PRIMARY KEY ("code")
);
Expand All @@ -14,8 +16,10 @@ CREATE TABLE "User" (
"id" TEXT NOT NULL,
"username" TEXT NOT NULL,
"password" TEXT NOT NULL,
"enableTimes" TEXT NOT NULL,
"enableTimes" TEXT[],
"roomId" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,

CONSTRAINT "User_pkey" PRIMARY KEY ("id")
);
Expand Down

0 comments on commit 3cedff0

Please sign in to comment.