citusdata / pgconfus-tutorial-multi-tenant

Files for the tutorial on Citus & Multi-Tenant Models @ PGConf US 2017
9 stars 9 forks source link

Evaluate renaming the stores table #3

Open ozgune opened 7 years ago

ozgune commented 7 years ago

In the multi-tenant example, we use the stores table to represent tenants. The name store doesn't immediately communicate the concept of a tenant.

Could we rename this table to one of tenants, customers, organizations, or accounts to better align with names that we use in our docs and blog posts?

lfittl commented 7 years ago

@ozgune Yep, good point - one thing we could consider is just adding an organizations table and sharding by organization_id.

I would recommend we keep users as a local coordinator table, since we want emails to be unique.