docs: define repository pattern boundary

This commit is contained in:
AzuTear
2026-06-28 09:48:34 +02:00
parent ed8efda692
commit 170308ba05
8 changed files with 171 additions and 2 deletions
+13
View File
@@ -78,6 +78,19 @@ atlas-desk/
- Domain rules do not depend on HTTP, Vue, or database APIs.
- Infrastructure implementations depend inward on application contracts.
## Persistence Boundary
Atlas Desk uses the repository pattern for persistence boundaries.
- Repository interfaces live in the owning backend module.
- Repository implementations live in the module's infrastructure or persistence
folder.
- Repositories are domain-specific, such as `RequestRepository` and
`UserRepository`.
- Application services coordinate transactions for workflows that write multiple
records, such as assignment plus audit event creation.
- Generic CRUD repositories are not used because they hide workflow intent.
## Request Flow
```mermaid