Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mongoose = require('mongoose');
- Schema = mongoose.Schema;
- var IngredientSchema = new Schema({
- name: String
- });
- module.exports = mongoose.model('Ingredient', IngredientSchema);
- var mongoose = require('mongoose');
- var Schema = mongoose.Schema;
- var RecipeSchema = new Schema({
- name: String
- });
- module.exports = mongoose.model('Recipe', RecipeSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement