DevForge

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.

View on GitHub

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

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✓✓✓

Useful next reads