AI Workshop: learn to build apps with AI →
Database Theory: Data models

Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.


Data Models define how we give a structure to data, and how data is connected to other data.

We have many different kinds of data models. They all can be grouped under 2 main umbrellas: conceptual models and logic models.

The best-known conceptual model is the Entity-Relationship Model, also called ER. It’s the best way to organize data at first, when you are in the design phase, because it’s the model that’s nearest to how we think, and it’s not linked to any specific implementation.

Logic models on the other hand are closer to the implementation.

Logic models include (among many others):

  • The Relational Model
  • The Hierarchical Model
  • The Reticular model
  • The Object model

You can see the name already gives us a hint of how those models are implemented: tables for the relational model, trees for the hierarchical model, graphs for the reticular model, objects for the object model.

The relational model is the logic model that we’ll soon see in more detail, as it’s the base of the popular relational databases, including PostgreSQL, MySQL, SQLite and SQL Server.

Conceptual models and logic models are two different tools. Using one does not exclude the other. We could start with a conceptual model and then use a logic model to implement it.

Lessons in this unit:

0: Introduction
1: Information systems, data and information
2: ▶︎ Data models
3: What is a Database? And a DBMS?
4: Introduction to the ER Data Model
5: The Relational Model
6: Relational Databases
7: Relational Algebra
8: Introduction to SQL
9: Do you always need a database for your app?