DDL
CREATE TABLE users (id INT PRIMARY KEY AUTO_INCREMENT, email VARCHAR(255) NOT NULL UNIQUE);
Prisma
model Users {
id Int @id @default(autoincrement())
email String @unique
}Data Tools
Convert CREATE TABLE DDL into Prisma models in your browser. Common column types plus primary key, autoincrement, and unique markers are recognized. Processing stays local—useful for bootstrapping a schema from an existing database.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
数据格式
Convert CREATE TABLE DDL into Prisma models in your browser. Common column types plus primary key, autoincrement, and unique markers are recognized. Processing stays local—useful for bootstrapping a schema from an existing database.
等待转换
DDL
CREATE TABLE users (id INT PRIMARY KEY AUTO_INCREMENT, email VARCHAR(255) NOT NULL UNIQUE);
Prisma
model Users {
id Int @id @default(autoincrement())
email String @unique
}Parsing is lightweight and regex-based. Column definitions and common primary/autoincrement/unique markers are covered; standalone FOREIGN KEY lines may be skipped.
Names are converted toward Prisma-style camelCase, with @map / @@map keeping the original SQL names.
Tools
Continue with another translated tool for a nearby task.
CSV to SQL Insert
Turn headered CSV into INSERT statements in your browser. Set table name, quote style, empty-value handling, and batch size. Conversion stays local—useful for seed data and bulk-import prep.
JSON to Zod Schema
Infer a Zod schema from sample JSON in your browser and emit TypeScript validation code. Nested objects and arrays are supported, with optional strict mode and z.infer type export—useful for API validation work.
JSON to TypeScript Interface
Infer TypeScript interface definitions from JSON in your browser. Nested objects become separate interfaces, with options for the root name, optional fields, readonly, export, and type aliases.