Database
The SaaSify Kit uses Prisma as a ORM for database operations. This gives you the flexibility to use any database that is supported by Prisma. For the documentation purpose, we use MongoDB as the database.
Connect to Database
For the app to connect to the database, you need to set the DATABASE_URL
environment variable.
DATABASE_URL=<DATABASE_URL>
Schemas
All the schemas are defined in the prisma/schema.prisma
file. You can add your own schemas to this folder and use it in your applicationโs core logic.
Prisma Studio
You can use the Prisma Studio to view and manage the database data. You can start the Prisma Studio by running the following command.
npx prisma studio