Added user metadata

This commit is contained in:
Wyatt Johnson
2017-04-21 15:22:52 -06:00
parent fcf25e0b96
commit 441ea12a65
+7 -1
View File
@@ -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.