But there's always arguments about a single PK or composite?
Pros and cons.
I prefer single PK.
Well, if you put composite PK, later on, they could change their business rule, for example,
"A dog can belong directly to a team (leave member as null)",
(Actually, they didn't mention a dog must have a owner, what they say is "Each dog can only have one owner."
then you'll struggle with the null as member id is part of the PK. This kind of business change happens everywhere and all the time.
I just want to leave the flexibility to myself.
Glad to hear your advice.
Thanks.
Pros and cons.
I prefer single PK.
Well, if you put composite PK, later on, they could change their business rule, for example,
"A dog can belong directly to a team (leave member as null)",
(Actually, they didn't mention a dog must have a owner, what they say is "Each dog can only have one owner."
then you'll struggle with the null as member id is part of the PK. This kind of business change happens everywhere and all the time.
I just want to leave the flexibility to myself.
Glad to hear your advice.
Thanks.