Skip to content

Commit 3e8f998

Browse files
committed
✨ Add others to contest type (#1165)
1 parent 5927ad4 commit 3e8f998

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

prisma/ERD.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ JOI JOI
2020
TYPICAL90 TYPICAL90
2121
TESSOKU_BOOK TESSOKU_BOOK
2222
MATH_AND_ALGORITHM MATH_AND_ALGORITHM
23+
OTHERS OTHERS
2324
}
2425
2526
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterEnum
2+
ALTER TYPE "ContestType" ADD VALUE 'OTHERS';

prisma/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ enum ContestType {
215215
TYPICAL90 // 競プロ典型 90 問
216216
TESSOKU_BOOK // 競技プログラミングの鉄則
217217
MATH_AND_ALGORITHM // アルゴリズムと数学
218+
OTHERS // その他
218219
}
219220

220221
// 11Q(最も簡単)〜6D(最難関)。

src/lib/types/contest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const ContestType: { [key in ContestTypeOrigin]: key } = {
1313
TYPICAL90: 'TYPICAL90', // 競プロ典型 90 問
1414
TESSOKU_BOOK: 'TESSOKU_BOOK', // 競技プログラミングの鉄則
1515
MATH_AND_ALGORITHM: 'MATH_AND_ALGORITHM', // アルゴリズムと数学
16+
OTHERS: 'OTHERS',
1617
} as const;
1718

1819
// Re-exporting the original type with the original name.

0 commit comments

Comments
 (0)