What is a tenant in Elixir?

It would be great if someone could help me understand tenants in Elixir (in simple words). What have tenants got to do with private schema and why do we prefix them?

Thanks :smiley:

I you are talking about database multi-tenancy, that is not Elixir specific.
If you have data belonging to multiple tenants in your database you have to find a way to separate them.
(prefix each row, database/schema per tenant)

See here:

https://hexdocs.pm/ecto/multi-tenancy-with-query-prefixes.html
https://hexdocs.pm/ecto/multi-tenancy-with-foreign-keys.html

2 Likes