AuditOptions interface

Everything audit() needs to build its extension.

Signature:

export interface AuditOptions 

Properties

Property

Modifiers

Type

Description

client

PrismaClient

The UNEXTENDED Prisma client, used to write the audit rows.

config

AuditConfig

Where the trail goes and what its columns are called.

getPrincipal

() => unknown

Resolves the actor to record, or a falsy value to record none.

models

ReadonlySet<string>

Models whose writes are recorded to the audit log.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.