pgAuditEventsTable
function pgAuditEventsTable(name?, opts?): DrizzleEventsTable;Defined in: src/drizzle/pg.ts:105
Build the events table: PRIMARY KEY (tenant, seq), UNIQUE (tenant, id)
and (tenant, occurred_at, id) / (tenant, actor_id, …) / (tenant, action, …) indexes. The name defaults to "xtandard_audit_events". id, action
and occurred_at are text COLLATE "C" (the kit’s textC): bytewise
ordering and LIKE prefixes, so (occurred_at, id) sorts exactly like the
in-memory matcher whatever the database’s default collation.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
name? |
string |
"xtandard_audit_events" |
opts? |
PgAuditEventTablesOptions |
undefined |