Skip to content

app.project_measurement_corrections

TableRow level security on

Append-only ledger of every correction, withdrawal and restore of a recorded figure, with the figure before and after and the reason. Who made the change and when are created_by and created_at. Written only by the measurement guard.

Primary key: id

Columns of app.project_measurement_corrections
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.project_measurements on insert; never accepted from the caller and never changed.References app.organizations.id
project_measurement_iduuidNoFigure that changed.References app.project_measurements.id
correction_kindapp.measurement_correction_kindNoCorrected, Withdrawn or Restored.
previous_valuenumericYesValue before the change; NULL when it was Unmeasured.
previous_unit_codetextYesUnit before the change.References private.measurement_units.unit_code
previous_measured_ondateNoDay before the change.
valuenumericYesValue after the change; NULL when Unmeasured.
unit_codetextYesUnit after the change.References private.measurement_units.unit_code
measured_ondateNoDay after the change.
reasontextYesWhy the figure changed; required for a correction.
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.