PhilWaldmann / openrecord

Make ORMs great again!
https://openrecord.js.org
MIT License
486 stars 38 forks source link

Single-table inheritance support? #85

Closed jfrux closed 5 years ago

jfrux commented 5 years ago

Looking for an example of single-table inheritance similar to Rails... is this possible with your library? I have an existing database that is using this and was trying to build models around it but I could just use a single model and scopes I suppose but was trying to make it more like its Rails counterpart.

Thanks and great job!

PhilWaldmann commented 5 years ago

if you want to share common functionality between models, try mixins. But pointing multiple models to the same table is currently not supported.