[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/audit](../README) / AuditableOptions

# Interface: AuditableOptions

Defined in: [audit/src/types.ts:77](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/audit/src/types.ts#L77)

Audit configuration. Set these as overridable static fields on a `Auditable`
model — `auditOnly` / `auditExcept` / `auditType` — read per event from the
concrete subclass:

```ts
class User extends Auditable(AuthUser) {
  protected static auditExcept = ["password"];
}
```

## Properties

### only?

> `optional` **only?**: `string`[]

Defined in: [audit/src/types.ts:82](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/audit/src/types.ts#L82)

Allowlist of column names to include in old_values / new_values.
If set, only listed columns are audited. (static `auditOnly`)

***

### except?

> `optional` **except?**: `string`[]

Defined in: [audit/src/types.ts:87](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/audit/src/types.ts#L87)

Denylist of column names to exclude.
Applied after `only` (if both are provided, `only` wins). (static `auditExcept`)

***

### type?

> `optional` **type?**: `string`

Defined in: [audit/src/types.ts:92](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/audit/src/types.ts#L92)

Override the auditable_type string stored in the log.
Defaults to the model's class name. (static `auditType`)
