OAuthRefreshTokens table
The OAuthRefreshTokens table in the Shipfolio schema has 8 columns, keyed by Id, with 1 foreign key to OAuthGrants.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| GrantId | uuid | not null, references OAuthGrants.Id | |
| TokenHash | varchar(64) | not null | |
| Scopes | text[] | not null | |
| CreatedAt | timestamptz | not null | |
| ExpiresAt | timestamptz | not null | |
| RotatedAt | timestamptz | ||
| RevokedAt | timestamptz |
Indexes (3)
(ExpiresAt)(IX_OAuthRefreshTokens_ExpiresAt)(GrantId)(IX_OAuthRefreshTokens_GrantId)(TokenHash)unique (IX_OAuthRefreshTokens_TokenHash)
Relationships
OAuthRefreshTokens.GrantIdreferencesOAuthGrants.Id