From 91238fdf641a970e1e7a937e5eb39109b2f026a3 Mon Sep 17 00:00:00 2001 From: Jenny Date: Fri, 21 Jun 2024 18:11:43 -0400 Subject: [PATCH] add matchedUsers to users model --- models/users-model.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/models/users-model.js b/models/users-model.js index 9033689..69a1800 100644 --- a/models/users-model.js +++ b/models/users-model.js @@ -21,6 +21,11 @@ const usersSchema = new mongoose.Schema({ location: { type: String, enum: usersLocations, required: true }, interests: [{ type: String, enum: usersInterests }], uploadedBackgrounds: [{ type: String, unique: true }], + chatMatchedUsers: { + type: [mongoose.Schema.Types.ObjectId], + ref: "User", + default: [], + }, avatar: { type: String, default: