# AuditColumns interface · @imqueue/pg-prisma

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

Column names in the audit target table.

**Signature:**

```typescript
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](https://imqueue.org/api/pg-prisma/latest/pg-prisma.auditcolumns.action/) |  | string | Column holding the action string. |
| [changes](https://imqueue.org/api/pg-prisma/latest/pg-prisma.auditcolumns.changes/) |  | string | Column holding the JSON payload: the record, or the args plus a count. |
| [createdAt](https://imqueue.org/api/pg-prisma/latest/pg-prisma.auditcolumns.createdat/) |  | string | Column stamped with the database's `now()` at insert time. |
| [model](https://imqueue.org/api/pg-prisma/latest/pg-prisma.auditcolumns.model/) |  | string | Column holding the name of the model that was written. |
| [principal](https://imqueue.org/api/pg-prisma/latest/pg-prisma.auditcolumns.principal/) |  | string | Column holding the JSON actor, as returned by `getPrincipal`. |
| [recordId](https://imqueue.org/api/pg-prisma/latest/pg-prisma.auditcolumns.recordid/) |  | string | Column holding the affected record's `id`, or `'many'` for a bulk write. |

