Select the correct type of relationship for each scenario from the options: one-to-one, one-to-many, or many-to-many.
Relationships between models
Identify relationship types II
Report a typo
Choose one option for each row
| One-to-one | One-to-many | Many-to-many | |
|---|---|---|---|
| An order in an e-commerce platform contains multiple items. | |||
| A user can join multiple groups on a social media platform, and a group can contain multiple users. | |||
| A user can have a single set of settings in an application. | |||
| A movie can have multiple actors, and each actor can work on multiple movies. | |||
| A company can have multiple employees |
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.