Skip to content

Commit

Permalink
feat(be): add mapping to RankVisible (#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-to authored Mar 26, 2024
1 parent 5d9c5a7 commit eec7c97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
Warnings:
- You are about to drop the column `isRankVisible` on the `contest` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "contest" DROP COLUMN "isRankVisible",
ADD COLUMN "is_rank_visible" BOOLEAN NOT NULL DEFAULT true;
2 changes: 1 addition & 1 deletion apps/backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ model Contest {
startTime DateTime @map("start_time")
endTime DateTime @map("end_time")
isVisible Boolean @default(true) @map("is_visible")
isRankVisible Boolean @default(true)
isRankVisible Boolean @default(true) @map("is_rank_visible")
createTime DateTime @default(now()) @map("create_time")
updateTime DateTime @updatedAt @map("update_time")
Expand Down

0 comments on commit eec7c97

Please sign in to comment.