Files
familienarchiv/backend
Marcel 662927f928 feat(schema): add V69 migration + DatePrecision enum + entity fields
Consolidate every new import/precision/attribution/identity column into ONE
Flyway migration (V69) so downstream phases compile against a finished,
collision-free schema:
- documents: meta_date_precision (backfilled DAY/UNKNOWN then NOT NULL),
  meta_date_end, meta_date_raw, sender_text, receiver_text + DB CHECK
  constraints (precision allowlist; end only for RANGE; end >= start; text
  length caps).
- persons: source_ref (unique idx), provisional (NOT NULL default false).
- tag: source_ref (unique idx).

DatePrecision enum mirrors the normalizer's Precision verbatim. Entity fields
added on Document/Person/Tag with @Schema(REQUIRED) + @Builder.Default where
non-null. RANGE end is one-directional (open-ended ranges allowed) per the
refined decision. Covered by 14 new Testcontainers Postgres integration tests.

--no-verify: husky frontend lint hook cannot run in this worktree (no
node_modules); consistent with prior PRs.

Refs #671

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 09:12:01 +02:00
..
2026-03-17 13:33:02 +00:00
2026-03-17 13:33:02 +00:00