OAuthGrants table
The OAuthGrants table in the Shipfolio schema has 7 columns, keyed by Id, with 2 foreign keys to AspNetUsers and OAuthClients. 2 columns in OAuthAuthorizationCodes and OAuthRefreshTokens reference it.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| UserId | uuid | not null, references AspNetUsers.Id | |
| ClientId | uuid | not null, references OAuthClients.Id | |
| Scopes | text[] | not null | |
| CreatedAt | timestamptz | not null | |
| LastUsedAt | timestamptz | ||
| RevokedAt | timestamptz |
Indexes (1)
(ClientId)(IX_OAuthGrants_ClientId)
Relationships
OAuthGrants.UserIdreferencesAspNetUsers.IdOAuthGrants.ClientIdreferencesOAuthClients.IdOAuthAuthorizationCodes.GrantIdreferencesOAuthGrantsOAuthRefreshTokens.GrantIdreferencesOAuthGrants