JSON input
Paste JSON, optionally name the root type, then generate.
Your Prisma model code will appear here.
Convert JSON into Prisma models. Scalar fields get native types, optional fields get ?, and complex values map to Json for flexibility.
Paste JSON, optionally name the root type, then generate.
Your Prisma model code will appear here.
Prisma schemas are usually written by hand from domain knowledge. When you already have representative JSON, this tool drafts the model for you: scalars get native types, shaky fields become optional, and nested structures land in Json columns.
Treat the output as a starting draft. Confirm the id strategy, decide which Json fields deserve real relations, then run prisma migrate to create the table.