I am not able to understand where is head_of_departmenet backref is used. Here is the attached image for reference. So there are 2 questions:
- In is_head_of column of the Employee class table, we are still using department.name, could we have used head_of_department.name?
- Why did we use head_of_department as a backref at all, when we already have a backref called department? does that mean we cannot repeat backrefs?