I understand where to put foreign keys for 1:1.
Owner(pet_id) [HAS] Pet
Pet(owner_id) [BELONGS TO] Owner
But consider an example like:
Profile(section_id) [HAS] MoviesSection
Profile(section_id) [HAS] BooksSection
MoviesSection(profile_id) [BELONGS TO] Profile
BooksSection(profile_id) [BELONGS TO] Profile
How do I decide whether I want to use the HAS or the BELONGS TO e.g. if I wanted to "grab all the sections of a profile to display at once". It feels like either would work?
HAS
profile
---
id movies_section_id books_section_id
movies_section
---
id favorite_movie favorite_actor
books_section
---
id favorite_book favorite_author
vs.
BELONGS TO
profile
---
id
movies_section
---
id profile_id favorite_movie favorite_actor
books_section
---
id profile_id favorite_book favorite_author
What additional questions should I be asking to decide? For example if a MoviesSection cannot exist without a Profile, would that make a difference?