let userSchema = new mongoose.Schema({
name: String,
password: String,
email: {
type: String
},
username: String,
friends: [ { type: mongoose.Types.ObjectId } ],
totalMsg: [
{
id: { type: mongoose.Types.ObjectId, ref: 'user' },
msg: [ { type: mongoose.Types.ObjectId, ref: 'message' } ]
}
]
});
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)