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:
Comments
Post a Comment