@everyone
Hi, I'm building a gym app tracker.
I want the app to have Routines that contain Sessions and these contain exercises (That is like a starter for the user), and the track info to be on different collections "training day" that is related to "exercise training" and contains an exercise, reps and weight. When I say contains, I refer that have one attribute in relation to another collection.
I have problems with permissions. I understand that the default info (for all users) needs to read document permissions for all users, and then, have turned on the document permission and not collection, but I want users can share routines (Via url or ID), so, I didn't know how to handle that. Also, I would like in the future to add a trainer type of user that can see the training days of the users (Not all, only their trainees), and have a "Routines hub" where trainees can see the routines that the trainer creates and shares. I think that this can be solved with teams, but I don't know how to give teams permission to single documents.
What should be the permissions and is my structure correct?
Thanks in advance and sorry for my English, not native.