mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(prisma): move timeLimit and memoryLimit from DockerConfig to Problem model
This commit is contained in:
parent
84ebd17be9
commit
feee3a2580
@ -56,6 +56,9 @@ model Problem {
|
|||||||
templates Template[]
|
templates Template[]
|
||||||
testcases Testcase[]
|
testcases Testcase[]
|
||||||
|
|
||||||
|
timeLimit Int @default(1000)
|
||||||
|
memoryLimit Int @default(128)
|
||||||
|
|
||||||
@@index([userId])
|
@@index([userId])
|
||||||
@@index([difficulty])
|
@@index([difficulty])
|
||||||
}
|
}
|
||||||
@ -93,8 +96,6 @@ model DockerConfig {
|
|||||||
image String
|
image String
|
||||||
tag String
|
tag String
|
||||||
workingDir String
|
workingDir String
|
||||||
timeLimit Int
|
|
||||||
memoryLimit Int
|
|
||||||
compileOutputLimit Int
|
compileOutputLimit Int
|
||||||
runOutputLimit Int
|
runOutputLimit Int
|
||||||
editorLanguageConfig EditorLanguageConfig @relation(fields: [language], references: [language])
|
editorLanguageConfig EditorLanguageConfig @relation(fields: [language], references: [language])
|
||||||
|
Loading…
Reference in New Issue
Block a user