Skip to content

app.inspection_results

TableRow level security on

One result per template item of an inspection, from the canon Inspection Result enumeration. Results freeze at sign-off.

Primary key: id

Columns of app.inspection_results
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.inspections on insert; never accepted from the caller and never changed.References app.organizations.id
inspection_iduuidNoInspection.References app.inspections.id
inspection_item_iduuidNoItem of the inspection's template.References app.inspection_items.id
result_enum_idtextNoResult: a row of the canon Inspection Result enumeration.References xpms.std_enumeration.record_id
notetextYesFinding.
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
photo_uritextYesObject name of the finding's photo in the field-media bucket: <org_id>/inspections/<inspection_id>/<file name>.
project_iduuidNoProject of the inspection, maintained by the database from the inspection so Compass sync can scope results by project. Never accepted from the caller.References app.projects.id