Im attempting to build a database (pictured)
One of the criteria is that any instrument that is used can only be used by 1 musician at a time.
I was wondering how I would implement that it such a schema?
Another criteria is that 1 of the musicians on each song is the producer. How would I implement that criteria so that the producer has to come from the list of the musicians on that song?
Maybe this is 2 unrelated questions, I'm not sure?
First question:
If you merge the songinstruments and songmusicians table like this: songinstrumentsmusicians:
and add a unique constraing for (SongId,IntrumentId)
Second question:
Add a producer flag to songmusicians (or songinstrumentsmusicians).