I have an application that will store data in a an entity called Department.For this department i will have SUBDEPARTMENT1, SUBDEPARTMENT2 and SUBDEPARTMENT3 Now, I want to store massive data in database.those data are students. In RDBMS.the modelisation is simple. Just having one Entity called department and the 3 subdepartment will inherit from the father department. Can you please tell me how to model this in MongoDB?
I know subCollection but it does not look good because I will have also a collection called department that i will be able to store data in it.