Skip to content
masterclass Buddy

Prisma · Concept

mode

The Prisma schema is the main configuration file for Prisma ORM. It declares data sources, generated clients, and the models and relations that describe application data.

Last updated

Syntax

datasource <name> {
  provider = "<database>"
}

generator <name> {
  provider = "<generator>"
}

model <Name> {
  <field> <Type> [attributes]
}

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Data sources
  • Generators
  • Data model definition
  • Prisma Schema Language
  • Prisma Client
  • prisma format
  • schema.prisma

Source: Prisma schema (Prisma ORM v6) | Prisma Documentation. Checked 2026-11-03.