Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var DogSchema = new Schema({
- name: String,
- age: Number,
- location: String,
- breed: String,
- sex: String
- });
- module.exports = mongoose.model('Dog', DogSchema);
- var mongoose = require('mongoose');
- var Schema = mongoose.Schema;
- var OwnerSchema = new Schema({
- firstName: String,
- lastName: String,
- age: Number,
- location: String,
- favorite: String,
- numberOfBreeds: Number,
- numberOfDogs: String,
- username: String,
- password: String
- });
- module.exports = mongoose.model('Owner', OwnerSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement