Files
semprini-domain-cdp-digital…/canonical-party/events/schemas/company.schema.json
T
paulandClaude Opus 5 cfb32d2d1b Add Canonical Party as generated in semprini-blog-dataproducts
The canonical data product for the Digital Core domain, copied unchanged from
the blog repository's products/canonical-party (generated by /agent-product
from data_model/data_products/canonical.md, 65 of 65 checks on the blog's
stack on 2026-09-09). The next commit adapts it to the domain platform.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 23:21:27 +12:00

49 lines
2.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:digital-core:canonical-party:company",
"title": "Company",
"description": "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. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by company_id).",
"type": "object",
"additionalProperties": false,
"required": ["company_id"],
"properties": {
"company_id": {
"type": "string",
"format": "uuid",
"description": "The Party Identifier of the party this company extends (extends Party)."
},
"company_registration_number": {
"type": ["string", "null"],
"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", "null"],
"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": ["string", "null"],
"format": "date",
"description": "Date the organisation was formally incorporated or registered."
},
"legal_structure": {
"type": ["string", "null"],
"enum": ["Private Company", "Public Company", "Partnership", "Sole Trader", "Trust", "Cooperative", "Government Entity", "Non-Profit", null],
"description": "The legal form the organisation takes. Determines signing authority, liability and the evidence required to establish who controls it."
},
"tax_identifier": {
"type": ["string", "null"],
"description": "Tax registration number issued by the relevant revenue authority, such as an ABN, VAT number or EIN. Needed to invoice the organisation correctly."
},
"created_at": {
"type": ["string", "null"],
"format": "date-time",
"description": "Set by the ODS. Optional on the inbound topic."
},
"updated_at": {
"type": ["string", "null"],
"format": "date-time",
"description": "Set by the ODS on every change. Optional on the inbound topic."
}
}
}