This sample models customers, orders and products as a Data Vault 2.0: hubs store business keys, links store relationships between them, and satellites store descriptive attributes with full history. It is a common pattern for the integration layer of an enterprise data warehouse.
1. The Diagram
Data Vault 2.0 (Dan Linstedt) splits every concept into keys, relationships and descriptive history.
The three hubs in the middle row each hold one business key: customer ID, order number, SKU. Each also gets a hash key (here SHA-256, so BINARY(32)), a load timestamp and a record source.
Links (yellow, bottom) record that keys relate. lnk_customer_order says this customer placed this order; lnk_order_product says this order contained this product. Links are always many-to-many, so a changed business rule never forces a redesign.
Satellites (green, top) carry the descriptive columns. A new row is inserted only when hash_diff, a hash of the attribute values, changes; the history of every name, status and price is kept.
sat_order_line hangs off a link: quantity and unit price describe the order-product pairing, not either hub alone.
All tables are insert-only. Nothing is updated, which makes loads parallel and the warehouse fully auditable.
2. How to Read It
There is no official Data Vault notation; teams draw it as an ER diagram with colours for each table type (blue hubs, yellow or red links, green satellites is a common convention). Line ends follow crow's foot: one hub row matches zero or many satellite and link rows.
3. Variant: Load Flow
The vault is the integration layer, not what analysts query. Staging computes hash keys, hubs, links and satellites load independently, and a business vault adds point-in-time (PIT) and bridge tables. Information marts, typically star schemas, are then built on top for reporting.
4. Pros, Cons, and When to Use
Pros
Adding a new source or attribute means new tables, not changes to existing ones.
Full history and record source on every row; strong auditability.
Insert-only, hash-keyed loads run in parallel.
The three colours make the pattern easy to recognise on a diagram.
Cons
Many more tables and joins than a star or 3NF model.
Not query-friendly; needs PIT/bridge tables and marts on top.
Diagrams become large quickly; split by business area.
Requires automation (dbt packages such as AutomateDV, or code generators) to be practical.
Overkill for a single stable source.
When to use
Enterprise warehouses integrating many changing sources.
Regulated domains that need lineage and audit history.
When not to use
Small teams with one source and simple reporting.
Direct BI consumption (expose a star schema instead).
5. As Diagrams-as-Code
MermaiderDiagram captures the tables and lines; colours must be added by hand or in your tool: