mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 14:43:00 +00:00
added basic sortable to workout creation
This commit is contained in:
@@ -1,20 +1,13 @@
|
||||
var Schema = require('mongoose').Schema;
|
||||
|
||||
var Datafield = new Schema({
|
||||
datafieldname: { type: String},
|
||||
datafieldtype: { type: String}
|
||||
});
|
||||
|
||||
|
||||
var exerciseSchema = new Schema({
|
||||
name: {type: String, unique: true, required: true},
|
||||
type: String,
|
||||
description: String,
|
||||
difficulty: Number,
|
||||
musclearray: [Number],
|
||||
keywords: [String],
|
||||
alternatives: [String],
|
||||
datafields: [Datafield]
|
||||
datafields: [String]
|
||||
});
|
||||
|
||||
module.exports = exerciseSchema;
|
||||
Reference in New Issue
Block a user