Contract Authoring
The data contract
What the Prisma ORM data contract is, how PSL and TypeScript authoring produce the same two files, and how the contract drives typing, migrations, and checking your database.
Author in PSL
Learn how to write a Prisma ORM contract in the Prisma schema language, including named types, enums, value objects, relations, and extension types.
Editor support
How the Prisma VS Code extension detects a Prisma ORM contract, what it checks and completes, and how to fix false errors after an upgrade.
Author in TypeScript
How to define a Prisma ORM contract in TypeScript with defineContract, including fields, relations, enums, storage mapping, and extension types.
contract.json and contract.d.ts (/docs/orm/contract-authoring/the-contract-artifact)
Supported database features (/docs/orm/contract-authoring/capabilities)