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>
87 lines
3.0 KiB
Markdown
87 lines
3.0 KiB
Markdown
# [Digital Core](../domain.md)
|
|
|
|
## Entities
|
|
|
|
### Company
|
|
|
|
A Company is an organisation with legal standing — a company, partnership, trust, cooperative, charity or public body. It specialises Party and carries the registration and structure attributes that only apply to organisations.
|
|
|
|
Legal structure is worth recording explicitly rather than inferring from the name. It determines who is allowed to sign, who is liable, what evidence the business needs on file, and how the organisation is taxed.
|
|
|
|
```mermaid
|
|
---
|
|
config:
|
|
layout: elk
|
|
---
|
|
classDiagram
|
|
class Company{
|
|
Company Registration Number : string
|
|
Incorporation Country : string
|
|
Incorporation Date : date
|
|
Legal Structure : enum~CompanyLegalStructure~
|
|
Tax Identifier : string
|
|
}
|
|
|
|
Company --|> Party
|
|
|
|
class CompanyLegalStructure["<a href='../enums.md#company-legal-structure'>Company Legal Structure</a>"]{<<enumeration>>}
|
|
class Party["<a href='./party.md'>Party</a>"]
|
|
```
|
|
|
|
```yaml
|
|
extends: Party
|
|
existence: independent
|
|
mutability: slowly_changing
|
|
attributes:
|
|
Company Registration Number:
|
|
type: string
|
|
description: >
|
|
The registration identifier issued by the relevant companies registry, such as an ACN in Australia, an NZBN in New Zealand or a Companies House number in the UK. The most reliable way to tell two similarly named organisations apart.
|
|
|
|
Incorporation Country:
|
|
type: string
|
|
description: >
|
|
ISO 3166-1 alpha-2 code for the country the organisation is incorporated in. Determines which registry the registration number belongs to, and which country's company law applies.
|
|
|
|
Incorporation Date:
|
|
type: date
|
|
description: >
|
|
Date the organisation was formally incorporated or registered.
|
|
|
|
Legal Structure:
|
|
type: enum:Company Legal Structure
|
|
description: >
|
|
The legal form the organisation takes. Determines signing authority, liability and the evidence required to establish who controls it.
|
|
|
|
Tax Identifier:
|
|
type: string
|
|
description: >
|
|
Tax registration number issued by the relevant revenue authority, such as an ABN, VAT number or EIN. Needed to invoice the organisation correctly.
|
|
```
|
|
|
|
```yaml
|
|
constraints:
|
|
Registration Number Required For Active Company:
|
|
not_null: Company Registration Number
|
|
lifecycle_stage: Onboarding
|
|
description: >
|
|
An organisation must have a registration number recorded before the relationship is activated, so that it can be identified unambiguously in any later dispute or reconciliation.
|
|
```
|
|
|
|
```yaml
|
|
governance:
|
|
pii: false
|
|
classification: Internal
|
|
retention: 7 years
|
|
retention_basis: Domain default
|
|
description: >
|
|
Company records describe organisations rather than individuals, so they carry no personal data of their own and are classified a step lower than Person. Note that a sole trader blurs this line: the organisation and the individual are the same legal person, and those records should be treated as personal data.
|
|
access_role:
|
|
- CUSTOMER_SERVICE
|
|
- DATA_ANALYST
|
|
```
|
|
|
|
## Relationships
|
|
|
|
No relationships are sourced directly from Company in the current domain model.
|