Microdeck.tools 100% In-Browser
Schema & Code Converter 100% In-Browser

Convert MySQL CREATE TABLE to Prisma Schema Online

Convert MySQL table definitions with AUTO_INCREMENT and VARCHAR lengths into Prisma schema models.

SQL Dialect:
Target Output:
prisma Output✓ Parsed 1 table (AST transpiler)
model Tags {
  id               Int @id @default(autoincrement())
  slug             String @unique
  created_at       DateTime? @default(now())

  @@map("tags")
}

Did this converter save you time? Completely optional · From $3 — keeps Microdeck fast and free.

ADVERTISEMENT
Privacy-Friendly Sponsor Unit
Contextual tech, developer, & creator tools sponsorship slot. Zero intrusive tracking.

Sample Conversion: MySQL DDL → Prisma Schema

Input (MySQL DDL)
CREATE TABLE categories (
  id INT AUTO_INCREMENT PRIMARY KEY,
  title VARCHAR(100) NOT NULL
);
Output (Prisma Schema)
model Category {
  id    Int    @id @default(autoincrement())
  title String
}

Frequently Asked Questions

Does Prisma support MySQL autoincrement keys?

Yes, INT AUTO_INCREMENT maps directly to Int @id @default(autoincrement()).

Other Popular Database Schema Conversions

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD): Selected: $5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.