Added suspension mechanism.
This commit is contained in:
@@ -36,6 +36,7 @@ const userSchema = new mongoose.Schema({
|
||||
participatingMatchesPublicity: { type: Boolean, required: true, default: false },
|
||||
friends: { type: Types.ObjectId, ref: modelNameRegister.User },
|
||||
accessLevel: { type: Number, required: true, default: 0 },
|
||||
suspend: { type: Date, required: true, default: Date.now } // suspend the user until the when the user was created.
|
||||
});
|
||||
|
||||
userSchema.statics.credentialsExist = async function (email, password) {
|
||||
|
Reference in New Issue
Block a user