DevToolBoxGRATIS
Blog

SQL to Prisma Schema Converter — Generate Prisma Models

Convert SQL CREATE TABLE statements to Prisma schema models with proper types, relations, indexes, and default values. Supports MySQL and PostgreSQL.

What is SQL to Prisma?

SQL to Prisma converts existing SQL database schemas into Prisma schema format, making it easy to adopt Prisma ORM in TypeScript/Node.js projects.

𝕏 Twitterin LinkedIn

Califica esta herramienta

4.1 / 5 · 232 calificaciones

Mantente actualizado

Recibe consejos de desarrollo y nuevas herramientas.

Sin spam. Cancela cuando quieras.

Enjoy these free tools?

Buy Me a Coffee

How to Use

  1. Paste SQL CREATE TABLE statements
  2. Select SQL dialect (MySQL/PostgreSQL)
  3. Review generated Prisma schema
  4. Copy the schema

Use Cases

  • Migrating to Prisma ORM
  • Reverse-engineering databases
  • Learning Prisma schema syntax
  • Database documentation

FAQ

What SQL dialects are supported?
MySQL and PostgreSQL CREATE TABLE syntax.
Does it handle foreign keys?
Yes, foreign key constraints are converted to Prisma @relation directives.