Skip to main content

Schema organization

The Prisma schema is a single file at backend/prisma/schema.prisma. It is organized into logical sections with comment dividers:

Schema conventions

Enum definitions

Client

All backend code imports from @prisma/client.

Database provider

Schema as source of truth

schema.prisma is the single source of truth for the database structure. Migration workflow is covered in Transactions and migrations.