Advertisement
cyber1only

user-schema

Aug 27th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. attributes: {
  2.  
  3. firstname: { type: 'string'},
  4.  
  5. lastname: { type: 'string'},
  6.  
  7. username: { type: 'string'},
  8.  
  9. password: { type: 'string'},
  10.  
  11. extension_number: { type: 'string'},
  12.  
  13. user_features: { type: 'json'},
  14.  
  15. include_user_incompany: {
  16. type: 'boolean',
  17. defaultsTo: false
  18. },
  19.  
  20. devices: {
  21. collection: 'devices',
  22. via: 'user'
  23. },
  24.  
  25. number: {
  26. collection: 'numbers',
  27. via: 'user'
  28. },
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement