Design a Data Vault Model
Purpose
Create an integration layer that captures all source history in an insert-only, auditable form, integrates sources on shared business keys and absorbs source change with minimal rework, so downstream marts can be rebuilt at any time.
When to use
- Many sources describe the same business concepts and change frequently.
- Full auditability and reproducibility of any past state is required (regulated industries).
- Parallel, incremental loading at scale is needed without re-modelling on each source change.
When not to use
- A single source feeds a small reporting need. Use
dimensional-model directly.
- The need is golden-record resolution for operations. Use
master-data-strategy.
- An operational (OLTP) schema is being designed. Use
logical-data-model.
Inputs
Required:
- Source systems in scope with their entities/tables and the business keys they carry.
- The core business concepts (a conceptual model or list).
Optional:
- Change frequencies and volumes per source, CDC availability, known key collisions across sources, downstream mart requirements, privacy constraints (erasure obligations).
If business keys cannot be identified for a source, ask; guessing keys breaks integration.
Process
- Start from business concepts, not source tables. For each concept, identify the business key used across the enterprise (not source surrogate IDs where avoidable).
- Resolve key collisions: when sources use different keys for the same concept, decide between a shared hub with key-mapping (same-as link) or collision codes/tenant prefix in the key.
- Define hubs: hash key over normalized business key (trim, upper-case, fixed delimiter, collision code), business key columns, load date, record source.
- Define links for every relationship or transaction between hubs, with hash key over all participating hub keys. Keep links many-to-many; do not encode cardinality. Use non-historized (transactional) links for immutable events.
- Define satellites: split by source system, by rate of change and by sensitivity (put personal data in its own satellite to enable erasure/crypto-shredding). Include hash diff for change detection, load date, record source; add effectivity satellites for link validity.
- Handle multi-active attributes (several phones per customer) with multi-active satellites and a sub-sequence key.
- Standardize technical rules: hashing algorithm and input normalization, load date semantics (arrival timestamp vs. applied date), ghost record, zero keys for missing references.
- Design the business vault for derived logic: computed satellites, same-as and hierarchy links, PIT tables and bridges to make downstream queries efficient.
- Specify loading patterns: hubs and links insert-if-not-exists, satellites insert-if-hash-diff-changed; all loads idempotent and parallel within a layer.
- Map raw vault to downstream information marts (virtualized dimensions/facts from PIT + satellites).
- Check each source attribute lands in exactly one satellite; list unmapped attributes.
- Label every inference
[ASSUMPTION] and move unsupported items to open questions. If the goal continues, suggest the next skill: incremental-load-design for loading hubs, links and satellites, dimensional-model for the information marts, or data-lineage-doc.
Output format
# Data Vault Model: <scope>
## Hubs
| Hub | Business key (normalized) | Collision handling | Sources |
|---|---|---|---|
## Links
| Link | Hubs | Type (standard / non-historized / same-as / hierarchy) | Driving key (if effectivity) |
|---|---|---|---|
## Satellites
| Satellite | Parent | Source | Change rate | Attributes | Sensitive? | Multi-active? |
|---|---|---|---|---|---|---|
## Technical Standards
- Hash: <algorithm>, input normalization: <rules>
- Load date: <semantics> | Record source: <format> | Zero/ghost keys: <...>
## Business Vault
- PIT: <hub + satellites, snapshot frequency>
- Bridge / computed satellites: <...>
## Downstream Mapping
| Mart object | Built from |
|---|---|
## Open Questions / Assumptions
- ...
Quality checklist
Common pitfalls
- Source-system vault: one hub per source table with technical IDs, which integrates nothing. Model around business concepts.
- Putting business rules in the raw vault. Keep raw vault source-faithful; apply rules in the business vault.
- Querying the raw vault directly for BI. Provide PIT/bridge structures and marts.
- Ignoring erasure obligations in an insert-only model. Isolate personal data so it can be deleted or shredded.
Example
Input: "Customer from CRM (CRM_ID), core banking (customer number) and web onboarding (email)."
Excerpt of output:
- Hub Customer: business key = core banking customer number; same-as link maps CRM_ID and onboarding email to it.
- Satellites: Sat Customer CRM (weekly changes), Sat Customer Core (daily), Sat Customer PII (name, national ID, contact; isolated for erasure).
- Link Customer-Contract with effectivity satellite, driving key Contract.
1---2name: data-vault-model3description: "Designs a Data Vault 2.0 model: hubs from business keys, links for relationships and transactions, satellites split by source and rate of change, plus hash key, load date, record source and business vault constructs (PIT, bridge, effectivity). Use when building an auditable, source-integrated raw layer over many changing sources, or when asked for hubs, links and satellites."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/data-vault-model7 version: "1.0.0"8 language: en9 category: 08-data10 role: data-architect11 area: modeling12 title: "Design a Data Vault model"13 related: "dimensional-model, logical-data-model, master-data-strategy, incremental-load-design, data-lineage-doc"14 prompt: "Design a Data Vault for customer and contract data coming from CRM, core banking and a web onboarding app."15---1617# Design a Data Vault Model1819## Purpose20Create an integration layer that captures all source history in an insert-only, auditable form, integrates sources on shared business keys and absorbs source change with minimal rework, so downstream marts can be rebuilt at any time.2122## When to use23- Many sources describe the same business concepts and change frequently.24- Full auditability and reproducibility of any past state is required (regulated industries).25- Parallel, incremental loading at scale is needed without re-modelling on each source change.2627## When not to use28- A single source feeds a small reporting need. Use `dimensional-model` directly.29- The need is golden-record resolution for operations. Use `master-data-strategy`.30- An operational (OLTP) schema is being designed. Use `logical-data-model`.3132## Inputs33Required:34- Source systems in scope with their entities/tables and the business keys they carry.35- The core business concepts (a conceptual model or list).3637Optional:38- Change frequencies and volumes per source, CDC availability, known key collisions across sources, downstream mart requirements, privacy constraints (erasure obligations).3940If business keys cannot be identified for a source, ask; guessing keys breaks integration.4142## Process431. Start from business concepts, not source tables. For each concept, identify the business key used across the enterprise (not source surrogate IDs where avoidable).442. Resolve key collisions: when sources use different keys for the same concept, decide between a shared hub with key-mapping (same-as link) or collision codes/tenant prefix in the key.453. Define hubs: hash key over normalized business key (trim, upper-case, fixed delimiter, collision code), business key columns, load date, record source.464. Define links for every relationship or transaction between hubs, with hash key over all participating hub keys. Keep links many-to-many; do not encode cardinality. Use non-historized (transactional) links for immutable events.475. Define satellites: split by source system, by rate of change and by sensitivity (put personal data in its own satellite to enable erasure/crypto-shredding). Include hash diff for change detection, load date, record source; add effectivity satellites for link validity.486. Handle multi-active attributes (several phones per customer) with multi-active satellites and a sub-sequence key.497. Standardize technical rules: hashing algorithm and input normalization, load date semantics (arrival timestamp vs. applied date), ghost record, zero keys for missing references.508. Design the business vault for derived logic: computed satellites, same-as and hierarchy links, PIT tables and bridges to make downstream queries efficient.519. Specify loading patterns: hubs and links insert-if-not-exists, satellites insert-if-hash-diff-changed; all loads idempotent and parallel within a layer.5210. Map raw vault to downstream information marts (virtualized dimensions/facts from PIT + satellites).5311. Check each source attribute lands in exactly one satellite; list unmapped attributes.5412. Label every inference `[ASSUMPTION]` and move unsupported items to open questions. If the goal continues, suggest the next skill: `incremental-load-design` for loading hubs, links and satellites, `dimensional-model` for the information marts, or `data-lineage-doc`.5556## Output format57```markdown58# Data Vault Model: <scope>59## Hubs60| Hub | Business key (normalized) | Collision handling | Sources |61|---|---|---|---|6263## Links64| Link | Hubs | Type (standard / non-historized / same-as / hierarchy) | Driving key (if effectivity) |65|---|---|---|---|6667## Satellites68| Satellite | Parent | Source | Change rate | Attributes | Sensitive? | Multi-active? |69|---|---|---|---|---|---|---|7071## Technical Standards72- Hash: <algorithm>, input normalization: <rules>73- Load date: <semantics> | Record source: <format> | Zero/ghost keys: <...>7475## Business Vault76- PIT: <hub + satellites, snapshot frequency>77- Bridge / computed satellites: <...>7879## Downstream Mapping80| Mart object | Built from |81|---|---|8283## Open Questions / Assumptions84- ...85```8687## Quality checklist88- [ ] Every hub is based on a real business key, and key collisions are resolved explicitly.89- [ ] Links carry no descriptive attributes; relationships are not encoded in hubs.90- [ ] Satellites are split by source and change rate; personal data is isolated.91- [ ] Hashing and load-date rules are specified once and applied everywhere.92- [ ] Loads are insert-only and idempotent.93- [ ] Every source attribute is mapped to exactly one satellite.94- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.9596## Common pitfalls97- Source-system vault: one hub per source table with technical IDs, which integrates nothing. Model around business concepts.98- Putting business rules in the raw vault. Keep raw vault source-faithful; apply rules in the business vault.99- Querying the raw vault directly for BI. Provide PIT/bridge structures and marts.100- Ignoring erasure obligations in an insert-only model. Isolate personal data so it can be deleted or shredded.101102## Example103Input: "Customer from CRM (CRM_ID), core banking (customer number) and web onboarding (email)."104105Excerpt of output:106- Hub Customer: business key = core banking customer number; same-as link maps CRM_ID and onboarding email to it.107- Satellites: Sat Customer CRM (weekly changes), Sat Customer Core (daily), Sat Customer PII (name, national ID, contact; isolated for erasure).108- Link Customer-Contract with effectivity satellite, driving key Contract.