docgen#6 slice 3, F01 (P-R1-K05 Fassung 4 M21, M13): the R1 intake keeps a security notice unchanged with the time it arrived and gives it one stable Eingangsreferenz (SH-YYYY-NNNNN), which is also the Meldereferenz of the confirmation (F-1). Later information is a supplement to the same reference, never a second report. - migration 0028: intake_reports, intake_entries (capture and supplements), intake_receipts; all insert-only (trigger), one capture per report, one settling receipt per entry - a person reports, lists and reads their own reports and adds to them with their own token (route group intake.user); others get 404, and no route returns the original text, since "Original einsehen" (F07, TV-1) does not exist yet - werkmeister reads entries not settled yet (reference and the reporter's own answers, never the text) and writes receipts back: waiting, delivered, processed, refused (route group intake) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
6 lines
194 B
SQL
6 lines
194 B
SQL
DROP TABLE IF EXISTS intake_receipts;
|
|
DROP TABLE IF EXISTS intake_entries;
|
|
DROP TABLE IF EXISTS intake_reports;
|
|
DROP TABLE IF EXISTS intake_counters;
|
|
DROP FUNCTION IF EXISTS intake_immutable();
|