- data/sql/112_22i_domrf_documents.sql: CREATE TABLE domrf_kn_documents with UNIQUE(obj_id, doc_type, doc_num, file_url) + index (obj_id, doc_type). Renamed from original 100_* to 112 to avoid NN collision (100 = mv_layout weighted_avg PR #290 merged; 111 = 22f obj_checks PR #303). - backend/app/services/scrapers/documents.py: extract_documents() + upsert_documents() with SAVEPOINT per-row + canonical doc_type normalisation + download stub. Payload audit (obj_id=65136): kn/object bulk list does NOT contain documents field. Documents live on per-object endpoint /object/{obj_id}/documents (not yet scraped). Follow-up PR needed to wire endpoint into domrf_kn.py scrape loop. Issue #297 22i. |
||
|---|---|---|
| .. | ||
| alembic | ||
| app | ||
| db/init | ||
| output | ||
| tests | ||
| .dockerignore | ||
| .env.example | ||
| .env.runtime.example | ||
| alembic.ini | ||
| debug.log | ||
| Dockerfile | ||
| pyproject.toml | ||
| uv.lock | ||