Tested tool guide
Tested browser tools
Checked August 16, 2026
What Prisma Schema Editor does, with a checked example
Prisma schemas are hand-written text, and the errors that hurt live in the relations between models, not in the syntax. This tool parses the Prisma Schema Language (PSL), highlights syntax as you type, and validates models the way prisma validate does, flagging broken relations, missing ids, and mismatched field types before you ever run a migration. It also draws the data model as a diagram of model boxes and relation edges. The surprise for most users: every relation must be declared on both models. Listing the foreign key on one model and nothing on the other is a validation error, not an omission the tool will fill in.
Worked example
A concrete input and expected output from the current implementation.
Input
datasource db {
provider = "postgresql"
url = "postgresql://user:pass@localhost:5432/mydb"
}
model User {
id Int @id @default(autoincrement())
}
model Post {
id Int @id @default(autoincrement())
authorId Int
author User @relation(fields: [authorId], references: [id])
} ->
Expected output
Validation reports an error: "The relation field `author` on model `Post` is missing an opposite relation field on the model `User`." Both models render in the diagram, but the relation edge between them is flagged as invalid rather than drawn as a resolved connection.
Prisma requires every relation to be declared on both participating models: one side carries the foreign key (`author` with `fields: [authorId]`), and the other must declare the matching list field (`posts Post[]`). With only one side declared, the relation cannot be resolved, so validation rejects the schema.