Advertisement
Guest User

heroku app bin

a guest
Apr 24th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const mongoose = require('mongoose');
  2. const Schema = mongoose.Schema;
  3. const userSchema = new Schema({
  4.     email:String,
  5.     name:String,
  6.     password:String,
  7.     bio:String,
  8.     spec:String
  9. })
  10.  
  11. const specSchema = new Schema({
  12.     bmi:Number,
  13.     insulin:Number,
  14.     glucose:Number,
  15.     triceps:Number,
  16.     bpressure:Number
  17. });
  18.  
  19. const fitSchema = new Schema({
  20.     exercise:String,
  21.     fats:String,
  22.     spec:String
  23. });
  24.  
  25. Fit = mongoose.model('Fit',fitSchema);
  26.  
  27. Spec = mongoose.model('Spec', specSchema);
  28.  
  29. User = mongoose.model('User',userSchema);
  30.  
  31. module.exports = {
  32.     User:User,
  33.     Spec:Spec,
  34.     Fit:Fit
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement