I am trying to lay out the concept for a Relational DB and I ran into some conceptual Problems:
- If I have multiple discrete Entities that are "nested" in each other/have a hierarchy e.g.:
Bosses can have multiple Employees. These employees have different Projects they do and One Project has again multiple sections.
So
B1-Bn:
E1-En
P1-Pn
Section1 -SectionN
How would that be best mapped in a database?
Or in other words, how is this hierarchy best mapped in a relational db?
- Now I have Costumers that interact with these Employees.
They are met by the bosses Then they decide which employee will work for them. Then they are assigned Projects, with one or more sections.
How would that be best mapped.
- the Relations 1-n, m-n, 1-1: Can they be used for e.g.:
This is a Foreignkey because of the 1-n relationship. This is a ManytoManyField because of the m-n relationship.
- And is there a excellent online tool to better understand/visualize that.
Thanks so much for your time!