Stage 04.3 - repositories, balance snapshots and environment mode fix
This commit is contained in:
14
docs/decisions/0011-repositories-before-orders.md
Normal file
14
docs/decisions/0011-repositories-before-orders.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# 0011 — Repositories before Orders
|
||||
|
||||
## Решение
|
||||
Сначала добавить repository слой для snapshots и drafts, и только потом переходить к order flow.
|
||||
|
||||
## Причины
|
||||
- order flow без repositories быстро приводит к смешению SQL и бизнес-логики
|
||||
- snapshots баланса — безопасный и полезный use case
|
||||
- это подготавливает архитектуру к следующим этапам
|
||||
|
||||
## Последствия
|
||||
- storage становится частью бизнес-логики
|
||||
- Telegram handlers становятся тоньше
|
||||
- следующий этап с order drafts будет проще и чище
|
||||
Reference in New Issue
Block a user