Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. var mongoose = require('mongoose');
  2. Schema = mongoose.Schema;
  3.  
  4. var IngredientSchema = new Schema({
  5. name: String
  6. });
  7.  
  8. module.exports = mongoose.model('Ingredient', IngredientSchema);
  9.  
  10.  
  11. var mongoose = require('mongoose');
  12. var Schema = mongoose.Schema;
  13.  
  14. var RecipeSchema = new Schema({
  15. name: String
  16. });
  17.  
  18. module.exports = mongoose.model('Recipe', RecipeSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement