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>
54 lines
1.3 KiB
Markdown
54 lines
1.3 KiB
Markdown
# [Digital Core](../domain.md)
|
|
|
|
## Entities
|
|
|
|
### Purchase Agreement
|
|
|
|
A Purchase Agreement is a specialised Agreement covering a one-off purchase of goods or services — an order, a booking, a single licence.
|
|
|
|
It contrasts with a Subscription Agreement: a purchase completes, whereas a subscription recurs. Both are Agreements, which is why they share status, effective dates and the roles they bind.
|
|
|
|
```mermaid
|
|
---
|
|
config:
|
|
layout: elk
|
|
---
|
|
classDiagram
|
|
class PurchaseAgreement{
|
|
Order Reference : string
|
|
Total Amount : decimal
|
|
Fulfilment Terms : string
|
|
}
|
|
|
|
PurchaseAgreement --|> Agreement
|
|
|
|
class Agreement["<a href='./agreement.md'>Agreement</a>"]
|
|
```
|
|
|
|
```yaml
|
|
extends: Agreement
|
|
existence: independent
|
|
mutability: slowly_changing
|
|
attributes:
|
|
Order Reference:
|
|
type: string
|
|
description: Customer-facing reference for the order this agreement covers.
|
|
|
|
Total Amount:
|
|
type: decimal
|
|
description: Total contracted amount for the purchase.
|
|
|
|
Fulfilment Terms:
|
|
type: string
|
|
description: How and when the goods or services are to be delivered.
|
|
```
|
|
|
|
```yaml
|
|
governance:
|
|
retention_basis: Inherited from the domain default of 7 years post relationship end
|
|
```
|
|
|
|
## Relationships
|
|
|
|
No relationships are sourced directly from Purchase Agreement in the current domain model.
|