2.0.1 • Published 4 years ago
sm-exercises v2.0.1
SM Exercises
Micro service which manage notions and exercices.
## Schemas
Question
{
_id: ObjectId,
type_id: ObjectId,
level: String,
notion_id: ObjectId,
description: String,
help: String,
empty: Boolean,
isPublished: Boolean,
exercise: {
...// Depends on type
},
images: [String],
}
Question type schema
let schema = { ... // check Question exercise: { raw: String, compiled: { answers: { force: Number, answer: String, position: { x: Number, y: Number, } }, traps: { force: Number, trap: String, isImage: Boolean, }, }, boxSize: { height: Number, width: Number } }, }
2.0.1
4 years ago