Files
mercadodevida/work/artifacts/POS-003/architect.md
2026-08-22 13:19:27 +02:00

12 lines
617 B
Markdown

# POS-003 — Architect
## Feature
POS module skeleton: domain + repos + application use cases.
## Design
Domain layer: PosStore, PosTerminal, PosCashSession types + all errors. Ports: PosStoreRepository, PosTerminalRepository, PosCashSessionRepository interfaces.
Infrastructure: PgStoreRepository, PgTerminalRepository, PgPaymentMethodRepository, PgCashSessionRepository.
Application: ListStores, ListTerminals, GetPosConfig, OpenCashSession, CloseCashSession use cases.
Tests: unit tests for store listing + cash session open/close.
Wired into build-app.ts (repos in deps, no routes yet — covered by POS-004).