From 441ea12a6579f0c3c0ce516d219f848705c11c39 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Fri, 21 Apr 2017 15:22:52 -0600 Subject: [PATCH] Added user metadata --- models/user.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/models/user.js b/models/user.js index 2663410a7..dd30e8033 100644 --- a/models/user.js +++ b/models/user.js @@ -123,7 +123,13 @@ const UserSchema = new mongoose.Schema({ // user id of another user type: String, - }] + }], + + // Additional metadata stored on the field. + metadata: { + default: {}, + type: Object + } }, { // This will ensure that we have proper timestamps available on this model.