We are developing a SaaS application that contains:
- one shared nonsecured database with reference data (countries, regions, cities etc.)
- one separate database per each customer of application
So there are a simply entity - Address with such properties:
- Zip (string)
- Country (reference to Country)
- Region (reference to Region)
- City(reference to City)
- Address line (string)
We want to store Address entity in the customer database, while the references (Country, Region, City) are in the shared database.
How to implement this scenario with DF?