Create controllers for collaborators, CRUD, no updating fields like (email, password, or username), updating should only handle leaving and joining a team. The rest are self-explanatory. When joining a team check for an invitation attached to their ID in the invitations collection or their email address (if outside user).
Create controllers for collaborators, CRUD, no updating fields like (email, password, or username), updating should only handle leaving and joining a team. The rest are self-explanatory. When joining a team check for an invitation attached to their ID in the invitations collection or their email address (if outside user).