mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(prisma): add unique displayId field to Problem model
This commit is contained in:
parent
452174a946
commit
89ebfc0c3a
@ -39,6 +39,7 @@ enum Difficulty {
|
|||||||
|
|
||||||
model Problem {
|
model Problem {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
|
displayId Int @unique
|
||||||
title String
|
title String
|
||||||
description String
|
description String
|
||||||
solution String
|
solution String
|
||||||
@ -102,14 +103,14 @@ model Template {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enum ExitCode {
|
enum ExitCode {
|
||||||
SE // System Error
|
SE // System Error
|
||||||
CS // Compilation Success
|
CS // Compilation Success
|
||||||
CE // Compilation Error
|
CE // Compilation Error
|
||||||
TLE // Time Limit Exceeded
|
TLE // Time Limit Exceeded
|
||||||
MLE // Memory Limit Exceeded
|
MLE // Memory Limit Exceeded
|
||||||
RE // Runtime Error
|
RE // Runtime Error
|
||||||
AC // Accepted
|
AC // Accepted
|
||||||
WA // Wrong Answer
|
WA // Wrong Answer
|
||||||
}
|
}
|
||||||
|
|
||||||
model JudgeResult {
|
model JudgeResult {
|
||||||
|
Loading…
Reference in New Issue
Block a user