OAuthAuthorizationCodes table

The OAuthAuthorizationCodes table in the Shipfolio schema has 10 columns, keyed by Id, with 1 foreign key to OAuthGrants.

Columns (10)

Columns of the OAuthAuthorizationCodes table
ColumnTypeConstraintsDescription
Iduuidprimary key
GrantIduuidnot null, references OAuthGrants.Id
CodeHashvarchar(64)not null
RedirectUrivarchar(500)not null
CodeChallengevarchar(128)not null
Scopestext[]not null
Resourcevarchar(500)not null
CreatedAttimestamptznot null
ExpiresAttimestamptznot null
UsedAttimestamptz

Indexes (3)

  • (CodeHash) unique (IX_OAuthAuthorizationCodes_CodeHash)
  • (ExpiresAt) (IX_OAuthAuthorizationCodes_ExpiresAt)
  • (GrantId) (IX_OAuthAuthorizationCodes_GrantId)

Relationships