I am new to 2sxc and am trying to build a relatively complex website using this module as base for developing the data modelling.
My site consists of lots of different Apps (in my view), like news, events, people, workgroups, etc.
My question is how should I address the relationships between entities:
Are there any recomendations on how to tackle these issues and how to setup a cross app relation? Ex: WorkingGroups has a relation to people (one to many) Both Events and News share a relation to Categories (tags)
An App is a self-contained unit which can be exported/imported and should still work. So if items in an app relate to each other, that is how it's meant to be.
If you create cross-app relationships (this is possible) then you lose integrity checks and similar.
EG: Let's say you have a people-app which describes the people, and you want to have other apps (like news) which mention a person - and the goal would be to be able to click on that person to get that profile or similar, this is how you would do it:
Now you can create all the views etc. Make sure you add some null-checks and similar so the code doesn't break if it doesn't find the ID in the other app.