Merge pull request #521 from coralproject/user-metadata

Added user metadata
This commit is contained in:
David Erwin
2017-04-26 17:01:15 -04:00
committed by GitHub
+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.