Overview
Understand the database integration in the boilerplate.
AI Boilerplate uses Prisma as the ORM and MongoDB as the database.
Prisma
Prisma provides type-safe database access, automatic migrations, and a visual admin panel. It sits between your application code and MongoDB, generating a fully typed client from your schema.
MongoDB
MongoDB is a document database that stores data in flexible, JSON-like documents. It's well-suited for rapid prototyping and scales horizontally as your application grows.
Schema
The database schema is defined using Prisma in packages/db/prisma/schema.prisma.
This file contains the models that define the database tables and their relationships.
Read more about the schema in the Architecture section.
Prisma Studio
Run Prisma Studio to browse and edit data visually:
pnpm dev --filter @package/dbPrisma Studio can be accessed at http://localhost:5555. It will also start automatically with pnpm dev.