Skip to content

Commit

Permalink
fix/#55/adminUser 테이블 명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gwgw123 committed Jan 7, 2025
1 parent 71a2f90 commit 3bface4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
-- CreateTable
CREATE TABLE "admin_user" (
CREATE TABLE "admin_users" (
"id" SERIAL NOT NULL,
"email" VARCHAR(50) NOT NULL,
"password" VARCHAR(255) NOT NULL,
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" TIMESTAMP(3) NOT NULL,

CONSTRAINT "admin_user_pkey" PRIMARY KEY ("id")
CONSTRAINT "admin_users_pkey" PRIMARY KEY ("id")
);

-- CreateIndex
CREATE UNIQUE INDEX "admin_user_email_key" ON "admin_user"("email");
CREATE UNIQUE INDEX "admin_users_email_key" ON "admin_users"("email");
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,5 @@ model AdminUser {
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
@@map("admin_user")
@@map("admin_users")
}

0 comments on commit 3bface4

Please sign in to comment.