top | item 38017863

(no title)

rsweeney21 | 2 years ago

Let's say I'm building a CRM and I want to have an "industry" or "cities" table that is the same across all tenants. I want a copy of cities in each tenant for referential integrity, but I also need to update it periodically across all tenants.

discuss

order

infra_dev|2 years ago

Great question. Nile supports shared tables for this purpose. Shared tables are regular tables that can be shared across all the tenants in another table. We have example use cases and how this works in Nile here https://www.thenile.dev/docs/tenant-sharing. Let me know if this works for you.

rsweeney21|2 years ago

That sounds like exactly what I was looking for. Impressive!