DevToolBoxGRATUIT
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

Notez cet outil

4.1 / 5 · 232 avis

Restez informé

Recevez des astuces dev et les nouveaux outils chaque semaine.

Pas de spam. Désabonnez-vous à tout moment.

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.