I've been stuck on this for a while now so I decided to ask for some help.
My SetTemplate needs to EITHER be connected directly to exerciseTemplate OR connected to exerciseTemplate through a progression. If it's connected directly, it should have a relationship with "Linear"
Right now it's split into this, which has duplicated tables (two exercise tables and two set tables). I need it in one single connected schema without duplicates.
Here are some conditions:
Multiple exercises can have the same progression template (which means same sets aswell).
If it doesn't have an progression, it should have a "linear" which all exercise templates share.
If it doesn't have an progression, it should have set templates attatched to it, the sets are unique for that exercise.
Is there any nice way to do this?