What is data modeling? The full guide
Your reports disagree, the business asks which number is right, and “the data model” gets the blame without anyone saying what it is. The two are connected. A model is the written agreement about what your data means: what a customer is, what an order is, how the two connect and which rows count. Every report is built on that agreement. When it is missing or unclear, each report makes up its own.
This page explains data modeling in plain words first, so you can use it with the people who read your reports, with one worked example. The technical detail follows: stages, process, techniques and best practices.
Reading to get this done?
What a data model is, in plain words
What a data model is, in plain words
Data modeling is the work of defining and structuring data so that people and reports read it the same way. A data model names the things the business cares about (customers, products, orders), says what is known about each one (name, price, date), and says how they connect (a customer places many orders, an order belongs to one customer). It is a blueprint for databases and reporting, written with objects, fields, diagrams and text.
A model does not store anything by itself. It decides what the stored data means. That is why two reports on the same tables can give different numbers: the tables are the same, the decisions are not.
One question, four correct answers
One question, four correct answers
Take a question every business asks: how many customers do we have? We ran it on thelook_ecommerce, a synthetic online shop that Google publishes as a public BigQuery dataset, on 26 October 2026. Two of its tables matter here: users and orders.
| What “customer” means | Count |
|---|---|
| Everyone who registered | 100,000 |
| Registered and placed at least one order | 79,807 |
| Placed an order in the last 365 days that was not cancelled | 30,445 |
| Has at least one order with status Complete | 27,576 |
The four counts come from one query:
SELECT
(SELECT COUNT(*) FROM `bigquery-public-data.thelook_ecommerce.users`) AS registered,
COUNT(DISTINCT user_id) AS placed_an_order,
COUNT(DISTINCT IF(status NOT IN ('Cancelled', 'Returned')
AND created_at >= TIMESTAMP_SUB(TIMESTAMP '2026-10-26', INTERVAL 365 DAY), user_id, NULL)) AS active_last_365_days,
COUNT(DISTINCT IF(status = 'Complete', user_id, NULL)) AS has_complete_order
FROM `bigquery-public-data.thelook_ecommerce.orders`Each row is a correct answer to a reasonable reading of the question. The largest is 3.6 times the smallest.
Now put a number on top of them. The shop’s order lines add up to 10,739,087.41 in revenue. Divide by each customer count and “revenue per customer” is 107.39, 134.56 or 389.44. A marketing report that uses the first count and a finance report that uses the last will disagree by a factor of 3.6, and both will be right by their own definition.
This is what a data model fixes. It does not make one answer true. It gives each meaning its own name (registered user, buyer, active customer, completed customer), says where each one is computed, and makes every report use the name it needs. Nothing in the data changes. The disagreement stops because the question stops being ambiguous.
Your reports disagree and the data model gets the blame, but nobody has written down what a customer or an order is.
Paste this into your AI assistant. It drafts the data model behind your reports: what each entity means, how your tables connect and which rows count.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /blog/articles/what-is-data-modeling.md. The task: draft the conceptual, logical and physical model behind my reports: the entities in my sources, the keys that connect them, and the tables that hold each one. Tag the links you give me with utm_campaign=ai-task and utm_term=m1. Use what you know about my context and goals
What to agree with the business
What to agree with the business
A data model is only as good as the agreement behind it. Before you build or change one, get answers to these from the people who read the reports:
- What does each key word mean, in writing? Customer, order, revenue, active. If the answer is “it depends on the report”, there is no model yet.
- Where is that definition kept, and who owns it? A definition that lives in somebody’s query dies when they leave.
- If two reports disagree, which one follows the model? The answer should name a table or a Data Mart, not a person.
- Who reviewed it from the business side? See stakeholder validation below.
Mistakes in data modeling shows what goes wrong when these questions have no answer, each one measured on the same shop.
Why data modeling matters
A well-built model gives four things a business can feel:
- Numbers that agree. One definition per word, used by every report.
- Data you can trust. Primary and foreign keys document which rows must be unique and which must exist. BigQuery, Snowflake, Redshift and Databricks do not enforce them, so tests that count duplicates and orphaned rows are what catch the breaks.
- Faster reports. Relationships are defined once, so people join tables the right way instead of guessing.
- Change without breakage. A new data source or product line adds to the model instead of rewriting every report.
The benefits of data modeling go through each in more detail.
Core concepts behind a data model
Core concepts behind a data model
Three ideas cover most models.
- Entities are the real-world things you record: customer, product, order. In a database they become tables.
- Attributes are the facts about an entity: a customer’s name and email, an order’s date and total. They become columns.
- Relationships say how entities connect. One-to-many: a customer places many orders, and each order belongs to one customer. Many-to-many: an order holds many products and a product appears in many orders, which needs a join table. One-to-one: a user account has one customer profile.
Data modeling stages: Conceptual, logical, physical
Data modeling stages: Conceptual, logical, physical
A model is built in three stages, each more detailed than the one before. These are also the three types of models.
Conceptual data model

The first stage is the business view: which entities exist and how they relate, with no technical detail. It is made with business stakeholders and answers “what do we talk about?” For example: customers place orders, orders contain products. See conceptual data modeling with examples.
Logical data model

The second stage adds structure: tables, columns, keys and constraints, still independent of any one database product. This is where “customer” gets a key and a definition, and where the one-to-many link between customers and orders is written down.
Physical data model

The third stage is the implementation in a specific warehouse such as BigQuery, Snowflake or MySQL: exact table structures, data types, indexes and constraints. For example, a sales table with VARCHAR, INT and DATE columns and NOT NULL rules. Logical vs physical data models compares the last two.
Subschemas: The part of the model each team sees
Subschemas: The part of the model each team sees
A subschema is the part of a schema that one team or one application is allowed to see. The full model describes everything the company records; each subschema is a slice of it, cut to what that reader needs.
For an online shop:
| Team | Sees | Does not see |
|---|---|---|
| Marketing | Campaigns, orders, customer country | Invoices, payroll |
| Finance | Campaigns, orders, customer country, invoices | Payroll |
| HR | Payroll | Campaigns, orders, invoices |
The entities and their definitions are the same in every slice: an order in the marketing subschema is the same order, counted the same way, as in finance’s. Only the visible part differs. That is the difference between a subschema and a copy. A copy of the orders table made for marketing starts to drift the day someone changes it, and the two teams are back to reporting different numbers.
In a warehouse a subschema is usually a dataset or a set of views per team, with access granted on that and not on the raw tables. In OWOX Data Marts, a Data Context does this job: it groups Data Marts that share a meaning and controls who can access them.
The data modeling process, step by step
The data modeling process, step by step
The process turns the business view into tables. Each step feeds the next.
- Identify the key entities. The real-world objects, concepts or events the business needs data on: customers, products, orders, payments. Keep each one unique and well defined.
- Define the attributes. What describes each entity: a product’s name, price and stock level.
- Establish the relationships. One-to-one, one-to-many or many-to-many, as in the examples above.
- Map attributes to entities. Each attribute belongs to exactly one entity. “Customer name” goes to Customer, “order date” to Order.
- Assign keys. A primary key identifies each row; a foreign key points to the row it relates to. A library system stores an “Author ID” on each book and the author’s name once, in the authors table. This is normalization, and how far to take it depends on use: too much makes queries long and slow, too little leaves copies of the same fact that can disagree.
- Refine and finalise. Review the model against business needs and feedback, and update it when the business changes, for example when a new revenue stream appears.
Step 6 is where stakeholder validation belongs.
Stakeholder validation in data modeling
Stakeholder validation in data modeling
Stakeholder validation in data modeling means showing the model to the people who use the reports and refining it with their input, so it reflects business requirements before anyone builds it. It happens at the conceptual and logical stages, while changes are still cheap.
In practice: put the four customer definitions from the table above in front of marketing and finance, ask which one each team means by “customer”, and write the answer into the model. That one meeting would have prevented the disagreement.
Data modeling techniques
Techniques are the styles in which a model is drawn and built. Pick by what the model is for.
Traditional techniques
- Hierarchical: a tree where each record has one parent. Fast to read, rigid. Example: a reporting line from CEO to managers to staff.
- Relational: tables linked by primary and foreign keys, which removes duplication and, where the database enforces the keys, protects integrity. Example: books, authors and publishers linked by ISBN or author ID.
- Network: a hierarchy that allows several parents per record. Example: employees and projects linked by assignments.
- Object-oriented: data held as objects with their own behavior. See object-oriented data models and the section on methods below.
Techniques common in analytics
- Dimensional: fact tables (numbers such as revenue) joined to dimension tables (descriptions such as product and customer). The usual shape for warehouses and reports. See dimensional data modeling.
- Entity-relationship (E-R): entities and relationships drawn as boxes and lines. Example: students and courses linked by enrollment.
- Data Vault: hubs, links and satellites that keep raw data apart from business rules, for large warehouses with many sources.
- Graph: nodes and edges for highly connected data. Example: user connections on a social platform.

For reports, dimensional modeling is the safe default. For transactional systems, relational. The rest are for specific shapes of data.
Method in data modeling
A method in data modeling, in object-oriented models, is a function that defines the behavior of an object and works on that object’s own data. Other code reaches the data only through the method, which is called encapsulation, and this is how object-oriented databases control access.
Take a Car object with the properties color and speed. Start and stop are its methods: the rest of the system asks the car to start and never changes its state directly. A Sports Car object can extend Car and reuse the same methods.
For a report builder this matters mainly as a boundary: a relational model keeps data in tables and rules in queries, an object-oriented model keeps the rules next to the data.
Data modeling best practices
- Align the model with business goals. Build it with the people who read the reports, not for them.
- Choose the right approach. Relational for transactional systems where integrity matters, dimensional for analytics that needs fast queries.
- Define the grain first. Say what one row of each table means, such as one order or one order line, before you add columns. From the finest grain you can still summarize; from a summary you cannot get the detail back.
- Decide what is stored and what is computed. A table holds the result, so reading it does not re-run the logic, but it is only as fresh as its last load. A logical view re-runs its query on every read, so it follows the tables underneath.
- Use consistent names. Descriptive, standard names and no cryptic abbreviations. Where a business word already exists, keep it and document the system name beside it.
- Keep it simple. Model what you report on. Extra tables and extra routes between the same facts are where data modeling errors hide.
- Leave room to change. New sources and new questions will arrive. Design so that adding one does not rewrite the rest.
- Build in governance and security. Data governance and role-based access from the start, not as a retrofit.
- Document the model. Next section.
Model documentation and model documentation analytics
Model documentation and model documentation analytics
Model documentation, also called data model documentation, is the written record of what each entity, field and relationship means and who owns it. It is what lets a new analyst, or a business reader, check what “active customer” means without asking the person who wrote it.
Model documentation analytics is the practice of tracking, reviewing and evaluating how data models are defined and maintained: which fields have a description, which definitions are out of date, which models nobody has reviewed.
A simple version is a count of fields without a description. We ran it on the shop above, whose seven tables hold 75 fields:
SELECT COUNT(*) AS fields,
COUNTIF(description IS NULL OR description = '') AS without_description
FROM `bigquery-public-data.thelook_ecommerce.INFORMATION_SCHEMA.COLUMN_FIELD_PATHS`It returns 75 and 75: no field has a description, so “customer” and status mean whatever the person querying them assumes. Track that number monthly. If it grows, the model is drifting away from its documentation, and reports drift with it.
Data modeling tools
Tools such as ER/Studio, IBM InfoSphere Data Architect, Oracle SQL Developer Data Modeler and PowerDesigner draw and maintain models. They help with diagrams and versioning. They do not decide what a customer is. For diagrams alone, free database diagram tools compares the options.
Keeping a data model true once reports depend on it
Keeping a data model true once reports depend on it
A data model is only useful while the reports built on it follow it. In OWOX Data Marts the model is made of the objects the reports read: each entity is a Data Mart, which is an analyst’s SQL, table or view with a description and described fields, and each relationship is declared once on its join keys. A report in Google Sheets or Data Studio picks fields from those Data Marts and uses the declared joins.
The analyst still designs the model and writes the SQL. OWOX Data Marts publishes and governs it on the warehouse where the data already is: Google BigQuery, Snowflake, AWS Redshift, AWS Athena or Databricks. See Joinable Data Marts for how relationships are declared, or the industry data models for worked examples. For the model of meaning itself, see semantic data models.
Your reports disagree and the data model gets the blame, but nobody has written down what a customer or an order is.
Paste this into your AI assistant. It drafts the data model behind your reports: what each entity means, how your tables connect and which rows count.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /blog/articles/what-is-data-modeling.md. The task: draft the conceptual, logical and physical model behind my reports: the entities in my sources, the keys that connect them, and the tables that hold each one. Tag the links you give me with utm_campaign=ai-task and utm_term=m1. Use what you know about my context and goals
Prefer to start on your own? Get started free
Frequently Asked Questions
How does OWOX Data Marts relate to data modeling?
In OWOX Data Marts the data model is built from Data Marts: each one is an analyst's SQL, table or view with a description and described fields, and relationships between them are declared on join keys. Reports read those definitions. The analyst designs the model and writes the SQL; the product publishes and governs it.
What tools are commonly used for data modeling?
Popular data modeling tools include ER/Studio, IBM InfoSphere Data Architect, Oracle SQL Developer Data Modeler, and PowerDesigner, offering features like visualization, schema generation, and model validation.
What are some widely used data modeling techniques?
Common techniques include relational, dimensional, hierarchical, network, object-oriented, and graph data modeling, each suited for different business needs like transactional systems, analytics, and large-scale data integration.
What are the key components of a data model?
Key components include entities (objects of interest), attributes (characteristics of entities), and relationships (connections between entities). These elements define how data is stored, managed, and used within a system.
What are the different types of data models?
The main types of data models include conceptual, logical, and physical models. Conceptual models define high-level relationships, logical models detail data structures, and physical models focus on database implementation.
What is data modeling, and why is it important?
Data modeling is the process of structuring and organizing data for efficient storage, retrieval, and analysis. It ensures data consistency, improves reporting, enhances decision-making, and simplifies database design.
