Inheriting Mongoose schemas
<p>I wanted to make a base 'Entity Schema', and other model entities would inherit from it. 
I did it, kinda, but then strange thing happened. </p>

<p>Those are my schemas: </p>

<ul>
<li>AbstractEntitySchema</li>
<li>MessageSchema</li>
<li>UserSchema</li>
<li>RoomSchema</li>
</ul>

<p>File: <a href="https://github.com/mihaelamj/nodechat/blob/master/models/db/mongo/schemas.js" rel="noreferrer">https://github.com/mihaelamj/nodechat/blob/master/models/db/mongo/schemas.js</a></p>

<p>But in MongoDB, they are all saved in the same document store: 'entity models' not separate ones, like Messages, Users..
Did I get what was supposed to happen, but not what I wanted, separate stores?
If so I will just make a basic JSON/object as entity and append the appropriate properties for each entity. Or is there a better way?
Thanks.</p>