Files
semprini-domain-digital-dat…/data_model/entities/product.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

67 lines
1.5 KiB
Markdown

# [Digital Core](../domain.md)
## Entities
### Product
A Product is something the business sells or provides. Accounts are instances of it, and its commercial terms come from an Agreement.
Product is deliberately thin here. The catalogue — pricing tiers, features, eligibility — is a domain of its own in most businesses; what the core needs is a stable identifier to hang accounts off.
```mermaid
---
config:
layout: elk
---
classDiagram
class Product{
* Product Identifier : string
Product Name : string
Product Category : string
}
Product "0..*" --> "1" Agreement : in terms of
Account "0..*" --> "1" Product : holds
class Agreement["<a href='./agreement.md'>Agreement</a>"]
class Account["<a href='./account.md'>Account</a>"]
```
```yaml
existence: independent
mutability: slowly_changing
attributes:
Product Identifier:
type: string
identifier: primary
description: Unique identifier of the product definition.
Product Name:
type: string
description: Business name of the product as customers see it.
Product Category:
type: string
description: Classification used for grouping and reporting.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
### Product In Terms Of Agreement
A Product is offered on the terms of an Agreement template.
```yaml
source: Product
type: references
target: Agreement
cardinality: many-to-one
granularity: atomic
ownership: Product
```