Prisma to SQL Converter
Generate SQL from Prisma schema
Source Input
Processed Output
What is the Prisma to SQL Converter?
This tool performs the reverse mapping of Prisma's generator: Prisma String → VARCHAR(191), Int → INT, DateTime → TIMESTAMP, and attributes like @id, @unique, @default map back to SQL constraints.
Frequently Asked Questions (FAQ)
Q: Which SQL dialect is generated?
MySQL-flavored SQL is generated by default. Types like VARCHAR(191) can be adjusted for Postgres or SQLite with minor edits.
How to Use the Prisma to SQL Converter
- 1Paste your input into the editor above — or start from the preloaded example.
- 2Adjust any options, then click Run to process instantly in your browser.
- 3Review the output panel, then copy, download, or save it as a reusable snippet.