docs: define repository pattern boundary
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user