I am developing an application that uses a central user table
for user authentication. After connection i would like each user to have a different schema.
(multi tenant strategy - shared database, different schema)
This lead us to have one model to handle multiple tables with same structure but different name.
i.e BookmarksTable model for ‘Bookmarks_tenantA’ and ‘Bookmarks_tenantB’ tables
I am looking for a way to pass the tenant_id into the initialize model function.
In that way i could initialize - handle each time different table.