Say that I have two contexts with the following schemas. Organizations pretty much own accounts and profiles are attached to accounts.
- Organizations
- Organization
- Users
- Profile
- Account
Is it okay for me to list all of the profiles for an organization with a function such as Organizations.list_profiles(organization)
? What’s the best way to organize relationships such as these in the contexts?