2.0.1 • Published 4 years ago

sm-exercises v2.0.1

Weekly downloads
7
License
-
Repository
-
Last release
4 years ago

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 } }, }