Saltar al contenido

app.project_measurement_corrections

TablaSeguridad a nivel de fila activa

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.

Clave primaria: id

Columnas de app.project_measurement_corrections
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.project_measurements on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
project_measurement_iduuidNoFigure that changed.Hace referencia a app.project_measurements.id
correction_kindapp.measurement_correction_kindNoCorrected, Withdrawn or Restored.
previous_valuenumericSíValue before the change; NULL when it was Unmeasured.
previous_unit_codetextSíUnit before the change.Hace referencia a private.measurement_units.unit_code
previous_measured_ondateNoDay before the change.
valuenumericSíValue after the change; NULL when Unmeasured.
unit_codetextSíUnit after the change.Hace referencia a private.measurement_units.unit_code
measured_ondateNoDay after the change.
reasontextSíWhy the figure changed; required for a correction.
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.