Files
portal/docs/architecture/c4-context.md
T

39 lines
2.0 KiB
Markdown
Raw Normal View History

# C4 — System Context: Лидерра
The Level-1 (System Context) view: who uses Лидерра and which external systems
it talks to. Authored with the `mermaid` skill; see [README](README.md) for the
boundary rule and [ADR-000](../adr/ADR-000-adr-process.md).
```mermaid
C4Context
title Лидерра — System Context
Person(manager, "Менеджер арендатора", "Работает со сделками, лидами и отчётами")
Person(saasAdmin, "SaaS-администратор", "Биллинг, инциденты, управление арендаторами")
System(liderra, "Лидерра CRM", "Multi-tenant CRM: лиды, сделки, биллинг, отчёты")
System_Ext(supplier, "crm.bp-gr.ru", "Поставщик лидов — источники B1/B2/B3")
System_Ext(unisender, "Unisender Go", "SMTP-relay для исходящих писем")
System_Ext(yandex360, "Yandex 360", "SSO администраторов")
System_Ext(sentry, "Sentry", "Сбор runtime-ошибок, self-hosted в Yandex Cloud")
System_Ext(jivosite, "JivoSite", "Виджет онлайн-поддержки")
Rel(manager, liderra, "Использует", "HTTPS")
Rel(saasAdmin, liderra, "Администрирует", "HTTPS")
Rel(liderra, supplier, "Импорт лидов и приём webhook", "HTTPS")
Rel(liderra, unisender, "Отправка уведомлений", "SMTP")
Rel(saasAdmin, yandex360, "Аутентификация", "OAuth")
Rel(liderra, sentry, "Отправка ошибок", "HTTPS")
Rel(manager, jivosite, "Обращается в поддержку", "Widget")
UpdateLayoutConfig($c4ShapeInRow="3", $c4BoundaryInRow="1")
```
## Notes
- This is the Context level only. Container (`C4Container`) and Component
(`C4Component`) views can be added as separate files when a subsystem needs
one — keep one view per file.
- Stack and deployment facts behind this diagram: `CLAUDE.md` §2.