[2.16] ingest.reconciliation_issue #33

Closed
opened 2026-06-13 23:54:36 +02:00 by dernbu · 0 comments
Owner

Parent

#2

Schema

CREATE TABLE ingest.reconciliation_issue (
  id           bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
  source       text   NOT NULL CHECK (source IN (lawnet, elitigation)),
  source_key   text   NOT NULL,
  issue_type   text   NOT NULL,
  details      jsonb  NULL,
  status       text   NOT NULL DEFAULT open CHECK (status IN (open, resolved, ignored)),
  created_at   timestamptz NOT NULL DEFAULT now(),
  resolved_at  timestamptz NULL
);

Issue types: Missing citation, Unparseable citation, Citation component conflict, Source record disappeared, Ambiguous LawNet rendition, Unexpected source schema.

Done when

  • CHECK constraints on source and status
  • Index on (source, status) for operator queries
## Parent #2 ## Schema ```sql CREATE TABLE ingest.reconciliation_issue ( id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY, source text NOT NULL CHECK (source IN (lawnet, elitigation)), source_key text NOT NULL, issue_type text NOT NULL, details jsonb NULL, status text NOT NULL DEFAULT open CHECK (status IN (open, resolved, ignored)), created_at timestamptz NOT NULL DEFAULT now(), resolved_at timestamptz NULL ); ``` **Issue types:** `Missing citation`, `Unparseable citation`, `Citation component conflict`, `Source record disappeared`, `Ambiguous LawNet rendition`, `Unexpected source schema`. ## Done when - CHECK constraints on `source` and `status` - Index on `(source, status)` for operator queries
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dernbu/lawnet-scraper#33
No description provided.