I am creating an app where people can schedule appointments with professionals. When the professionals are creating an account, sometimes the service they want to offer may require a work permit/license in certain locations.
I've been trying to create a database design on Firebase Firestore where based on the location, and type of service, I can get a list of requirements (e.g. work permit or insurance).
It's also worth noting that not all services are available in all locations.
So far the design I have is the following (those in brackets are collections):
(locations)
United States
(cities)
New York
(categories)
Home Improvement
(services)
House Cleaning
- array of licenses/permits required
The user's country and city are already known and stored in the user's profile document.
I am pretty new to all of this but even I can see that this is very repetitive as I'd have to do the same thing for every single location.
Any help is appreciated thank you!