From a3869af4c616da1f8af900594cbad2b829d7644a Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 1 Jun 2025 14:43:00 +0200 Subject: Partial progress on generating http files --- src/db/schemas/user.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/db/schemas/user.js') diff --git a/src/db/schemas/user.js b/src/db/schemas/user.js index 063fddf..f8802d7 100644 --- a/src/db/schemas/user.js +++ b/src/db/schemas/user.js @@ -1,4 +1,4 @@ -import { model, Schema } from 'mongoose'; +import { model, Schema, ObjectId } from 'mongoose'; import { hash, compare } from 'bcrypt'; export const UserType = Object.freeze({ @@ -80,6 +80,10 @@ export const userSchema = new Schema({ }, alarm: { type: alarmSchema + }, + monitoredUsers: { + type: [ObjectId], + ref: 'users' } }); -- cgit 1.5.1