docs: define repository pattern boundary
This commit is contained in:
@@ -45,6 +45,14 @@ flowchart LR
|
||||
- {{DEPENDENCY_RULE_2}}
|
||||
- {{DEPENDENCY_RULE_3}}
|
||||
|
||||
## Persistence Boundary
|
||||
|
||||
- Pattern: Repository pattern
|
||||
- Repository interfaces: {{REPOSITORY_INTERFACE_LOCATION}}
|
||||
- Repository implementations: {{REPOSITORY_IMPLEMENTATION_LOCATION}}
|
||||
- Transaction boundary: {{TRANSACTION_BOUNDARY}}
|
||||
- Repository rules: {{REPOSITORY_RULES}}
|
||||
|
||||
## Request Flow
|
||||
|
||||
{{REQUEST_FLOW}}
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
|
||||
## Repository Rules
|
||||
|
||||
- Use the repository pattern for persistence boundaries.
|
||||
- Repository interfaces live in {{REPOSITORY_INTERFACE_LOCATION}}.
|
||||
- Repository implementations live in {{REPOSITORY_IMPLEMENTATION_LOCATION}}.
|
||||
- Repositories should be domain-specific, not generic CRUD wrappers by default.
|
||||
- {{REPOSITORY_RULE}}
|
||||
|
||||
## Service Rules
|
||||
|
||||
Reference in New Issue
Block a user