Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. [ [ { _id: '5990e6d4fce2e705f8d74923',
  2. fname: 'test',
  3. lname: 'testerson1',
  4. username: 'email1@gmail.com',
  5. __v: 0,
  6. userid: '5990e6b9fce2e705f8d74922' },
  7. { _id: '5990e6e6fce2e705f8d74924',
  8. fname: 'test',
  9. lname: 'testerson2',
  10. username: 'email2@gmail.com',
  11. __v: 0,
  12. userid: '5990e6b9fce2e705f8d74922' } ],
  13. [ { _id: '5990e6f7fce2e705f8d74925',
  14. fname: 'test',
  15. lname: 'testerson3',
  16. username: 'email3@gmail.com',
  17. __v: 0,
  18. userid: '5990e6b9fce2e705f8d74922' },
  19. { _id: '5990e707fce2e705f8d74926',
  20. fname: 'test',
  21. lname: 'testerson4',
  22. username: 'email4@gmail.com',
  23. __v: 0,
  24. userid: '5990e6b9fce2e705f8d74922' } ] ]
  25.  
  26. var UserSchema = new mongoose.Schema({
  27. fname: String,
  28. lname: String,
  29. username: String,
  30. password: String,
  31. testers: [
  32. [
  33. {
  34. type: mongoose.Schema.Types.ObjectId,
  35. ref: "Tester"
  36. }
  37. ]
  38. ]
  39. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement