mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 14:43:00 +00:00
migrating repo to Bodyrep org
This commit is contained in:
20
data/schemas/exercise.js
Normal file
20
data/schemas/exercise.js
Normal file
@@ -0,0 +1,20 @@
|
||||
var Schema = require('mongoose').Schema;
|
||||
|
||||
var Datafield = new Schema({
|
||||
datafieldname: { type: String},
|
||||
datafieldtype: { type: String}
|
||||
});
|
||||
|
||||
|
||||
var exerciseSchema = new Schema({
|
||||
name: String,
|
||||
type: String,
|
||||
description: String,
|
||||
difficulty: Number,
|
||||
musclearray: [Number],
|
||||
keywords: [String],
|
||||
alternatives: [ids],
|
||||
datafields: [Datafield]
|
||||
});
|
||||
|
||||
module.exports = workoutSchema;
|
||||
Reference in New Issue
Block a user