dataflow/database
Paul Trowbridge 2abcb89bcd Add import log detail, key tracking, and cascade delete
- Add import_id column to records (links each record to its import batch)
- import_records() now stores readable dedup field values (not hashes) in
  info.inserted_keys / info.excluded_keys, and stamps import_id on insert
- delete_import() simplified to delete log row; ON DELETE CASCADE removes records
- Add get_import_log() and get_all_import_logs() DB functions
- Add DELETE /api/sources/:name/import-log/:id endpoint
- Add GET /api/sources/import-log global log endpoint
- Import route now auto-applies transformations to new records after import
- Import page: show ID column, expandable key detail, checkbox delete
- New Log page: global view of all imports across sources
- Update README API reference and workflow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 11:04:34 -04:00
..
queries Consolidate all SQL into database/queries/, switch to literal SQL in routes 2026-04-05 22:36:53 -04:00
functions.sql Add import log detail, key tracking, and cascade delete 2026-04-12 11:04:34 -04:00
migrate_input_value_jsonb.sql Add multi-capture regex, computed view fields, collapsible rules, and live preview 2026-03-29 16:37:15 -04:00
migrate_tps.sql Add retain flag to rules for preserving extracted values alongside mappings 2026-04-04 20:48:52 -04:00
schema.sql Add import log detail, key tracking, and cascade delete 2026-04-12 11:04:34 -04:00