MT.Checks/DB/chk/schema.puml

58 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@startuml schema
' ER-схема слоя chk (БД MT.Сhecks)
' Источник требований: DB/task.md; документация: DB/chk/tables.md
hide circle
skinparam linetype ortho
entity "chk_type" as chk_type {
* id : int <<PK>>
--
* name : text
}
entity "chk_status" as chk_status {
* id : int <<PK>>
--
* name : text
}
entity "chk_check" as chk_check {
* id : serial <<PK>>
--
* check_date : date
* chk_type_id : int <<FK>>
* chk_status_id : int <<FK>>
smev_message_id : text
rr_organization_id : text
params : jsonb
parent_check_id : int <<FK, nullable>>
}
chk_type ||--o{ chk_check : "chk_type_id"
chk_status ||--o{ chk_check : "chk_status_id"
chk_check |o--o{ chk_check : "parent_check_id"
note bottom of chk_check
Индексы: idx_chk_check_type (chk_type_id),
idx_chk_check_status (chk_status_id),
idx_chk_check_parent (parent_check_id)
params: результаты проверок (состав не фиксирован)
end note
note bottom of chk_type
Значения (id): 1 — Запрос изменений (дельты) ЕГРЮЛ,
2 — Запрос изменений (дельты) ЕГРИП,
3 — Отправка запроса в ЕГРЮЛ,
4 — Отправка запроса в ЕГРИП,
5 — Актуализация организации ОТ,
6 — Актуализация организации СОУТ
end note
note bottom of chk_status
Значения (id): 1 — Запрос отправлен,
2 — Ответ получен,
3 — Ответ успешно обработан,
4 — Ошибка при обработке
end note
@enduml