Skip to content

app.advance_recipient_tokens

TableRow level security on

Token links that let an advance recipient answer in Gateway without an account (Section 4.4.6). Only SHA-256 hashes of the token and access code are stored; both are shown once. Written only by the advance token RPCs.

Primary key: id

Columns of app.advance_recipient_tokens
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.advance_recipients on insert; never accepted from the caller and never changed.References app.organizations.id
advance_recipient_iduuidNoRecipient the token answers for.References app.advance_recipients.id
recipient_emailtextNoEmail the link was sent to, lower case. A person who signs in with this email, confirmed, may claim the token.
token_hashbyteaNoSHA-256 of the token. Never readable by signed-in callers.
access_code_hashbyteaNoSHA-256 of the token, a colon and the 6-digit access code. Never readable by signed-in callers.
expires_attimestamp with time zoneNoWhen the link stops taking answers.
used_attimestamp with time zoneYesFirst answer submitted with the link.
revoked_attimestamp with time zoneYesWhen the link was revoked; issuing a new link for the recipient revokes the old one.
failed_attemptssmallintNoWrong access codes entered; the link locks at 5.
claimed_byuuidYesPerson who claimed the link by signing in with its email.References app.people.id
claimed_attimestamp with time zoneYesWhen it was claimed.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.