"Digital Core" is to be the name of a canonical data product the domain will run, so the domain itself is Digital: its title, description and owner address in domain.md, the back-link heading of every entity, enum and product file, and the README, CLAUDE.md, Copilot instructions and package description. A breaking change by MD-DDL's test: a product generated from 1.0.0, such as Canonical Party, names its domain, and would come out different now. So version 2.0.0. v1.0.0 is tagged on the commit Canonical Party was generated from, which was never tagged. Lint: no findings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
76 lines
1.8 KiB
Markdown
76 lines
1.8 KiB
Markdown
# [Digital](../domain.md)
|
|
|
|
## Entities
|
|
|
|
### Service Location
|
|
|
|
A Service Location is somewhere the business delivers service: a store, a branch, a depot, a contact centre. It exists so that activity can be attributed to a place, which is what makes location-level performance and staffing analysis possible.
|
|
|
|
```mermaid
|
|
---
|
|
config:
|
|
layout: elk
|
|
---
|
|
classDiagram
|
|
class ServiceLocation{
|
|
* Service Location Identifier : string
|
|
Location Code : string
|
|
Location Name : string
|
|
}
|
|
|
|
ServiceLocation "1" --> "0..*" Account : serves
|
|
|
|
class Account["<a href='./account.md'>Account</a>"]
|
|
```
|
|
|
|
```yaml
|
|
existence: independent
|
|
mutability: reference
|
|
attributes:
|
|
Service Location Identifier:
|
|
type: string
|
|
identifier: primary
|
|
description: Unique identifier for the service location.
|
|
|
|
Location Code:
|
|
type: string
|
|
description: Short operational code used to refer to the location.
|
|
|
|
Location Name:
|
|
type: string
|
|
description: Human-readable name of the location.
|
|
```
|
|
|
|
```yaml
|
|
governance:
|
|
retention_basis: Inherited from the domain default of 7 years post relationship end
|
|
```
|
|
|
|
## Relationships
|
|
|
|
### Service Location Serves Account
|
|
|
|
A Service Location looks after one or more Accounts.
|
|
|
|
```yaml
|
|
source: Service Location
|
|
type: has
|
|
target: Account
|
|
cardinality: one-to-many
|
|
granularity: atomic
|
|
ownership: Service Location
|
|
```
|
|
|
|
### Service Location Transaction Summary
|
|
|
|
A Service Location has a grouped relationship to the Transactions handled through it. Declared at group granularity because the useful question is aggregate — how much went through this location this month — not which individual transaction.
|
|
|
|
```yaml
|
|
source: Service Location
|
|
type: associates_with
|
|
target: Transaction
|
|
cardinality: one-to-many
|
|
granularity: group
|
|
ownership: Service Location
|
|
```
|