One-to-One Unidirectional Relationship

Learn how to model a unidirectional 1-1 relationship.

To model a one-to-one relationship, consider the scenario where a player has a profile that stores his details. We have a player table which stores the basic information about the player like id and name and a player_profile table which stores the additional details like the social media accounts of the players. There is a one-to-one relationship between player and player-profile tables, and in this lesson, we will model it as a one-way/ unidirectional relationship.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.