Base app architecture:
Route groups for customer, staff and owner.
* Reusable design system with around 20 UI components.
* Complete Prisma schema.
* Authentication with email/password and Google.
* Role and permission model.
* Protected routes.
* Clean separation between features, services, components and shared utilities.
883 B
883 B
prisma validate
Validates your Prisma schema file.
Command
prisma validate [options]
What It Does
- Parses the
schema.prismafile - Checks for syntax errors
- Validates model definitions, relations, and types
- Reports any errors or warnings without generating code
Options
| Option | Description |
|---|---|
--schema |
Path to schema file |
--config |
Custom path to your Prisma config file |
Examples
Validate default schema
prisma validate
Validate specific schema
prisma validate --schema=./custom/schema.prisma
Use in CI
Run validate in your CI pipeline to catch schema errors early:
- name: Validate Schema
run: npx prisma validate
Common Errors
- Missing
@relationfields - Invalid types
- Duplicate model names
- Syntax errors (missing braces, etc.)