Skip to content

Latest commit

History

History

basic-js

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

Basic example (JS) for Prisma-multi-tenant

This is an example project written in JavaScript to run Prisma and Prisma-multi-tenant.

Installation

npm install

Run the example script:

npm run example

Then, go to multi-tenancy-example.ts, and change the tenant name to "prod":

const name = 'prod'

Finally, re-run the script!

Commands you can try

This will list the available tenants:

pmt list # or prisma-multi-tenant list

This will open studio for the tenants (dev & prod):

pmt studio dev
pmt studio prod

This will make you create a new tenant:

pmt new