I've never completed any multi-tenant project before...
What is the best way to organize multi-tenant db using mysql? and to seperate access between different companies?
sure it can be done in a different ways:
- different database for each company
- different tables for each company
- one db each table with column tenant_id
i prefer 3rd option.
but: is it possible somehow to limit access between different companies data, for example using mysql schema (or something another) and not using back-end code?
i heard something, that in postgresql its possible using schema...
but is this possible in mysql? (for example tenant1 cannot view data of tenant2)