I have recently started learning NoSQL databases, and I am currently working in MongoDB. I have a question regarding the design of the database, specifically how would an IsA relationship translate to a NoSQL database? Say I have a database with employees and customers, both have accounts that include "email, name, password, etc..", how would I design this?
I see 2 options based on what I have learned so far:
1- Include all of the fields in both of the models
2- Create an account parent model, and add a reference to the account inside each
of the employee and customer models
Is there an option that I am not aware of that would be perfect for this kind of design?