How to use Lucid models outside of Adonis framework?

Hi. I’m new to Adonis and I need to use Lucid models in a js file which is running outside of Adonis framework. Can anyone help me?

It is a JavaScript class, but what are you trying to achieve ?

I’m writing a job which runs every day automatically and I need to access MYSQL through Lucid models, but I encounter the following error on loading Adonis classes:

const Model = use(‘Model’)

ReferenceError: use is not defined

You can use require('path/to/Model') too