Skip to content

app.invites

TableRow level security on

Invitation of an email address to an org with a role and expiry (Section 4.8.1). Only a SHA-256 hash of the token is stored; the token is shown once.

Primary key: id

Columns of app.invites
ColumnTypeNullableDescription
iduuidNoInvite id.
org_iduuidNoOrg the invite joins.References app.organizations.id
emailtextNoLowercased email the invite is for. Acceptance requires a confirmed sign-in with this email.
role_iduuidNoRole granted on acceptance: a system role or a custom role of the org.References app.roles.id
token_hashbyteaNoSHA-256 of the invite token.
expires_attimestamp with time zoneNoAfter this time the invite cannot be accepted.
invited_byuuidNoPerson who issued the invite and is accountable for the role it grants.References app.people.id
partner_bootstrapbooleanNoTrue for the first Owner invite a partner issues when it creates a client org (Section 4.6.1).
failed_attemptssmallintNoAcceptance attempts with this token by a sign-in whose email did not match. The token locks at 5.
accepted_attimestamp with time zoneYesWhen the invite was accepted.
accepted_person_iduuidYesPerson who accepted.References app.people.id
revoked_attimestamp with time zoneYesWhen the invite was revoked.
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.