mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 14:43:00 +00:00
13 lines
308 B
JavaScript
13 lines
308 B
JavaScript
var Schema = require('mongoose').Schema;
|
|
|
|
var exerciseSchema = new Schema({
|
|
name: {type: String, unique: true, required: true},
|
|
description: String,
|
|
difficulty: Number,
|
|
musclearray: [Number],
|
|
keywords: [String],
|
|
alternatives: [String],
|
|
datafields: [String]
|
|
});
|
|
|
|
module.exports = exerciseSchema; |