New changes in tests

parent 4a301a4a
......@@ -89,10 +89,6 @@ const ContestSchema = new mongoose.Schema({
type: [String],
default: []
},
tests: {
type: [mongoose.Schema.Types.ObjectId],
default: []
},
checkPlagiarism: {
type: Boolean,
default: false
......
......@@ -123,10 +123,6 @@ const TaskSchema = new mongoose.Schema({
type: [String],
default: []
},
tests: {
type: [mongoose.Schema.Types.ObjectId],
default: []
},
checkPlagiarism: {
type: Boolean,
default: false
......
......@@ -17,6 +17,10 @@ const TestSchema = new mongoose.Schema({
contest: {
type: mongoose.Schema.Types.ObjectId
},
index: {
type: Number,
required: true
},
inputType: {
type: String,
required: true
......
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