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.
SubscribeRelated
Data sourcesGeneratorsData model definitionPrisma Schema LanguagePrisma Clientprisma formatschema.prisma