Andrey Epifancev
|
a8a4d90c83
|
model(#116): DBML v5.19 — признак строки правки, сырой текст шапки, codes и column_index у document_issue (K-1, K-3, K-12, K-13, K-19, S-19)
- financial_statement_line: «создана правкой» ⇔ row_index IS NULL; line_code_original_value — код из результата,
правками не меняется (K-1)
- financial_statement_meta: header_source (jsonb — <поле>_text и <поле>_confidence всех полей шапки),
organization_name_original_value, organization_name_modified (K-3, K-12)
- document_issue: codes (коды нарушения §7), column_index (столбец вне колонок формы); code у relation / soft —
RELATION_FAILED / RELATION_SOFT; line_ids очищаются при удалении шаблонной строки (K-6, K-13, S-19)
- заполнение при миграции: row_index = NULL у строк правки, document_issue — §7 копией arm_statements (K-2);
откат — только на пустой или совместимой с v5.18 БД (K-19)
- entities-v5.19, диаграмма part06 перерисована
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJKMLHdxMwSUeYcdkwqX4W
|
2026-10-18 02:04:13 +04:00 |
|
Andrey Epifancev
|
ecc789667f
|
model: DBML v5.19 — строки форм со статусами, needs_review, document_issue, crm_id ГСК/ГСЗ (#116)
- financial_statement_line: снята уникальность (meta_id, line_code); row_index, source_ref (частичный
уникальный индекс), line_status (enum statement_line_status), line_code_text, parent_row_index,
needs_review, is_confirmed
- financial_statement_value: source_text, needs_review (хранится — пересмотр п. 4 v5.13), is_confirmed,
confirmed_by/at; financial_statement_column: period_kind, label_confidence;
financial_statement_meta: form_variant (enum statement_form_variant), needs_review_fields
- новая таблица document_issue + enum document_issue_kind, issue_severity, issue_source
- recognition_job.statements_version; document: file_ordinal, уникальность типа на файл — только не для
BALANCE/INCOME (Р-10); related_group.crm_id (arm-core#112)
- changelog и правила заполнения миграции в шапке; entities-v5.19.md; диаграммы части 01, 04, 06
(document_issue — в части 06); ссылки на текущую модель и DBML в Makefile — v5.19
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJKMLHdxMwSUeYcdkwqX4W
|
2026-10-18 00:53:06 +04:00 |
|