Skip to content

Commit

Permalink
feat: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Dec 25, 2023
1 parent 813395c commit 7ab3c5f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,19 @@ libraries directly.

The infrastructure layer does the actual using of third party libraries and resides in `infra` package.
Actual implementation always goes into the `infra` package.

## Repositories

To facilitate database access, we've defined repository interfaces within the `domain` package.
These form the contract for our data access methods.
Corresponding implementations can be found in the `infra` package,
ensuring a separation of concerns between our domain definitions and infrastructure-specific code.

### Repository Interfaces

- The interfaces are prefixed with `repo` to denote their role as repositories within the domain layer.

### Implementation

- The actual implementations carry a `db` prefix, indicating their direct interaction with the database
and their role within the infrastructure layer.

0 comments on commit 7ab3c5f

Please sign in to comment.