Skip to main content

DomainAuditEntry

Defined in: js-api/src/domains.ts:150

Wire shape of _audit rows (repository.dart rowAudit/tableAudit/schemaAudit selects).

Properties​

PropertyTypeDescriptionDefined in
actor_idstring | nullThe user who wrote; null for the system.js-api/src/domains.ts:162
afteranyColumn-value map after the write; null on 'delete' ops (typed any — see before).js-api/src/domains.ts:173
beforeanyColumn-value map before the write; null on 'insert' ops (typed any so existing unguarded consumers compile — guard before dereferencing).js-api/src/domains.ts:171
idnumberAudit sequence number (domain_audit.id bigint — a wire number, not a uuid).js-api/src/domains.ts:152
op"delete" | "insert" | "update" | "undelete" | "promote" | "ddl"What the write did.js-api/src/domains.ts:160
row_id?string | nullThe row written; present on table- and schema-wide audits.js-api/src/domains.ts:156
session_idstring | nullThe session the write came through.js-api/src/domains.ts:164
sourcestringWhere the write came from ('api', a package, a job).js-api/src/domains.ts:166
table_id?string | nullThe table written; present on schema audits ('ddl' rows carry null).js-api/src/domains.ts:158
tsstringWhen the write happened (ISO 8601).js-api/src/domains.ts:168
tx_idnumber | nullPG transaction id grouping multi-op writes (bigint).js-api/src/domains.ts:154