Skip to content

Commit 5ea1005

Browse files
authored
changed to array of student
1 parent f88a7b9 commit 5ea1005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import connector from "#models/databaseUtil";
22

33
const groupSchema = {
44
title: { type: String, required: true },
5-
student: { type: connector.Schema.Types.ObjectId, ref: "Student", required: true }
5+
students: [{ type: connector.Schema.Types.ObjectId, ref: "Student", required: true }]
66
};
77

88

0 commit comments

Comments
 (0)