This is an example project written in TypeScript to run Prisma and Prisma-multi-tenant.
npm installRun the example script:
npm run exampleThen, go to multi-tenancy-example.js, and change the tenant name to "prod":
const name = 'prod'Finally, re-run the script!
This will list the available tenants:
pmt list # or prisma-multi-tenant listThis will open studio for the tenants (dev & prod):
pmt studio dev
pmt studio prodThis will make you create a new tenant:
pmt new