mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 14:43:00 +00:00
started adding more user flags, added user editing screen
This commit is contained in:
@@ -11,9 +11,16 @@ var ExerciseStat = new Schema({
|
||||
var UserSchema = new mongoose.Schema({
|
||||
username: {type: String, unique: true, required: true},
|
||||
name: String,
|
||||
email: {type: String, unique: true, required: true},
|
||||
password: String,
|
||||
dob_month: String,
|
||||
dob_year: String,
|
||||
location: String,
|
||||
is_admin: {type: Boolean, 'default': false },
|
||||
is_imperial: {type: Boolean, 'default': false },
|
||||
gender: {type: Number, 'default': 1, min: 0 , max: 1 },
|
||||
units_weight: {type: Number, 'default': 1, min: 0 , max: 1},
|
||||
units_distance: {type: Number, 'default': 1, min: 0 , max: 1},
|
||||
units_energy: {type: Number, 'default': 1, min: 0 , max: 1},
|
||||
favorites: [{ type: Schema.ObjectId, ref: 'Exercises'}],
|
||||
exercisestats: [ExerciseStat]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user