AuditColumns interface

Column names in the audit target table.

Signature:

export interface AuditColumns 

Remarks

Every name is required, because the rows are written with raw SQL that quotes these identifiers directly — there is no Prisma model to fall back on. The code generator emits this as AUDIT_CONFIG, so it normally comes from your schema rather than being written by hand.

Properties

Property

Modifiers

Type

Description

action

string

Column holding the action string.

changes

string

Column holding the JSON payload: the record, or the args plus a count.

createdAt

string

Column stamped with the database's now() at insert time.

model

string

Column holding the name of the model that was written.

principal

string

Column holding the JSON actor, as returned by getPrincipal.

recordId

string

Column holding the affected record's id, or 'many' for a bulk write.

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