mongodb - How to design NoSQL database to represent inheritance? -


how design nosql database (mongodb) represent hierarchy ?

public abstract class customer {   guid id;   string name;   decimal balance; }  public class vipcustomer: customer {   string address;   string phonenumber;       }  public class nonvipcustomer: customer {   string visitingreason;   int queuenumber; } 

are using object data mapper mongoose manage schemas? if so, might try extension github handle inheritance:

https://github.com/briankircho/mongoose-schema-extend


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

javascript - Using jquery append to add option values into a select element not working -