"Digital Core" is to be the name of a canonical data product the domain will run, so the domain itself is Digital: its title, description and owner address in domain.md, the back-link heading of every entity, enum and product file, and the README, CLAUDE.md, Copilot instructions and package description. A breaking change by MD-DDL's test: a product generated from 1.0.0, such as Canonical Party, names its domain, and would come out different now. So version 2.0.0. v1.0.0 is tagged on the commit Canonical Party was generated from, which was never tagged. Lint: no findings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.0 KiB
3.0 KiB
Digital
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.
---
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>"]
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.
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.
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.