APIs to define models in json and convert to real ORM models