Files
khb_microservices/docs/data_objects/jt_membership.md
Yuri Yaryshev ebb1cb7950
Some checks failed
ci / test (push) Failing after 20s
ci / deploy (push) Has been skipped
Каркас monorepo: scheduler, data_collector, khbuild_assistant_prep, khb_common; миграции; CI/CD
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-11 09:44:55 +03:00

13 lines
912 B
Markdown
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.

# jt_membership
Зеркало участников организации JobTread. Заполняет `data_collector`.
| Колонка | Тип | Null | Описание |
|---|---|---|---|
| id | text PK | нет | ID membership в JobTread |
| user_name | text | нет | имя пользователя/организации |
| role | text | да | роль: `Admin`, `Vendor`, `Customer`, ... |
| snapshot_ts | timestamptz FK sync_snapshot | нет | ключ снапшота (started_at), в котором получена строка |
Подчиняется правилам зеркалирования (`docs/mirroring.md`): существует идентичная таблица `jt_membership_hist` с данными старых снапшотов. PK текущей таблицы - как указано выше; PK `_hist` дополнительно включает `snapshot_ts`.