TokenEvents table

The TokenEvents table in the FitStack - V2 schema has 9 columns, keyed by Id, with 1 foreign key to UserTokens.

Append-only audit of a token lifecycle. Entity base, no audit columns.

Columns (9)

Columns of the TokenEvents table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
TokenIduuidnot null, references UserTokens.IdCASCADE.
EventTypecharacter varying(50)not null
OccurredAttimestamp with time zonenot null
Detailscharacter varying(1000)
EventIpAddresscharacter varying(45)
EventUserAgentcharacter varying(512)
EventDeviceIdcharacter varying(128)
EventCustomClaimscharacter varying(4000)

Indexes (3)

  • (TokenId) (IX_TokenEvents_TokenId)
  • (OccurredAt) (IX_TokenEvents_OccurredAt)
  • (TokenId, EventType) (IX_TokenEvents_TokenId_EventType)

Relationships