Why convert JSON to Prisma?
Bootstrapping a Prisma model from an existing API payload or document saves typing. Paste a
sample JSON above and get a model block with aligned fields, ready to paste into
schema.prisma.
How it works
Strings map to String, integers to Int, floats to Float, booleans to Boolean.
Homogeneous scalar arrays become native lists like String[] (PostgreSQL), anything else
becomes Json. Field names are camelCased with @map pointing back to the original key,
and the Root name option sets the model name. Because every Prisma model requires an
identifier, an existing scalar id field is marked @id — otherwise an auto-incremented
id Int @id is added at the top.