tane/apps/app_seeds/test/db/schema
vjrj 01fba40ec2 feat(plantare): schema v12 — bilateral signed columns + repo
Adds the deferred bilateral columns to Plantares (plantare-bilateral.md
§"Schema delta"), all nullable/defaulted so v1 local rows coexist
untouched:

- pledgeId (the shared id both parties key their row by), debtorKey /
  creditorKey, debtorSignature / creditorSignature, movementId (the
  shared hand-over Movement for the provenance DAG), remoteState
  (proposed/accepted/declined — the handshake, distinct from status),
  returnKind (similar/workHours/other, default similar) + workHours.

Repo: createPlantare grows optional bilateral params; plantareByPledgeId
looks a row up by the shared id; applyPlantareSignatures counter-stamps
an incoming accept; setPlantareRemoteState records a decline. The
JSON codec carries every new field so they ride backups.

Versioned migration is guarded/idempotent like the others; schema v12
dumped, test helper regenerated, migration test covers v1..v11 → v12.
db + data + services 295/295 green.
2026-07-14 11:21:46 +02:00
..
schema.dart feat(plantare): schema v12 — bilateral signed columns + repo 2026-07-14 11:21:46 +02:00
schema_v1.dart feat(block1): inventory walking skeleton + first quick-add slice 2026-07-07 15:16:14 +02:00
schema_v2.dart feat(inventory): informal quantity scale (number + unit) + seed/plant lots 2026-07-08 10:51:02 +02:00
schema_v3.dart feat(inventory): month/year harvest date picker (schema v3) 2026-07-08 12:09:38 +02:00
schema_v4.dart feat(db): lot presentation + attachment sort order (schema v4→v5) 2026-07-09 11:51:21 +02:00
schema_v5.dart feat(db): lot presentation + attachment sort order (schema v4→v5) 2026-07-09 11:51:21 +02:00
schema_v6.dart feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
schema_v7.dart feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
schema_v8.dart feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
schema_v9.dart feat(plantare): reproduction-commitment data layer (schema v9) 2026-07-11 02:01:25 +02:00
schema_v10.dart feat(sales): local sales/purchase ledger (any currency) 2026-07-11 02:33:42 +02:00
schema_v11.dart feat(offers): asking price on lots, published with sale offers (schema v11) 2026-07-11 08:00:08 +02:00
schema_v12.dart feat(plantare): schema v12 — bilateral signed columns + repo 2026-07-14 11:21:46 +02:00