REA Prisma schema notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

Prisma schema.prisma files pin ORM model identity. In REA 6.7.x, treat selected datasource / generator / model pins as Evidence beside archive/package routes — complementing cousins without inventing APIs.

Mental model

  1. Authorize the Prisma tree (+ migration/SQL artifacts you hold).
  2. Quote selected provider / generator / model / @@map pins you actually see (never paste DATABASE_URL).
  3. Cousins → drizzle-config · flyway-sql · sqlite-notes.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_prisma_schema API REA never called.

Minimal path

# authorized schema.prisma (+ artifact you hold)
# quote selected datasource / generator / model pins into case notes
# cousins → peer Drizzle / Flyway / SQLite lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_prisma_schema .

Compare

ArtifactHonest posture
schema.prismaORM model identity facts
Drizzle peerrea-drizzle-config
Flyway peerrea-flyway-sql
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote datasource provider, generator client, and model names — not every field unless the case needs it.
  • url = env("DATABASE_URL") is common — never expand or paste the resolved secret.
  • Migrations under prisma/migrations are related Evidence; label them separately from the schema.
  • Generated Prisma Client is a build output — stay on documented package/archive routes.
  • Keep Prisma schema identity distinct from Drizzle schema TS and Flyway SQL versioning in binders.

Scope we will not cover

  • No inventing inspect_prisma_schema / automatic migrate deploy against foreign databases.
  • No credential theft from datasource URLs or shadow DB secrets.
  • No pirate redistribution of proprietary Prisma schemas.
  • No crack framing via Prisma pins.
  • No bypass cookbooks that weaken DB auth via schema edits on foreign systems.

Honest limits

RepoRead documents config literacy — how authorized Prisma trees relate to Evidence — not a full Prisma Migrate course. Prefer upstream Prisma docs for generators and migrations. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-drizzle-config / rea-flyway-sql?

rea-drizzle-config covers Drizzle Kit/config; rea-flyway-sql covers Flyway migrations. This page zooms on Prisma schema identity — it does not overwrite those pages.

Is there inspect_prisma_schema in 6.7.0?

Not assumed. Quote datasource / generator / model pins you actually open, then use documented package/archive lanes. Do not invent inspect_prisma_schema.

Does REA connect to databases or steal DATABASE_URL secrets?

No. Local trees only. Redact connection strings; do not treat REA as Prisma CLI. No credential theft.

How should I label Evidence vs other ORM/migration configs?

Label Evidence by the file present. Keep Prisma separate from rea-drizzle-config, rea-flyway-sql, and rea-sqlite-notes.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources