Skip to content

Commit 0e0e401

Browse files
committed
created attendance.js and attendanceSchema in it
1 parent 890c40d commit 0e0e401

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

models/attendance.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import connector from "./databaseUtil";
2+
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" },
9+
};
10+
11+
const Attendance = connector.model("Attendance", attendanceSchema);

models/user.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import connector from "#models/databaseUtil";
2-
import { logger } from "#util";
32

43
connector.set("debug", true);
54
const userSchema = {

0 commit comments

Comments
 (0)