Data model
A data model is a definition of the entities an organisation holds data about, their attributes and the relationships between them. It states how data is structured, not the data itself, and exists at conceptual, logical and physical levels.
What it is
A data model is an abstract description of how data is organised: which things the data is about, what is recorded for each, and how the things connect. The European Commission’s Interoperable Europe glossary describes it as a representation of data elements and the connections between them. The model holds definitions and structure. It holds no actual records.
The main parts are entities, attributes and relationships. An entity is a thing of interest, such as a customer, an account or a transaction. An attribute is a fact recorded about an entity, such as an account’s currency. A relationship links entities, for example one customer holding many accounts.
A data model is built at three levels:
- A conceptual model names the entity types in scope and how they relate, with no technical detail.
- A logical model adds the attributes, the keys that identify each record and the rules between entities, independent of any database product.
- A physical model turns the logical model into tables, columns and data types in a chosen database.
In a relational database, entities become tables, attributes become columns, and relationships are carried by keys. The ECB’s documentation for its integrated reporting dictionary treats the logical data model as the description of structure and integrity of the data, separate from the definitions of terms.
Why it matters
Reports, planning models and risk systems read from data stored under some model. When two systems model the same thing differently, for example one record per customer and one record per customer account, totals and counts disagree when the data is combined. A shared model gives each entity one meaning and one identifier, which makes data integration, reconciliation and lineage possible.
Worked example
Illustrative numbers.
- A planning database holds three entities: department, account and monthly amount.
- A department has many monthly amounts, and each amount belongs to one account and one department. The department key and the account key sit on each amount record.
- The table holds 10 departments, 20 accounts and 12 months. A full year of amounts is at most 10 x 20 x 12 = 2,400 records.
- A report that sums amounts by department joins the amount table to the department table through the department key. Because the key is unique on the department table, each amount is counted once.
Who uses it
- Data analysts read the model to know which tables to join and at what level of detail.
- Business intelligence analysts design reporting tables from the logical model.
- Data governance analysts keep entity definitions and identifiers consistent across systems.
- FP&A analysts agree the dimensions of a planning model, such as entity, account and period.
Common confusions
- A data model is not a data dictionary. The model shows structure and relationships, and the data dictionary lists the meaning, format and owner of each field.
- A data model is not a financial model. A financial model calculates results, and a data model describes how data is stored.
- The conceptual, logical and physical models describe the same data at different levels. A change to the database product alters the physical model only.
- A diagram is a picture of a data model, and the model is the set of definitions behind it.