Skip to content

app.inspections

TableRow level security on

Inspections performed on a project from a template. Sign-off needs safety.inspection.sign_off and is never by the inspector.

Primary key: id

Columns of app.inspections
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.References app.organizations.id
project_iduuidNoProject.References app.projects.id
inspection_template_iduuidNoTemplate used.References app.inspection_templates.id
record_iduuidYesInspection record of the same project, when one tracks it.References app.records.id
inspector_person_iduuidYesInspector, from the session.References app.people.id
inspected_attimestamp with time zoneNoWhen the inspection took place.
signed_off_byuuidYesWho signed it off.References app.people.id
signed_off_attimestamp with time zoneYesWhen.
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
uridtextYesURID category the inspection covers (dimension 2), for example 5000.06.01.References xpms.dim_category.cat_urid