Ionize Docs
ReferenceSchemasDatabases

locations

Login location history per session.

Table locations

Login location history per session.

Database: ionize

Owner: SDK locations module

Columns

ColumnTypeNullableDescription
idUUIDnoPrimary key.
domainTEXTnociam or iam.
identity_idUUIDnoKratos identity ID.
session_idUUIDyesKratos session ID.
ipINETnoClient IP address (from Caddy's X-Real-IP).
countryTEXTyesGeo-IP country code (best-effort).
cityTEXTyesGeo-IP city (best-effort).
created_atTIMESTAMPTZnoLogin time.

Schema owned by SDK locations module. Migrations live in sdk/src/db.ts.

On this page