SQL to Prisma Schema
v1.0.2Convert SQL DDL CREATE TABLE statements to Prisma schema model definitions.
Converts SQL DDL CREATE TABLE statements to Prisma schema model definitions — maps column types, primary keys, foreign keys, and unique constraints to Prisma model syntax.
How to use- →Paste a CREATE TABLE SQL statement to get the equivalent Prisma model.
- →Relations derived from FOREIGN KEY constraints are mapped to Prisma @relation fields.
- →Review the output and add @db. type annotations for database-specific precision settings.