DeriveOptions.scope property
Access levels and the fields each is scoped by, keyed by MODEL name.
Signature:
scope?: Record<string, Record<string, string[]>>;
Remarks
Declared here rather than in the schema because Prisma Next has no schema-level annotation to carry it — the /// @scope(...) doc comment the Prisma 7 generator read does not survive into the contract. A model named here that the contract does not define is a throw rather than a silent no-op: a typo would otherwise leave that model unscoped, which is the failure direction that leaks rows.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.