[Multi-tenancy] Migrate to coko-server Team model
The purpose of this task is to allow for 'teams' belonging to objects other than manuscripts.
Acceptance criteria:
-
Refactor to teams table with migration to support objects -
Migration of existing manuscriptId
to work withobjectId
andobjectType
teams table -
Refactor client-side changes to support as objects -
Refactor stories teams data structure -
Test all flows and team model changes