Skip to content

Commit 6a2ef30

Browse files
Merge pull request #74 from tcet-opensource/56-create-attendance-model
#56 create attendance model
2 parents f0971b1 + 78604ad commit 6a2ef30

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

models/attendance.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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: Infrastructure,
9+
};
10+
11+
const Attendance = connector.model("Attendance", attendanceSchema);
12+
13+
export default {
14+
Attendance,
15+
};

0 commit comments

Comments
 (0)