Guest User

Untitled

a guest
Aug 25th, 2019
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const mongoose = require('mongoose');
  2. mongoose.connect('mongodb://localhost:27017/NikeReview', {
  3. useNewUrlParser: true
  4. });
  5.  
  6. const NikeReview = mongoose.model('NikeReview', {
  7. shoe_id: Number,
  8. review_star: Number,
  9. review_body: String,
  10. review_username: String,
  11. review_data: String,
  12. review_location: String,
  13. upStar: Number,
  14. downStar: Number,
  15. review_title: String
  16. });
  17.  
  18. module.exports = NikeReview;
RAW Paste Data