Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. var VisitSchema = mongoose.Schema({
  2. user_id: { type: Schema.Types.ObjectId, ref: 'User' },
  3. name: String,
  4. city: {
  5. name: String,
  6. reference: String,
  7. location: [Number]
  8. },
  9. photos: [{
  10. image_url: String,
  11. description: String
  12. }]
  13. });
  14.  
  15. {
  16. "_id" : ObjectId("5449eceeea5281056768aef8"),
  17. "user_id" : ObjectId("540603dd797be100008b4340"),
  18. "name" : "Test",
  19. "photos" : [
  20. {
  21. "image_url" : "testURL",
  22. "description" : "testDescription",
  23. "_id" : ObjectId("5449eceeea5281056768aefb")
  24. }
  25. ],
  26. "city" : {
  27. "name" : "New York, NY, United States",
  28. "reference" : "CoQBdAAAAFfbZuaWptFtAkhGaO87UVSaXbyYwtTY_xX-pH84mS6QO2ypLr15znsCnYvaZ_N8CvwCBAr4y34PSQqyTUwxa5qbUKBK0yHnUFgTLKPQMFKqyQ8xd4vcDPNXf5XSxlpsXKKPYnU0AJZEVVxXLJ_6IBiUay9emFvNXPiYb7kT04NjEhB8fK-jKIZHJ5Bfz_mfyk2MGhTJwOPU68NQiV7RlAdb0Gca1bg0ew",
  29. "location" : [
  30. -74.0059413,
  31. 40.7127837
  32. ]
  33. },
  34. "__v" : 0
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement