SHARE
TWEET

Untitled

a guest Jan 26th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let users = new mongoose.Schema({
  2.     name: {type: String, required: true},
  3.     pass: {type: String, required: true}
  4. });
  5.  
  6. let searches = new mongoose.Schema({
  7.     query: {type: String, required: true},
  8.     date: {type: Date, default: now},
  9.     user: {type: Schema.Types.ObjectId, required: true}
  10. });
  11.  
  12. let lists = new mongoose.Schema({
  13.     name: {type: String, required: true},
  14.     user: {type: Schema.Types.ObjectId, required: true},
  15.     videos: {type: [String], required: true}
  16. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top