mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 16:12:11 +00:00
Rows pushed in through a `measurements:write` Bearer token are attributed `MANUAL` today, so afterwards nobody can tell which readings came off the scale and which were typed by hand. Give that write surface its own `MeasurementSource` value, the way 0189 did for TELEGRAM and 0207 did for MCP. Enum extension only: purely additive, no row touched, `IF NOT EXISTS` makes a rerun safe, and the value is not USED in the migration so Postgres' same-transaction restriction does not bite. Declared last in the datamodel so the Prisma member order and the physical order stay identical. No backfill, and none is possible — `measurements` carries no actor or token column, so a bridge-written MANUAL row is byte-identical to a typed one. Existing rows stay MANUAL.