(this is extending the original source of https://github.com/dmfrancisco/Desligado)
I have separated the original sync.js file into separate configurations files to support multiple entities.
- database-util.js Contains CRUD and CURD Wrapper
- database.js Contains database init, schema config and CRUD settings
- sync.js Contains synchronization logic
To add new entities, refer database.js and sync.js