ApiKeys table

The ApiKeys table in the Shipfolio schema has 8 columns, keyed by Id, with 1 foreign key to AspNetUsers.

Columns (8)

Columns of the ApiKeys table
ColumnTypeConstraintsDescription
Iduuidprimary key
UserIduuidnot null, references AspNetUsers.Id
Prefixvarchar(16)not null
KeyHashvarchar(64)not null
CreatedAttimestamptznot null
LastUsedAttimestamptz
RevokedAttimestamptz
CanWritebooleannot null

Indexes (2)

  • (KeyHash) unique (IX_ApiKeys_KeyHash)
  • (UserId) (IX_ApiKeys_UserId)

Relationships