What problem does it solve?
Provides a single source of truth for your database structure and removes the friction and inconsistencies of manually defining models, relations, and connection settings across environments.
Core Features & Use Cases
- Datasource and Generator Configuration: configure the database provider and client generator to produce a typed client for your application.
- Model, Enum, and Relation Definitions: define models, fields, indexes, composite keys, enums, and relation patterns for one-to-many, one-to-one, many-to-many, and self-relations.
- Validation, Formatting, and Migration Workflow: validate and format schemas, generate clients, and apply migrations or push schema changes for rapid prototyping and production deployments.
- Use Case: initialize Prisma in a new project, add or modify models and relations for a feature, and prepare migration-ready schema changes for the database.
Quick Start
Open or create prisma/schema.prisma, set the datasource provider and connection string, define your models and run the Prisma CLI to validate and apply migrations.