add dynmic exercsie list, keywords(hardcoded), datafields(hardcoded), adding exercises from exercise list, and show hide for delete button.

This commit is contained in:
2013-01-22 21:09:20 -05:00
parent 30ed56b9ba
commit a5f70ec9d1
7 changed files with 52 additions and 59 deletions

View File

@@ -1,29 +0,0 @@
var Schema = require('mongoose').Schema;
var Split = new Schema({
reps: { type: String},
weight: { type: String}
});
var Element = new Schema({
ExerciseID: {type: String} ,
splits: [Split]
});
var workoutSchema = new Schema({
userID: { type: Schema.ObjectId, ref: 'User', required: true },
workoutDate: { type: Date, 'default': Date.now },
workoutTime: { type: Date, 'default': Date.now },
privacySetting: { type: Number},
Notes: { type: String},
templateID: { type: Schema.ObjectId, ref: 'Template'},
circuits: [Number],
elements: [Element]
});
module.exports = workoutSchema;