hapipal / schwifty

A model layer for hapi integrating Objection ORM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Write helper for ensuring two models are compatible

devinivy opened this issue · comments

For two models to be compatible in schwifty-land, one model must extend the other and they must share the same class name.

We also need to ensure tableNames are the same, for migrations compatibility. (Thanks @wswoodruff!)