Skip to content

app.account_memberships

TableRow level security on

A person in an external organization's account (Section 4.8.1 Account Membership). Access holds only between valid_from and valid_to. Written only by the account RPCs.

Primary key: id

Columns of app.account_memberships
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoThe external account: an organization in the canonical identity model.References app.organizations.id
person_iduuidNoAccount member.References app.people.id
valid_fromtimestamp with time zoneNoWhen account access starts.
valid_totimestamp with time zoneYesWhen account access ends; NULL while open-ended.
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
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