Prisma Schema
Overview of Prisma Schema (Prisma ORM v7)
Data sources (Prisma ORM v7)
Generators (Prisma ORM v7)
Schema location (Prisma ORM v7)
Models
Learn about the concepts for building your data model with Prisma: Models, scalar types, enums, attributes, functions, IDs, default values and more. Applies to Prisma ORM v7.
Relations (Prisma ORM v7)
One-to-one relations (Prisma ORM v7)
One-to-many relations (Prisma ORM v7)
Many-to-many relations (Prisma ORM v7)
Self-relations (Prisma ORM v7)
Referential actions
Circular references or multiple cascade paths can cause validation errors on Microsoft SQL Server and MongoDB. Since the database does not handle these situations out of the box, learn how to solve this problem. Applies to Prisma ORM v7.
Relation mode
Manage relations between records with relation modes in Prisma. Applies to Prisma ORM v7.
Troubleshooting relations (Prisma ORM v7)
Database mapping (Prisma ORM v7)
Indexes (Prisma ORM v7)
Views (Prisma ORM v7)
Multi-schema (Prisma ORM v7)
External tables (Prisma ORM v7)
Table inheritance (Prisma ORM v7)
Unsupported database features (Prisma Schema) (Prisma ORM v7)
What is introspection? (Prisma ORM v7)
PostgreSQL extensions (Prisma ORM v7)