DomainAuditEntry
Defined in: js-api/src/domains.ts:147
Wire shape of _audit rows (repository.dart rowAudit/tableAudit/schemaAudit selects).
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
actor_id | string | null | The user who wrote; null for the system. | js-api/src/domains.ts:159 |
after | any | Column-value map after the write; null on 'delete' ops (typed any — see before). | js-api/src/domains.ts:170 |
before | any | Column-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 |
id | number | Audit 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 | null | The row written; present on table- and schema-wide audits. | js-api/src/domains.ts:153 |
session_id | string | null | The session the write came through. | js-api/src/domains.ts:161 |
source | string | Where the write came from ('api', a package, a job). | js-api/src/domains.ts:163 |
table_id? | string | null | The table written; present on schema audits ('ddl' rows carry null). | js-api/src/domains.ts:155 |
ts | string | When the write happened (ISO 8601). | js-api/src/domains.ts:165 |
tx_id | number | null | PG transaction id grouping multi-op writes (bigint). | js-api/src/domains.ts:151 |