I am trying to build a service to provide analytics to multiple customers. I am working in Snowflake using a multi-tenancy architecture in which the warehouse is shared. All of the customers have the exact same DB structure with the same Schemas and tables. The problem I’m having is finding out how to apply the exact same set of transformations to every customer DB.
The Snowflake warehouse is structured like this:
- Customer1
- Shopify
- Orders
- Products
- etc...
- MetaAds
- Production
- tables
- views
- Customer2
- ...
- CustomerN
I want to apply the exact transformations to all customer to product the desired fact tables/views in the “Production” schema.