Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. include: [{
  2. model: db.models.category,
  3. as: 'taskCategory',
  4. attributes: [
  5. 'id',
  6. 'name',
  7. ],
  8. required: true
  9. },
  10. {
  11. model: db.models.taskPriority,
  12. as: 'taskPriority',
  13. attributes: [
  14. 'id',
  15. 'name',
  16. ],
  17. required: true
  18. },
  19. {
  20. model: db.models.statusv2,
  21. as: 'taskStatus',
  22. attributes: [
  23. 'id',
  24. 'name',
  25. ],
  26. required: true
  27. },
  28. {
  29. model: db.models.team,
  30. as: 'taskTeam',
  31. attributes: [
  32. 'id',
  33. 'id_team',
  34. 'name',
  35. ],
  36. required: true
  37. },
  38. {
  39. model: db.models.user_mask,
  40. as: 'creatorUserId',
  41. require: false
  42. },
  43. {
  44. model: db.models.user_mask,
  45. as: 'assignedUserId',
  46. require: false
  47. }],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement