Skip to content

Commit e3b47f6

Browse files
authored
Merge pull request #156 from Abhishekgoyal007/135-Create_Practical_Model
Created practical model
2 parents e2db853 + 11e3621 commit e3b47f6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

models/practical.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import connector from "#models/databaseUtil";
2+
3+
const practicalSchema = {
4+
no: { type: Number, required: true },
5+
type: { type: String, required: true },
6+
title: { type: String, required: true },
7+
hours: { type: Number, required: true },
8+
cognitiveLevels: [{
9+
type: String,
10+
required: true,
11+
enum: ["L1", "L2", "L3", "L4", "L5", "L6"],
12+
}],
13+
};
14+
15+
const Practical = connector.model("Practical", practicalSchema);

0 commit comments

Comments
 (0)