Saltar al contenido

app.project_measurements

TablaSeguridad a nivel de fila activa

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.

Clave primaria: id

Columnas de app.project_measurements
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
project_iduuidNoProject measured.Hace referencia a app.projects.id
metric_codetextNoMetric measured (app.measurement_metrics); earned media figures are not entered here but come from app.earned_media_items.Hace referencia a 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.
valuenumericSíThe figure in unit_code; NULL when it was not measured (Unmeasured), never zero for a missing figure.
unit_codetextSíUnit of the figure, of the metric's dimension; required when value is set.Hace referencia a private.measurement_units.unit_code
sourceapp.measurement_sourceNoManual, Import or Integration.
source_referencetextSíWhat the figure came from, such as a hauler's invoice, a meter reading or a file name.
source_uritextSíLink to the source, an http(s) URL or a URN.
notetextSíNote on the figure.
correction_reasontextSíWhy 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_byuuidSíPerson who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidSíPerson who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.