Files
semprini-domain-digital-dat…/data_model/entities/service-location.md
T
paulandClaude Opus 5 aeba56e5f2 Add the Digital Core domain model from semprini-blog-dataproducts
The MD-DDL model (domain, entities, enums, the Canonical Party product
declaration) moves into its own repository, owned by the domain's modelling
team. Engineering teams consume its product declarations and generate products
from semprini-data-product-templates.

Adds the MD-DDL agent wrappers (md-ddl init), pyproject with md-ddl, and
README/CLAUDE.md describing the team split and the handoff interface.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 22:51:50 +12:00

76 lines
1.8 KiB
Markdown

# [Digital Core](../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
```