Advertisement
Guest User

Untitled

a guest
Aug 4th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. var DogSchema = new Schema({
  2. name: String,
  3. age: Number,
  4. location: String,
  5. breed: String,
  6. sex: String
  7. });
  8.  
  9. module.exports = mongoose.model('Dog', DogSchema);
  10.  
  11. var mongoose = require('mongoose');
  12. var Schema = mongoose.Schema;
  13.  
  14. var OwnerSchema = new Schema({
  15. firstName: String,
  16. lastName: String,
  17. age: Number,
  18. location: String,
  19. favorite: String,
  20. numberOfBreeds: Number,
  21. numberOfDogs: String,
  22. username: String,
  23. password: String
  24. });
  25.  
  26. module.exports = mongoose.model('Owner', OwnerSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement