ApiKeys table
The ApiKeys table in the Shipfolio schema has 8 columns, keyed by Id, with 1 foreign key to AspNetUsers.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| UserId | uuid | not null, references AspNetUsers.Id | |
| Prefix | varchar(16) | not null | |
| KeyHash | varchar(64) | not null | |
| CreatedAt | timestamptz | not null | |
| LastUsedAt | timestamptz | ||
| RevokedAt | timestamptz | ||
| CanWrite | boolean | not null |
Indexes (2)
(KeyHash)unique (IX_ApiKeys_KeyHash)(UserId)(IX_ApiKeys_UserId)
Relationships
ApiKeys.UserIdreferencesAspNetUsers.Id