mirror of
https://github.com/bodyrep/DemoApp.git
synced 2025-12-06 06:01:48 +00:00
making so schema changes to users -- adding is_imperial and favorites list
This commit is contained in:
@@ -4,7 +4,9 @@ var UserSchema = new mongoose.Schema({
|
||||
username: {type: String, unique: true, required: true},
|
||||
name: String,
|
||||
password: String,
|
||||
is_admin: {type: Boolean, 'default': false }
|
||||
is_admin: {type: Boolean, 'default': false },
|
||||
is_imperial: {type: Boolean, 'default': false },
|
||||
favorites: [{type: [Schema.ObjectId], ref: 'Exercise'}]
|
||||
});
|
||||
|
||||
UserSchema.methods.recentworkouts = function(callback) {
|
||||
|
||||
Reference in New Issue
Block a user