Skip to main content

Interface: AuditLogEntry

Defined in: src/audit/AuditMetadata.ts:28

A single row written to the audit changelog table for every tracked mutation.

Properties​

id?​

optional id?: number

Defined in: src/audit/AuditMetadata.ts:30

Auto-incremented primary key (populated after insert).


entity_name​

entity_name: string

Defined in: src/audit/AuditMetadata.ts:32

The entity/table name being audited (e.g. 'Account').


entity_key​

entity_key: string

Defined in: src/audit/AuditMetadata.ts:34

JSON-serialized primary key of the affected row.


operation​

operation: "UPDATE" | "INSERT" | "DELETE"

Defined in: src/audit/AuditMetadata.ts:36

The type of database operation performed.


old_values?​

optional old_values?: string | null

Defined in: src/audit/AuditMetadata.ts:38

Snapshot of field values before the mutation (UPDATE / DELETE only).


new_values?​

optional new_values?: string | null

Defined in: src/audit/AuditMetadata.ts:40

Snapshot of field values after the mutation (INSERT / UPDATE only).


changed_by?​

optional changed_by?: string | null

Defined in: src/audit/AuditMetadata.ts:42

context.currentUser at the time of the mutation.


changed_at​

changed_at: Date

Defined in: src/audit/AuditMetadata.ts:44

Timestamp of the mutation (UTC).