I have a problem creating a database schema for the following scenario:
(I’m not creating a dating site but just using this as an example)
A user logs on to a dating site and is given a multiple selection for the hair colour they’d like their date to have:
This is easy enough to model with the three tables below:
Tables:
User {key}
HairColour {key}
UserHairColour {UserKey} {HairColourKey}
However, the user also has the option to select ‘any’ which means they don’t care about hair colour and all hair colour should be included in the selection.
How do I give the user the ‘any’ option?
I could obviously select all hair colours and shove them into ’UserHairColour’ but what if I need to add a new hair colour in the future?