Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const mongoose = require('mongoose');
- const Schema = mongoose.Schema;
- const userSchema = new Schema({
- email:String,
- name:String,
- password:String,
- bio:String,
- spec:String
- })
- const specSchema = new Schema({
- bmi:Number,
- insulin:Number,
- glucose:Number,
- triceps:Number,
- bpressure:Number
- });
- const fitSchema = new Schema({
- exercise:String,
- fats:String,
- spec:String
- });
- Fit = mongoose.model('Fit',fitSchema);
- Spec = mongoose.model('Spec', specSchema);
- User = mongoose.model('User',userSchema);
- module.exports = {
- User:User,
- Spec:Spec,
- Fit:Fit
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement