File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 11import type { ContestTaskPair as ContestTaskPairOrigin } from '@prisma/client' ;
22
3+ import type { TaskResult } from '$lib/types/task' ;
4+
35export type ContestTaskPair = ContestTaskPairOrigin ;
46
57export type ContestTaskPairs = ContestTaskPair [ ] ;
8+
9+ // For CRUD operation parameter types
10+ export type ContestTaskPairCreate = {
11+ contestId : string ;
12+ taskTableIndex : string ;
13+ taskId : string ;
14+ } ;
15+
16+ export type ContestTaskPairRead = ContestTaskPairCreate ;
17+
18+ export type ContestTaskPairUpdate = ContestTaskPairCreate ;
19+
20+ // For mapping and identification
21+ export type ContestTaskPairKey = `${string } :${string } `; // "contest_id:task_id"
22+
23+ export type TaskResultMapByContestTaskPair = Map < ContestTaskPairKey , TaskResult > ;
You can’t perform that action at this time.
0 commit comments