SQL ↔ Prisma Converter

Translate database DDL statements into Prisma schema models or generate SQL CREATE TABLE tables from Prisma schemas.

Presets:

SQL DDL Input (postgresql)

Prisma Schema Output

Frequently Asked Questions

Which SQL dialects are supported for Prisma schema generation?

PostgreSQL, MySQL, SQLite, and Microsoft SQL Server (MSSQL) DDL CREATE TABLE statements are supported, including primary keys, foreign key constraints, default timestamps, and nullable fields.

Can this tool convert Prisma schemas back into raw SQL CREATE TABLE statements?

Yes. Use the Swap toggle button or select Prisma-to-SQL mode to generate equivalent DDL SQL schemas from standard Prisma model definitions.

Are my database schemas stored or transmitted across the web?

No. The entire AST generation and regex lexical tokenizer run directly inside your local browser runtime.