Skip to content

Data models

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

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 most 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 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):

You can see the name already gives us a hint of how those models are implemented: tables for the relational model, trees of 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 details, 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.


download all my books for free

  • javascript handbook
  • typescript handbook
  • css handbook
  • node.js handbook
  • astro handbook
  • html handbook
  • next.js pages router handbook
  • alpine.js handbook
  • htmx handbook
  • react handbook
  • sql handbook
  • git cheat sheet
  • laravel handbook
  • express handbook
  • swift handbook
  • go handbook
  • php handbook
  • python handbook
  • cli handbook
  • c handbook

subscribe to my newsletter to get them

Terms: by subscribing to the newsletter you agree the following terms and conditions and privacy policy. The aim of the newsletter is to keep you up to date about new tutorials, new book releases or courses organized by Flavio. If you wish to unsubscribe from the newsletter, you can click the unsubscribe link that's present at the bottom of each email, anytime. I will not communicate/spread/publish or otherwise give away your address. Your email address is the only personal information collected, and it's only collected for the primary purpose of keeping you informed through the newsletter. It's stored in a secure server based in the EU. You can contact Flavio by emailing flavio@flaviocopes.com. These terms and conditions are governed by the laws in force in Italy and you unconditionally submit to the jurisdiction of the courts of Italy.

Related posts about database: