Enterprise Data Model
An organization's systems all talk about the same things: customers, products, orders, contracts, invoices. Yet each system names, structures and interprets them differently. A CRM has Accounts, an ERP has Debtors, a web shop has Users, and all three may mean "customer", or not quite.
An enterprise data model (often called a canonical data model when used for integration) defines the organization's key business entities, their relationships and their meaning in one shared, system-independent language. It is the semantic backbone for integration architecture, data products, the data lake, analytics, and increasingly for AI agents that need to interpret data correctly.
Three layers of data models
Data models are usually described at three levels of abstraction. Each answers different questions, for a different audience:
| Conceptual (canonical / enterprise) | Logical | Physical | |
|---|---|---|---|
| Question | What are the key things, and how are they related? | Which information describes each thing, and which rules apply? | How is the data actually stored and exchanged in each system? |
| Content | Entities, relationships, definitions, ownership | Attributes, keys, identifiers, data types, cardinalities, lifecycles, statuses, business rules, classification | Tables, columns, indexes, partitions; SQL, Avro, JSON Schema, Protobuf, Iceberg schemas |
| Depends on technology | No | No | Yes |
| Number of models | One per enterprise (organized by domain) | One per entity or domain | One per system, interface or store |
| Audience | Business and IT together | Architects, data stewards, analysts | Developers, data engineers, DBAs |
| Changes | Rarely | Occasionally | Often |
The layers are connected by mappings: every physical field should be traceable to a logical attribute, and every logical attribute to a conceptual entity. These mappings are what make integrations, migrations and consistent reporting possible.
Conceptual layer: the canonical model
The conceptual model defines the vocabulary of the enterprise:
- Entities: the key business objects, such as Customer, Product, Order, Contract, Invoice.
- Relationships: how entities relate, with cardinalities: a customer places many orders; an order contains one or more products.
- Definitions: what each entity means for the organization, in business language, agreed in a business glossary. "A customer is a person or company that has signed at least one contract" is a decision, not a fact, and different parts of the business may need to agree on it.
- Ownership: which domain and which data owner is responsible for each entity, and which system is its source of truth.
The conceptual model is deliberately small and stable. It typically starts with the 20 to 30 entities that matter most, organized by data domain. The unlocking the data article describes how to build it in workshops, and organizing legacy spaghetti shows its role in consolidating systems after mergers.
Logical layer: attributes, keys and lifecycles
The logical model adds the detail needed to implement and exchange data consistently, still without committing to a technology.
Attributes and keys
| Attribute | Type | Required | Description | Classification |
|---|---|---|---|---|
order_id | Identifier | Yes | Enterprise order identifier, unique across all channels (business key) | Internal |
customer_id | Identifier | Yes | Reference to Customer (foreign key), enterprise customer ID | Internal |
channel | Code list | Yes | WEB, STORE, PARTNER | Internal |
status | Code list | Yes | Current lifecycle status (see below) | Internal |
total_amount | Money | Yes | Order total including tax | Confidential |
currency | Code list | Yes | ISO 4217 currency code | Internal |
created_at | Timestamp | Yes | When the order was placed, in UTC | Internal |
delivery_address | Address | No | Delivery address, if different from the customer's default | Personal data |
Key elements of the logical model:
- Identifiers and keys: the business key that identifies an entity across systems (
order_id), references to other entities, and rules for how identifiers are generated and mapped between systems. Shared enterprise identifiers are the single most important enabler of integration. - Data types and formats: money with currency, timestamps in UTC, standard code lists such as ISO country and currency codes.
- Cardinalities and optionality: which attributes and relationships are required.
- Business rules: for example "total amount equals the sum of order lines" or "a cancelled order cannot be shipped".
- Classification: personal, confidential or public data, which drives security and privacy controls.
Lifecycles and statuses
Most business entities have a lifecycle: a set of statuses and the allowed transitions between them. Defining it explicitly avoids one of the most common integration problems, where systems use different status values or disagree on what a status means.
For each status, the logical model defines its meaning, which transitions are allowed, which events are published on each transition (for example OrderShipped), and which system is allowed to change it.
Physical layer: schemas in each system
The physical layer describes how the logical model is actually implemented in each database, interface and data store. The same logical entity has several physical representations, each in the format of its technology. (See also the blog post on schema definition formats.)
SQL schema in an operational database
CREATE TABLE orders (
order_id VARCHAR(20) PRIMARY KEY,
customer_id VARCHAR(20) NOT NULL REFERENCES customers (customer_id),
channel VARCHAR(10) NOT NULL CHECK (channel IN ('WEB', 'STORE', 'PARTNER')),
status VARCHAR(12) NOT NULL,
total_amount NUMERIC(12, 2) NOT NULL,
currency CHAR(3) NOT NULL,
created_at TIMESTAMP WITH TIME ZONE NOT NULL,
delivery_address JSONB
);
CREATE INDEX idx_orders_customer ON orders (customer_id);
Avro schema for an event
{
"type": "record",
"name": "OrderPlaced",
"namespace": "com.example.sales.events",
"doc": "Published when a customer places an order.",
"fields": [
{ "name": "order_id", "type": "string" },
{ "name": "customer_id", "type": "string" },
{ "name": "channel", "type": { "type": "enum", "name": "Channel", "symbols": ["WEB", "STORE", "PARTNER"] } },
{ "name": "total_amount", "type": { "type": "bytes", "logicalType": "decimal", "precision": 12, "scale": 2 } },
{ "name": "currency", "type": "string" },
{ "name": "created_at", "type": { "type": "long", "logicalType": "timestamp-millis" } }
]
}
JSON Schema for an API
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://api.example.com/schemas/order.json",
"title": "Order",
"type": "object",
"required": ["order_id", "customer_id", "status", "total_amount", "currency", "created_at"],
"properties": {
"order_id": { "type": "string", "pattern": "^ORD-[0-9]{8}$" },
"customer_id": { "type": "string" },
"status": { "type": "string", "enum": ["PLACED", "CONFIRMED", "SHIPPED", "DELIVERED", "CANCELLED"] },
"total_amount": { "type": "number", "minimum": 0 },
"currency": { "type": "string", "pattern": "^[A-Z]{3}$" },
"created_at": { "type": "string", "format": "date-time" }
}
}
Iceberg table in the data lake
CREATE TABLE silver.orders (
order_id STRING NOT NULL,
customer_id STRING NOT NULL,
channel STRING,
status STRING,
total_amount DECIMAL(12, 2),
currency STRING,
created_at TIMESTAMP
)
USING iceberg
PARTITIONED BY (days(created_at));
Physical formats at a glance
| Format | Typical use | Notes |
|---|---|---|
| SQL DDL | Operational relational databases | Constraints, indexes and keys enforced by the database |
| Avro | Event streaming (for example Kafka), data pipelines | Compact binary format, strong support for schema evolution |
| Protocol Buffers | gRPC APIs, high-performance messaging | Compact, code generation for many languages |
| JSON Schema | REST APIs, document databases, configuration | Human-readable; used inside OpenAPI and AsyncAPI definitions |
| Apache Iceberg and other table formats | Data lake and lakehouse tables | Schema and partition evolution without rewriting data |
| CloudEvents | Event envelopes across systems | Standard metadata (type, source, time) around any payload |
Mapping across layers and systems
The mapping between layers, and between systems, is where the model delivers its value:
| Logical attribute | ERP (SQL) | Web shop API (JSON) | OrderPlaced event (Avro) | Data lake (Iceberg) |
|---|---|---|---|---|
| Order ID | AUFTRAG.AUF_NR | orderNumber | order_id | order_id |
| Customer ID | AUFTRAG.KD_NR | customer.id | customer_id | customer_id |
| Status | AUFTRAG.STAT (codes 1–5) | state (lowercase strings) | not included | status |
| Total amount | AUFTRAG.BETRAG + WAEHRUNG | total.value + total.currency | total_amount + currency | total_amount + currency |
Such mappings are used to build translation layers (anti-corruption layers) in integrations, to design data lake transformations from bronze to silver, to plan migrations, and to answer impact questions such as "which interfaces change if we add an order status?". They belong in the architecture repository and the data catalog, as part of the metamodel.
Supporting integration architecture
The enterprise data model is especially valuable for integration:
- Canonical messages and events: systems publish events such as
OrderPlacedorCustomerUpdatedin the canonical structure, so consumers do not depend on each producer's internal model. This is the Canonical Data Model pattern from Enterprise Integration Patterns, and the published language of Domain-Driven Design. - Fewer translations: with n systems, point-to-point integration may need up to n × (n−1) translations; a canonical model needs at most two per system (into and out of the canonical form).
- API and event design: OpenAPI and AsyncAPI definitions reuse canonical entity schemas and identifiers.
- Schema registries store and version physical schemas for events and enforce compatibility rules, so producers cannot break consumers. Examples are Confluent Schema Registry (see schema evolution and compatibility), AWS Glue Schema Registry and Apicurio Registry.
A canonical model works best at the level of shared semantics, identifiers and integration contracts. Forcing every system to use one detailed enterprise schema internally rarely works: different domains legitimately need different representations of the same concept. Use bounded contexts for internal models, and the canonical model for what crosses their boundaries.
Governance and evolution
- Ownership: each entity has a data owner in its domain (see data governance); the enterprise model itself has a small group of stewards.
- Versioning: logical and physical models are versioned. Breaking changes (removing attributes, changing meanings) require a new version and a migration period.
- Compatibility rules: prefer additive changes; define compatibility modes for event schemas in the registry; never reuse a field for a different meaning.
- Models as code: store schemas, mappings and glossaries in version control and catalogs, reviewed like code, instead of only in diagrams.
- Tooling: data modeling tools such as ER/Studio or SqlDBM for conceptual and logical models; schema registries and data catalogs for physical schemas and lineage. The DAMA Data Management Body of Knowledge covers data modeling as one of its core knowledge areas.
Common pitfalls
- Boiling the ocean: modeling hundreds of entities in full detail before any integration uses the model.
- Physical model as enterprise model: declaring the largest system's database schema to be the canonical model, with all its historical quirks.
- No mappings: a beautiful conceptual model that is never linked to real tables, events and APIs.
- Statuses left implicit: every system invents its own status values, and nobody can say whether
SHIPPEDin one means the same asDISPATCHEDin another. - One schema everywhere: forcing every bounded context to adopt the full canonical structure internally.
- Models nobody maintains: documentation that drifts from reality because it is not part of the change process.