Skip to content

app.project_measurements

TableRow level security on

Figures measured on a project (Section 4.10): waste, energy, water and transport, audience and sentiment, each per metric, day and source. A NULL value is a figure that was not measured and reports show it as Unmeasured, never as zero. Corrections of the value, unit or day need a reason and are written to app.project_measurement_corrections. Who recorded a figure and when are created_by and created_at.

Primary key: id

Columns of app.project_measurements
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 measured.References app.projects.id
metric_codetextNoMetric measured (app.measurement_metrics); earned media figures are not entered here but come from app.earned_media_items.References private.measurement_metrics.metric_code
measured_ondateNoDay the figure covers, on the project's calendar (private.project_today when not given); never after today there.
valuenumericYesThe figure in unit_code; NULL when it was not measured (Unmeasured), never zero for a missing figure.
unit_codetextYesUnit of the figure, of the metric's dimension; required when value is set.References private.measurement_units.unit_code
sourceapp.measurement_sourceNoManual, Import or Integration.
source_referencetextYesWhat the figure came from, such as a hauler's invoice, a meter reading or a file name.
source_uritextYesLink to the source, an http(s) URL or a URN.
notetextYesNote on the figure.
correction_reasontextYesWhy a correction is made: required when the value, unit or day changes, written to the correction ledger with the change, and never stored on the row.
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.