Update task schema

parent 7c5d47db
......@@ -96,44 +96,7 @@ const TaskSchema = new mongoose.Schema({
default: false
},
tests: {
type: [{
inputType: {
type: String,
required: true
},
inputProgramArgs: {
type: String
},
inputFiles: {
type: [mongoose.Schema.Types.ObjectId],
refs: 'fs'
},
stdinFile: {
type: mongoose.Schema.Types.ObjectId,
refs: 'fs'
},
outputType: {
type: String,
required: true
},
outputProgramArgs: {
type: String
},
outputFiles: {
type: [mongoose.Schema.Types.ObjectId],
refs: 'fs'
},
stdoutFile: {
type: mongoose.Schema.Types.ObjectId,
refs: 'fs'
},
runArgs: {
type: String
},
exitCode: {
type: Number,
}
}],
type: [mongoose.Schema.Types.ObjectId],
default: []
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment