# DeriveOptions.scope property · @imqueue/pg-prisma

Source: https://imqueue.org/api/pg-prisma/latest/pg-prisma.deriveoptions.scope/
Published: 2026-08-28
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-prisma 2.0.0 — generated reference, not hand-written

Access levels and the fields each is scoped by, keyed by MODEL name.

**Signature:**

```typescript
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.

