We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e0e401 commit b9407ffCopy full SHA for b9407ff
models/attendance.js
@@ -1,11 +1,15 @@
1
import connector from "./databaseUtil";
2
-
+import Infrastructure from "./infrastructure";
3
connector.set("debug", true);
4
5
const attendanceSchema = {
6
date: { type: Date, required: true },
7
time: { type: String, required: true },
8
- class: { type: connector.Schema.Types.ObjectId, ref: "Infrastructure" },
+ class: Infrastructure,
9
};
10
11
const Attendance = connector.model("Attendance", attendanceSchema);
12
+
13
+export default {
14
+ Attendance,
15
+};
0 commit comments