For partner organizations, we want to track which users are associated with that organization. This will eventually be handled by an organization page that allows users to "join/follow" an organization. For now, we want to implement a link that will invite users to join the organization. I imagine this working in the following way:
- We generate a link that has URL parameters that corresponds to the organization
- Assumes we have a way to create organizations
- This doesn't have to be exposed in the app, we just need a way to generate the link and provide it to someone
- This routes the user to the login page to sign in. After they sign in they are associated with the organization
- If the user does not have an account, they can go to the register page. After they register they are associated with the organization
Depending on implementation I imagine we'll need a new table for organizations and a foreign key for it on the user table. For future enhancements we should support multiple organizations per user.
For partner organizations, we want to track which users are associated with that organization. This will eventually be handled by an organization page that allows users to "join/follow" an organization. For now, we want to implement a link that will invite users to join the organization. I imagine this working in the following way:
Depending on implementation I imagine we'll need a new table for organizations and a foreign key for it on the user table. For future enhancements we should support multiple organizations per user.