canopy-wic Data Model

For a contributor or maintainer reading the WIC schema: the tables below are the schema in effect after the migrations listed at the end, applied in order. Endpoint detail is on the canopy-wic API page; the shared event_outbox / event_inbox pair is described once on the data-models index. Source: migrations/.

Tables

Table Purpose

wic_participants

The certification record (7 CFR 246.7): each row is written for one approving determination, which it names, and a person holds at most one current row. determination_id (NOT NULL, UNIQUE wic_participants_determination_key) names the determination that granted it; application_id, household_id (both NOT NULL) and person_id are that determination’s, by the composite foreign key under Relationships. participant_category CHECK ∈ {pregnant, postpartum, breastfeeding, infant, child}; certification_start / certification_end bound the certification period (246.7(g)); food_package CHECK ∈ {I, II, III, IV, V, VI, VII} (246.10(e); the service assigns I/II/IV/V/VI/VII — Package III needs a qualifying-condition input canopy lacks); status CHECK ∈ {active, temporary, expired, terminated, superseded} (wic_participants_status_check, the tokens of WicCertificationStatus), of which active and temporary are current, and wic_participants_one_current_per_person refuses a second current row for a person. superseded_by (nullable, UNIQUE wic_participants_superseded_by_key) names the successor row; wic_participants_supersession_check requires it to be set exactly when status = 'superseded' and never to the row’s own id. Minted by POST /v1/determine only when every gate of an evaluation passes (an income_reassessment mints none, #2445): the approving determination inserts an active row and, in the same transaction, supersedes the person’s current row, which keeps its certification_end. homeless BOOLEAN NOT NULL, with no default (#2390): whether the certified person is a homeless individual (7 CFR 246.2), as the granting request stated it; it selects the lead of the advance notice of expiration. The certification lifecycle (#2390; the lifecycle sweep) adds three pairs of columns, each with its CHECK:

* expired_at TIMESTAMPTZ, the pass instant the sweep expired the row; wic_participants_expired_at_check requires it exactly when status = 'expired'. * expiration_notice_staged_on DATE and expiration_notice_event_id UUID, the legal day the sweep staged the 7 CFR 246.7(j)(8) advance notice of expiration and that wic.expiration_notice_due envelope’s id, stamped together (wic_participants_expiration_notice_staged_check); the id is the letter’s correlation key and is unique (wic_participants_expiration_notice_event_key). * expiration_notice_dispatched_at TIMESTAMPTZ and expiration_notice_dispatched_date DATE, the notice.dispatched evidence for that letter, stamped together (wic_participants_expiration_notice_dispatched_check) and only on a row whose notice was staged (wic_participants_expiration_notice_dispatch_staged_check).

Mid-certification termination (#2391) adds termination_id UUID and terminated_on DATE, the termination that ended the row and its first day not certified. wic_participants_terminated_check (a named CHECK) requires termination_id exactly when status = 'terminated', wic_participants_terminated_on_check sets terminated_on exactly with it, and wic_participants_termination_fkey holds the termination to this row (Relationships). wic_participants_subject_key is UNIQUE (id, person_id, household_id), the target of a termination’s record key.

canopy-wic writes expired and, when it enacts a scheduled termination, terminated (#3387) from the lifecycle sweep; it writes no temporary row until #2393, and breastfeeding cessation (#2392) is not built; the demo seed writes prior-period rows expired, with an expired_at the day after their end.

wic_termination_cohorts

One worker’s scheduling of a household’s mid-certification terminations from one income reassessment run (#2391; the termination routes): id, household_id, idempotency_key (UNIQUE wic_termination_cohorts_idempotency_key, non-empty; the request body’s key, whose violation canopy-wic maps by name to a replay), reason_code (non-empty), requested_effective_on (nullable), reassessment_determination_ids UUID[] (the request’s ids, sorted, non-empty: with the household, reason and requested date, the identity a replay compares), the run’s tuple reassessment_application_id / reassessment_effective_date / reassessment_created_at, scheduled_by TEXT NOT NULL (non-empty: the worker’s OIDC subject; the route is user-only), created_at.

wic_participant_terminations

One participant’s mid-certification termination (#2391). id (WicTerminationId), cohort_id (FK → wic_termination_cohorts), participant_id, person_id, household_id, reassessment_determination_id and reassessment_application_id: the record and its reassessment are the same person’s in the same household by construction (Relationships). reason_code, basis and policy_version (non-empty: the pack reason, its 7 CFR 246.7(h) basis and the pack’s [meta].version), effective_on (the first day not certified), required_advance_days (the pack’s notice lead when scheduled, CHECK 15..366). status CHECK ∈ {scheduled, cancelled, enacted, reversed} (wic_participant_terminations_status_check). enacted_at and record_status_before (the record's status when it was enacted, CHECK ∈ {active, temporary}) are set exactly when enacted or reversed (wic_participant_terminations_enacted_check). reversed_at and reversal_outcome (CHECK ∈ {restored, nothing_to_restore}: what the reversal did to the record) are set exactly when reversed (wic_participant_terminations_reversed_check). cancel_reason CHECK ∈ {worker, superseded, expired, expires_first, appeal_reversed}, cancelled_at, and one actor, cancelled_by (a worker’s subject) or cancelled_by_service (canopy-wic, or canopy-appeals for appeal_reversed), never both (wic_participant_terminations_one_actor_check). wic_participant_terminations_cancelled_check sets the instant, the reason and exactly one actor exactly when cancelled; wic_participant_terminations_worker_check makes a worker cancel exactly the one with cancelled_by. The actors are stored, not exposed. created_at, updated_at.

wic_termination_notices

Each 7 CFR 246.7(j)(6) letter of a termination (#2391): source_event_id (PK: the letter’s wic.termination_scheduled envelope id, canopy-notices' correlation key), termination_id (FK → wic_participant_terminations), effective_on (the date it prints), replaces_effective_date (on a replacement, the date the closed letter printed), staged_on, created_at. The dispatch evidence, stamped once by the notice.dispatched consumer: notice_id, notice_date and the dispatched_at / dispatched_date pair, together (wic_termination_notices_dispatched_check), and noticed_effective_date only with them (wic_termination_notices_noticed_effective_check). superseded_at closes the letter; wic_termination_notices_one_live allows one live letter per termination.

wic_termination_holds

One appeal’s hearing hold on one termination (#3387, 7 CFR 246.9(g); the hold routes): termination_id (FK → wic_participant_terminations) and appeal_id (canopy-appeals' id; no foreign key crosses the service), together the primary key; status CHECK ∈ {held, released}; placed_at and placed_on (the legal day it was placed, the day judged against the termination date); ended_at, set exactly when released (wic_termination_holds_ended_check). A row is never deleted: a repeated command reads what the first one left.

wic_determinations

One signed determination per participant (ADR-035). purpose TEXT NOT NULL, with no default (#2445), is why it ran, CHECK-closed to evaluation / income_reassessment (wic_determinations_purpose_check, the tokens of WicDeterminationPurpose): an evaluation certifies an approval, and an income_reassessment records the 7 CFR 246.7(h)(1)(ii) mid-certification income reassessment, with no end_date and no participant row (the determine route). determination_status is CHECK-closed to approved / denied / sanctioned / withheld (wic_determinations_determination_status_verdict, #628). wic_determinations_subject_key is UNIQUE (id, application_id, household_id, person_id), the target of the wic_participants composite foreign key. The four gates categorical_eligible, income_eligible, adjunctive_eligible (+ adjunctive_program and adjunctive_route, the 7 CFR 246.7(d)(2)(vi) route that conferred it: participant, state_option or a family route of the federal layer’s wic-adjunctive-routes.json, under which the program is the family member’s; CHECK wic_determinations_adjunctive_route_ck keeps the two null together, and rows before #3312 were backfilled to participant), nutritional_risk_documented; participant_category, the category an evaluation derived, approved or denied, and null for a member with none and for an income_reassessment (#3152); food_package on an evaluation’s approval; denial_reasons TEXT[] on denial; effective_date (the evaluation date: an evaluation’s certification start, a reassessment’s as_of) / end_date (an evaluation’s approval only); ruleset_version; the ADR-002 jws_token; snapshot_hash TEXT NOT NULL — the hex SHA-256 of the ADR-028 input snapshot bound into the signature (20260810000000 deleted the pre-snapshot rows and set the constraint); operation_id UUID, the canopy-eligibility operation the envelope signs, NULL for a direct caller’s determination (#3158); and signed_payload BYTEA, the exact bytes jws_token covers, from which a replayed operation is answered. Neither has a default; the writer binds the bytes on every row. CHECK wic_determinations_operation_signed_ck: a row naming an operation carries its signed_payload and its jws_token. Rows written before #3158 carry neither.

determination_snapshots

The immutable ADR-028 input snapshot, one per determination: determination_id (PK, FK → wic_determinations(id)), snapshot JSONB, corpus_hash, as_of DATE, signing_kid, created_at. The statement-level trigger determination_snapshots_append_only rejects UPDATE / DELETE / TRUNCATE unless canopy.snapshot_maintenance = 'on'. PII-bearing leaves are ADR-036 SealedValue envelopes; WIC is not FTI, so the snapshot joins no ADR-014 chain. Detail: ADR-028.

redaction_keys

Per-determination DEK store for crypto-shred (ADR-036): dek_id (PK), wrapped_dek BYTEA, kek_version SMALLINT, subject_kind / subject_id (determination_snapshot / the determination id), created_at (the determination’s decision instant, bound by the store; no default since #2475), shredded_at (NULL = live; the redaction’s instant when set). Trigger canopy_redaction_keys_one_way_guard permits INSERT and exactly two live-row UPDATEs — the tombstone (wrapped_dek + shredded_at only) and the KEK rewrap (wrapped_dek replaced + kek_version strictly increased, 20261224000000, #2113) — and rejects DELETE, TRUNCATE, un-tombstoning, any update of a tombstoned row and identity changes. uq_redaction_keys_live_subject keeps at most one live DEK per subject.

wic_nutritional_risk_assessments

The clinician’s assessment (7 CFR 246.7(e)) that gates certification: person_id, assessment_date, assessor_worker_id (TEXT NOT NULL since #1008: the assessing worker’s OIDC subject, taken from the bearer of the user-only create route), the four category booleans anthropometric_risk / biochemical_risk / dietary_risk / medical_risk (default false), risk_codes TEXT[] NOT NULL DEFAULT '{}', notes. The API rejects a row with no category flag or an empty risk_codes (400).

wic_breastfeeding_statuses (#3151)

Each woman’s breastfeeding status (7 CFR 246.2), written by POST /v1/breastfeeding-statuses (the breastfeeding routes). Append-only: a change of status is a new row with a later effective_date. id (WicBreastfeedingStatusId, app-supplied UUID v7), person_id, status CHECK ∈ {fully, partially, not_breastfeeding} (wic_breastfeeding_statuses_status_check, the tokens of BreastfeedingStatus), effective_date DATE NOT NULL (the first day the status holds; the route refuses one after the legal today), recorded_by TEXT NOT NULL (the recording worker’s OIDC subject, taken from the bearer of the user-only create route), created_at TIMESTAMPTZ NOT NULL, the request’s decision instant, bound by the writer with no default.

wic_appointments

One row per scheduled household appointment, written by POST /v1/wic/households/{household_id}/appointments: id (UUID v7, app-supplied — the gen_random_uuid() default was dropped in 20260804000000), household_id, appointment_at TIMESTAMPTZ, appointment_type, notes, scheduled_by, status TEXT NOT NULL DEFAULT 'scheduled', created_at. The former certification_id column was dropped in 20260709000000 (#627).

determination_verdicts (#2322)

canopy-eligibility’s verdict on each of this service’s determinations, one row per determination_id (PK), written by the verdict consumer (src/verdict_subscriber.rs) in the inbox transaction that releases or drops the determination’s held outbox rows (ADR-002 Amendment 7). verdict is recorded or disowned (CHECK determination_verdicts_verdict_check); a recorded verdict replaces a disowned one and nothing replaces a recorded one. received_at is the consumer’s read of the decision clock for the delivery, bound by the consumer (no default). No foreign key: the consumer records the verdict canopy-eligibility sent whether or not a determination row holds the id.

event_outbox / event_inbox

The shared MQ pair; columns, indexes, parking and retention are on the data-models index.

Relationships

Seven Postgres-level relationships hold in the database; every other table stands alone.

  • The snapshot’s PK/FK: determination_snapshots.determination_id → wic_determinations(id).

  • The granting determination: wic_participants_granting_determination_fkey is (determination_id, application_id, household_id, person_id) → wic_determinations (id, application_id, household_id, person_id), through wic_determinations_subject_key. The ids a participant row copies therefore agree with the determination that granted it by construction, and wic_participants_determination_key gives a determination at most one participant row.

  • Supersession: wic_participants_superseded_by_fkey is superseded_by → wic_participants(id), DEFERRABLE INITIALLY DEFERRED, so the supersession UPDATE can name the successor that the same transaction inserts next. wic_participants_superseded_by_key gives a row at most one predecessor.

  • A termination’s record: wic_participant_terminations_participant_fkey is (participant_id, person_id, household_id) → wic_participants (id, person_id, household_id), through wic_participants_subject_key.

  • A termination’s evidence: wic_participant_terminations_reassessment_fkey is (reassessment_determination_id, reassessment_application_id, household_id, person_id) → wic_determinations (id, application_id, household_id, person_id), through wic_determinations_subject_key: the reassessment is of the terminated record’s person, in its household. A termination of one record on another’s reassessment is refused.

  • The record a termination ended: wic_participants_termination_fkey is (termination_id, id) → wic_participant_terminations (id, participant_id), through wic_participant_terminations_participant_key: a record can name only its own termination, so no record names another’s (cross-participant) and no termination is named by two records (multi-pointer).

  • Cohorts and letters: wic_participant_terminations_cohort_fkey → wic_termination_cohorts(id); wic_termination_notices_termination_fkey → wic_participant_terminations(id).

Diagram

Cross-service identifiers (ADR-001 boundary)

Application-level only — no FOREIGN KEY crosses the database:

  • wic_participants.household_id / person_id, wic_determinations.household_id / person_id, wic_nutritional_risk_assessments.person_id, wic_breastfeeding_statuses.person_id, wic_appointments.household_id → canopy-persons

  • wic_participants.application_id, wic_determinations.application_id → canopy-applications

  • wic_termination_cohorts.household_id → canopy-persons; wic_termination_cohorts.scheduled_by and wic_participant_terminations.cancelled_by → the worker’s canopy subject, canopy-identity’s id for the worker (opaque TEXT); wic_termination_notices.notice_id → canopy-notices

  • wic_nutritional_risk_assessments.assessor_worker_id → the assessing worker’s canopy subject (canopy-identity’s id for the worker, the delegation’s sub), stored as an opaque TEXT (#1008); wic_breastfeeding_statuses.recorded_by → the recording worker’s canopy subject, the same opaque TEXT shape (#3151)

  • redaction_keys.subject_id → wic_determinations.id by convention (subject_kind = 'determination_snapshot'), unconstrained so a tombstone outlives the row it protected

Retention

7 CFR 246.25(a)(2) governs WIC record retention: all records for a minimum of three years following the date of submission of the final expenditure report for the period to which the report pertains — and, when litigation, a claim, a negotiation, an audit or other action involving the records began before that period ended, until all issues are resolved or the three years end, whichever is later (LII mirror, checked 2026-09-19; the eCFR refused this host; the wic.integrity.retain-program-records action in compliance/action-catalogue/wic.toml carries the same clock). canopy-wic does not handle FTI; no Pub 1075 retention floor applies. Operationally, wic_determinations and wic_participants are retained indefinitely in the production system to support transfer-of-certification (VOC) lookups, with archive moves operator-driven.

Indexes

  • idx_wic_participants_person, idx_wic_participants_status, idx_wic_participants_category, idx_wic_participants_cert_end — per-person, roster, per-category and expiring-certification reads

  • wic_participants_one_current_per_person — partial UNIQUE (person_id) WHERE status IN ('active', 'temporary'): at most one current certification per person. canopy-wic maps a violation of it, matched by name through the constant ONE_CURRENT_PER_PERSON in store::participants::persist_error, to the 409 wic_current_certification_exists

  • wic_participants_expiration_notice_event_key — partial UNIQUE (expiration_notice_event_id) WHERE expiration_notice_event_id IS NOT NULL: one record per staged notice, and the dispatch consumer’s lookup

  • wic_participants_current_end_scan — (certification_end, id) WHERE status IN ('active', 'temporary'): the lifecycle sweep’s expire-leg keyset and its overdue count

  • wic_participants_unnoticed_end_scan — (certification_end, id) WHERE status IN ('active', 'temporary') AND expiration_notice_staged_on IS NULL: the lifecycle sweep’s notice-leg keyset

  • wic_participant_terminations_one_scheduled — partial UNIQUE (participant_id) WHERE status = 'scheduled': at most one scheduled termination per record, mapped by name to the 409 wic_termination_already_scheduled

  • wic_participant_terminations_scheduled_scan — (effective_on, id) WHERE status = 'scheduled': the settle leg’s keyset

  • wic_participant_terminations_list — (participant_id, created_at DESC, id DESC): a record’s newest-first termination list; wic_participant_terminations_cohort — (cohort_id)

  • wic_termination_notices_one_live — partial UNIQUE (termination_id) WHERE superseded_at IS NULL: one live letter per termination; wic_termination_notices_termination — (termination_id)

  • wic_termination_cohorts_household — (household_id)

  • wic_determinations_reassessment_person — (person_id, created_at) WHERE purpose = 'income_reassessment': a member’s income reassessments by instant, which the schedule route reads to refuse a run a later reassessment supersedes

  • wic_determinations_operation_subject_uq — partial UNIQUE (operation_id, person_id) WHERE operation_id IS NOT NULL: one determination per claimed operation and participant (#3158). canopy-wic maps a violation of it, matched by name through the constant OPERATION_SLOT in api/persist.rs, to the 409 operation_already_determined

  • The UNIQUE constraints' own indexes: wic_participants_determination_key, wic_participants_superseded_by_key, wic_participants_subject_key, wic_determinations_subject_key, wic_termination_cohorts_idempotency_key and wic_participant_terminations_participant_key

  • idx_wic_determinations_application, idx_wic_determinations_household, idx_wic_determinations_person, idx_wic_determinations_status

  • idx_determination_snapshots_as_of — (as_of)

  • idx_redaction_keys_subject — (subject_kind, subject_id); uq_redaction_keys_live_subject — unique (subject_kind, subject_id) WHERE shredded_at IS NULL

  • idx_wic_assessments_person, idx_wic_assessments_date

  • idx_wic_breastfeeding_statuses_person — (person_id, effective_date DESC, created_at DESC): a person’s newest-first list

  • idx_wic_appointments_household; idx_wic_appointments_upcoming — (appointment_at) WHERE status = 'scheduled', the dashboard feed

  • event_outbox_*, event_inbox_unprocessed_idx, idx_event_inbox_parked — the generated partial indexes, described on the data-models index

Migration files

  • 20260413000000_create_wic_tables.sql — wic_participants, wic_determinations, wic_nutritional_risk_assessments and their indexes

  • 20260508000000_create_event_outbox.sql — generated (index page)

  • 20260512000000_create_wic_appointments.sql — wic_appointments (#448) with the household and upcoming-only indexes

  • 20260516000000_create_event_inbox.sql — generated (index page)

  • 20260518004851_event_outbox_lease_columns.sql — generated (index page)

  • 20260622000000_create_determination_snapshots.sql — wic_determinations.snapshot_hash, determination_snapshots, its append-only trigger (ADR-028)

  • 20260624140000_create_redaction_keys.sql — redaction_keys and its one-way guard triggers (ADR-036)

  • 20260709000000_drop_wic_appointments_certification_id.sql — drops wic_appointments.certification_id (#627)

  • 20260713000000_event_outbox_hold.sql — generated (index page)

  • 20260720000000_event_inbox_parking.sql — generated (index page)

  • 20260803000000_event_outbox_v7_pk_default.sql — generated (index page)

  • 20260804000000_v7_pk_defaults.sql — drops the gen_random_uuid() default on wic_appointments.id (#1173)

  • 20260810000000_snapshot_hash_not_null.sql — deletes pre-snapshot determinations and sets snapshot_hash NOT NULL (#911)

  • 20260815000000_event_outbox_claim_order_idx.sql — generated (index page)

  • 20260904000000_event_outbox_parking.sql — generated (index page)

  • 20261208000004_redaction_keys_live_subject_uq.sql — tombstones superseded live DEKs, then adds uq_redaction_keys_live_subject (#1458)

  • 20261224000000_redaction_keys_rewrap_guard.sql — canopy_redaction_keys_one_way_guard() admits the KEK rewrap (wrapped_dek replaced + kek_version strictly increased on a live row) beside the shred (#2113)

  • 20270111000001_determination_status_check.sql — deletes any determination outside approved / denied / sanctioned with its snapshot, inside the canopy.snapshot_maintenance window, then adds wic_determinations_determination_status_verdict (#628)

  • 20270113000000_actor_subjects.sql — retypes wic_nutritional_risk_assessments.assessor_worker_id from UUID to TEXT NOT NULL, the human-only shape for the assessor’s OIDC subject (#1008); its guard refuses a database holding a nil-UUID assessor — the remedy is the reset it names, cargo xtask dev restart

  • 20270114000000_wic_certification_record.sql — makes wic_participants the certification record (#2359). Delete cutover: it first deletes every wic_participants row, since no existing row names its determination and nothing references the table (devstacks reseed). It then adds wic_determinations_subject_key, the four columns determination_id, application_id, household_id and superseded_by, wic_participants_determination_key, wic_participants_granting_determination_fkey, wic_participants_superseded_by_key and the deferred wic_participants_superseded_by_fkey, replaces wic_participants_status_check (dropping transferred; adding temporary and superseded), and adds wic_participants_supersession_check and wic_participants_one_current_per_person

  • 20270115000000_wic_lifecycle.sql — the certification lifecycle (#2390): adds homeless (DEFAULT false for the demo and test rows that exist, dropped in the next statement, so every writer states it), expired_at with wic_participants_expired_at_check, the staged pair with wic_participants_expiration_notice_staged_check and wic_participants_expiration_notice_event_key, the dispatched pair with wic_participants_expiration_notice_dispatched_check and wic_participants_expiration_notice_dispatch_staged_check, and the two partial scan indexes

  • 20270115500000_wic_determination_purpose.sql — adds wic_determinations.purpose (#2445): the column is added nullable, every existing row is backfilled evaluation (the only purpose that existed), then it is set NOT NULL, with no default, and wic_determinations_purpose_check is added

  • 20270116000000_wic_terminations.sql — mid-certification termination (#2391). Delete cutover: it deletes the terminated rows (demo-seed and test rows; none names a termination, and nothing references one), checking the deferred wic_participants_superseded_by_fkey at the statement so no trigger event is left pending for the ALTERs. It then adds wic_participants_subject_key, the three tables with their constraints and indexes, the columns termination_id and terminated_on, wic_participants_termination_fkey, wic_participants_terminated_check, wic_participants_terminated_on_check and wic_determinations_reassessment_person

  • 20270117000000_redaction_keys_created_at_no_default.sql — drops the redaction_keys.created_at default: the shared canopy-db store binds created_at (the determination’s decision instant) and shredded_at (the redaction’s) from its caller, so an insert that names no created_at now fails instead of taking the database clock (#2475)

  • 20270209000000_decision_stamps_no_default.sql — drops the defaults of every stamp the service’s production INSERTs bind themselves: wic_participants.created_at / updated_at, wic_determinations.created_at / updated_at, wic_nutritional_risk_assessments.created_at, wic_appointments.created_at and determination_snapshots.created_at. An insert that names no stamp now fails instead of taking the database clock, and cargo xtask migrations-lint refuses a new clock default (#2589)

  • 20270215000000_determination_verdicts.sql — the determination_verdicts table and its verdict CHECK (#2322)

  • 20270305000000_create_wic_breastfeeding_statuses.sql — the wic_breastfeeding_statuses table, its status CHECK and idx_wic_breastfeeding_statuses_person (#3151)

  • 20270306000000_wic_determinations_operation.sql — wic_determinations.operation_id and signed_payload, wic_determinations_operation_signed_ck and wic_determinations_operation_subject_uq (#3158)

  • 20270324000000_determination_status_withheld.sql — ADR-052: replaces wic_determinations_determination_status_verdict so the list also admits withheld; no row is rewritten.

  • 20270329000000_wic_termination_holds.sql — the hearing hold (#3387): the wic_termination_holds table with its constraints and the partial index wic_termination_holds_standing ((placed_at, termination_id, appeal_id) WHERE status = 'held', the standing holds oldest first), and wic_participant_terminations_cancel_reason_check replaced so the list also admits appeal_reversed; no row is rewritten.

  • 20270331000000_wic_termination_enacted.sql — enactment (#3387): wic_participant_terminations.enacted_at and record_status_before, wic_participant_terminations_status_check replaced so the list also admits enacted, and the two CHECKs above; no row is rewritten.

  • 20270401000000_wic_termination_reversed.sql — reversal (#3387): reversed_at and reversal_outcome, the status CHECK replaced to admit reversed, the enacted CHECK replaced so a reversed termination keeps its enactment columns, and the two reversal CHECKs; no row is rewritten.

The eight generated files are byte-identical copies of crates/canopy-mq/outbox-migrations/ (the data-models index). All migrations are forward-only per ADR-016.

Edit this page · default