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
+4
View File
@@ -57,6 +57,10 @@
## Repository Rules
- Use the repository pattern for persistence boundaries.
- Keep repository interfaces in the owning backend module.
- Keep repository implementations near persistence infrastructure.
- Use specific repositories such as `RequestRepository` and `UserRepository`.
- Keep queries explicit, such as `FindOpenRequestsForQueue`.
- Do not add generic repository abstractions over the database context.
- Write operations that can be retried must be idempotent or transactionally protected.