Hello all. This blog will look at the basics of relationships.
What is a Relationship?
Any association between two entity types is called a “relationship”. A relationship works between two relational database tables where one table has the foreign key of the other table’s primary key. Relationships allow us to split and store data in different tables.
There are three types of relationships in existence.

  • One-to-one relationships
  • Many-to-one relationships
  • Many-to-many relationships

#joan-louji #many-to-many-relationship #one-to-one #relationships #django-relationship

Django Model with Relationships — What is Relationship and why to use it?
1.15 GEEK