An application I am developing needs to provide access to data based on a list of cities defined for each client. A client can have:
- access to all cities in a country OR
- access to all cities in a state / region OR
- access to select cities in any state or country.
What would be the best way to define this in the database (if the db has a Country table, State / Region table, City table and a Client table)?
Clarification: (A simplified view of the tables with only the essential columns pertaining to this question).
Country table -
idCountry | Name
State table -
idState | idCountry | Name
City table -
idCity | idState | Name
Client table -
idClient | Name