There is a function called createModel in the tools library. You can access it via toolsLib.database.createModel() .
The parameters of the function are (name , properties , options ).
name is the name of the new model to create - properties is an object that contains all the model properties in sequelize format. The ID property is already set in the function so you don’t need to pass it.
options are additional sequelize options
This function will return the newly created sequelize model object. You can then use the returned model object as any other sequelize model object.