Ionize Docs
ReferenceSchemasDatabases

security_audit

Audit log of security-relevant events.

Table security_audit

Audit log of security-relevant events.

Database: ionize

Owner: SDK (all modules)

Columns

ColumnTypeNullableDescription
idUUIDnoPrimary key.
domainTEXTnociam or iam.
identity_idUUIDyesSubject identity (NULL for unauth events).
event_typeTEXTnoEvent type (login.success, lockout.applied, etc.).
source_ipINETyesClient IP.
user_agentTEXTyesBrowser user agent.
metadataJSONBnoEvent-specific data.
created_atTIMESTAMPTZnoEvent time.

Schema owned by SDK (all modules). Migrations live in sdk/src/db.ts.

On this page