RefreshTokens table
The RefreshTokens 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 | |
| TokenHash | varchar(64) | not null | |
| FamilyId | uuid | not null | |
| CreatedAt | timestamptz | not null | |
| ExpiresAt | timestamptz | not null | |
| RevokedAt | timestamptz | ||
| ReplacedByTokenId | uuid |
Indexes (3)
(FamilyId)(IX_RefreshTokens_FamilyId)(TokenHash)unique (IX_RefreshTokens_TokenHash)(UserId)(IX_RefreshTokens_UserId)
Relationships
RefreshTokens.UserIdreferencesAspNetUsers.Id