OAuthAuthorizationCodes table
The OAuthAuthorizationCodes table in the Shipfolio schema has 10 columns, keyed by Id, with 1 foreign key to OAuthGrants.
Columns (10)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| GrantId | uuid | not null, references OAuthGrants.Id | |
| CodeHash | varchar(64) | not null | |
| RedirectUri | varchar(500) | not null | |
| CodeChallenge | varchar(128) | not null | |
| Scopes | text[] | not null | |
| Resource | varchar(500) | not null | |
| CreatedAt | timestamptz | not null | |
| ExpiresAt | timestamptz | not null | |
| UsedAt | timestamptz |
Indexes (3)
(CodeHash)unique (IX_OAuthAuthorizationCodes_CodeHash)(ExpiresAt)(IX_OAuthAuthorizationCodes_ExpiresAt)(GrantId)(IX_OAuthAuthorizationCodes_GrantId)
Relationships
OAuthAuthorizationCodes.GrantIdreferencesOAuthGrants.Id