Skip to content

app.record_external_visibility

TableRow level security on

Which external role types or named parties may see a record (Section 7.4 external_visibility), one row each. No rows means the record is internal only. External reach itself is granted through engagements (Section 8.7).

Primary key: id

Columns of app.record_external_visibility
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.records on insert; never accepted from the caller and never changed.References app.organizations.id
record_iduuidNoRecord shown externally.References app.records.id
external_role_typeapp.external_role_typeYesExternal role type that may see the record, for example Client.
person_iduuidYesNamed external person who may see the record.References app.people.id
organization_iduuidYesNamed external organization whose engaged people may see the record.References app.organizations.id
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