Multi tenant Crud



I am trying to build a multi tenant Crud system with Sylius 1.2

My Structure would be like

1 Master DB , with common data and Login info for the Tenant DB’s

Multiple Tenant Db with tenant related info like users and other info

Since the Sylius Resource cannot switch databases or fetch data from master for read and do crud in the tenant db .

Can you please guide me in how we can achieve the same?