---
# System prepended metadata

title: ddd-architecture

---

# ddd-architecture

```
- controller # UI
  - userController.kt
- service # Usecase
  - userService.kt
- domain # Domain
  - user # UserAggregation
    - user.kt # DomainModel
    - userRepository.kt # Interface
    - type
      - email.kt
      - userName.kt
  - type
    - id.kt
- infrastracture
  - user
    - userRepositoryMysql.kt
```
