Ionic SQLite ORM, database service design

Hello Ionic community,

Ive been developing an app using the SQLite native plugin, and as you can guess the database code gets harder and harder to maintain as time goes on. Its ok when your app has a few simple tables, but as soon as you have more than a few and some of them are relational it gets pretty messy.

So whats your experiences and solutions to keep the database code cleaner and more maintainable, has anyone found any ORMs?

The closest I found was typerom but its not compatible with the SQLite native.