text: import { db } from 'common/config'
  import Sequelize from 'sequelize'
  import modelsLoader from '../modelsLoader'
  
  let sequelize
  
  if (db.uri && db.uri.length > 0) {
    sequelize = new Sequelize(db.uri, db.options)
  } else {
    sequelize = new Sequelize(db.options)
  }
  
  module.exports = modelsLoader({
    sequelize,
    baseFolder: __dirname,
  })
  