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

1.5 KiB

Digital Core

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.

---
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>"]
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.
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.

source: Product
type: references
target: Agreement
cardinality: many-to-one
granularity: atomic
ownership: Product