Migrate Prisma to Drizzle ORM in one command
SchemaForge is an open-source ORM schema converter. It supports 11 formats and 100 documented conversion directions, including Prisma to Drizzle. Review foreign-key constraints and ORM relationship fields after conversion: the shared representation does not retain them.
One-line conversion
Run this from a repo that already has schemaforge installed:
pip install git+https://github.com/Coding-Dev-Tools/schemaforge.git schemaforge convert --from prisma --to drizzle --input schema.prisma
Note: as of this writing, SchemaForge is not published on public PyPI. The working install path is git+https://github.com/Coding-Dev-Tools/schemaforge.git.
What you get
- Drizzle schema output with tables, columns, types, defaults, indexes, unique constraints, and enums preserved by the shared representation.
- Foreign-key constraints and ORM relationship fields require review after conversion because they are not retained by the shared representation.
- Configurable type maps and a
diffcommand for schema drift.
11 formats, one tool
Prisma and Drizzle are two endpoints in the same converter. SchemaForge also handles SQL DDL, TypeORM, Django, SQLAlchemy, Alembic, JSON Schema, GraphQL SDL, EF Core (C#), and Scala case classes. Alembic is output-only, so it can be generated but not parsed back into the shared representation.
SchemaForge at a glance
| Format | Import | Export | Roundtrip |
|---|---|---|---|
| SQL DDL | ✓ | ✓ | ✓ |
| Prisma schema | ✓ | ✓ | ✓ |
| Drizzle schema | ✓ | ✓ | ✓ |
| TypeORM entities | ✓ | ✓ | ✓ |
| Django models | ✓ | ✓ | ✓ |
| SQLAlchemy models | ✓ | ✓ | ✓ |
| Alembic migrations | — | ✓ | — |
| JSON Schema | ✓ | ✓ | ✓ |
| GraphQL SDL | ✓ | ✓ | ✓ |
| EF Core (C#) | ✓ | ✓ | ✓ |
| Scala case class | ✓ | ✓ | ✓ |