feat(prisma): move timeLimit and memoryLimit from DockerConfig to Problem model

This commit is contained in:
cfngc4594 2025-04-10 21:54:30 +08:00
parent 84ebd17be9
commit feee3a2580

View File

@ -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])