Interface: AuditLogEntry
Defined in: src/audit/AuditMetadata.ts:28
A single row written to the audit changelog table for every tracked mutation.
Properties
id?
optionalid?: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?
optionalold_values?:string|null
Defined in: src/audit/AuditMetadata.ts:38
Snapshot of field values before the mutation (UPDATE / DELETE only).
new_values?
optionalnew_values?:string|null
Defined in: src/audit/AuditMetadata.ts:40
Snapshot of field values after the mutation (INSERT / UPDATE only).
changed_by?
optionalchanged_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).