SHARE
TWEET

Untitled

a guest Jan 20th, 2017 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var userSchema = new mongoose.Schema({
  2.     movies:[{type:mongoose.Schema.ObjectId, ref: 'Movie'}],
  3.     password:{type:String, required:true},
  4.     username:{type:String, unique:true, required:true},
  5.     wishlist:[{type:mongoose.Schema.ObjectId, ref: 'Movie'}],
  6.     seen:[{type:mongoose.Schema.ObjectId, ref: 'Movie'}],
  7.     liked:[{type:mongoose.Schema.ObjectId, ref: 'Movie'}],
  8.     disliked:[{type:mongoose.Schema.ObjectId, ref: 'Movie'}]
  9. });
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