Skip to main content

DomainAuditEntry

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

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:159
afteranyColumn-value map after the write; null on 'delete' ops (typed any — see before).js-api/src/domains.ts:170
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:168
idnumberAudit sequence number (domain_audit.id bigint — a wire number, not a uuid).js-api/src/domains.ts:149
op"delete" | "insert" | "update" | "undelete" | "promote" | "ddl"What the write did.js-api/src/domains.ts:157
row_id?string | nullThe row written; present on table- and schema-wide audits.js-api/src/domains.ts:153
session_idstring | nullThe session the write came through.js-api/src/domains.ts:161
sourcestringWhere the write came from ('api', a package, a job).js-api/src/domains.ts:163
table_id?string | nullThe table written; present on schema audits ('ddl' rows carry null).js-api/src/domains.ts:155
tsstringWhen the write happened (ISO 8601).js-api/src/domains.ts:165
tx_idnumber | nullPG transaction id grouping multi-op writes (bigint).js-api/src/domains.ts:151