mirror of
https://github.com/wassname/talk.git
synced 2026-07-31 12:50:48 +08:00
Added user metadata
This commit is contained in:
+7
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user