Skip to content

Commit d7c0abb

Browse files
authored
Merge pull request #151 from avidavatar/139-refractor_module_model
139 Refactor Module model
2 parents 76063e2 + fdf28d0 commit d7c0abb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

models/module.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ const moduleSchema = {
66
outcome: { type: String, required: true },
77
contents: [{ type: String, required: true }],
88
hrsPerModule: { type: Number, required: true },
9-
cognitiveLevels: [{ type: String, required: true }],
9+
cognitiveLevels: [{
10+
type: String,
11+
required: true,
12+
enum: ['L1', 'L2', 'L3', 'L4', 'L5', 'L6'],
13+
}],
1014
};
1115

1216
const Module = connector.model("Module", moduleSchema);

0 commit comments

Comments
 (0)