Skip to content

Commit

Permalink
Cyberleague: [premieroctet#133] Add suggested_content attribute to co…
Browse files Browse the repository at this point in the history
…ntent schema
  • Loading branch information
Bastien-Wappizy committed Sep 16, 2024
1 parent eec6e13 commit 89d41e7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ const ContentSchema = new Schema({
expertise_set: {
type: Schema.Types.ObjectId,
ref: 'expertiseSet',
},
suggested_content: {
type: [{
type: Schema.Types.ObjectId,
ref: 'content',
required: true
}],
default: []
}
}, schemaOptions)

Expand Down

0 comments on commit 89d41e7

Please sign in to comment.