Data is defined as the collection of information and a database is referred to as a collection of related data.
A database model shows the logical structure of a database, including the relationships and constraints that determine how data can be stored and accessed.
The “data model” refers to the way data is organized, documented, and defined within a database. The data model definition also describes the elements used to standardize the system, such as associations, entities, and requirements.
It is basically classified into 3 types:
A conceptual data model identifies the entities that describe the data and relationships between them. Conceptual data models only show the highest-level relationships between entities, not attributes or primary keys within the data model.
A physical data model identifies the table structures that will be built in the database, including all tables, columns, primary keys, and foreign keys used to identify the relationships between tables.
A relational data model is the basis for SQL databases. Relational data models have a fixed schema and deal with structured data. In a relational database management system, or RDBMS, the database is the outermost container that has data associated with an application.
The Hierarchical Model was the first database management system model. The hierarchical Model is one of the oldest models in the data model which was developed by IBM in the 1950s. The data is organized into a tree-like structure where each record consists of one parent record and many children.
The Network Model was formalized by the Database Task group in the 1960s. This model is the generalization of the hierarchical model.
In the Object-Oriented Data Model, data and their relationships are contained in a single structure which is referred to as an object in this data model. In this, real-world problems are represented as objects with different attributes.