How do I model a company's hierarchy? Each employee has zero or more managers and at the same time, might have zero or more employees reporting up to him/her.
Example: CEO --> Directors --> Managers--> Individual Contributors
Is this a HABTM relationship with one table ie. an employee belonging to many employees/having many employees?
Any help or direction would be aprpeciated.