code: function initModels(seqObj, modelFiles, models, tablePrefix) {
      modelFiles.forEach((item) => {
        var modelFn;
        try {
          modelFn = require(item.fullPath);
        } catch (e) {
          console.error('Thorin.sql: could not require model: ' + item.fullPath + '\n', e.stack);
          return;
        }
        if (modelFn == null) return;  // we skip it
        if (typeof modelFn !== 'function') {
          console.error(thorin.error('SQL.INVALID_MODEL', 'SQL Model: ' + item.fullPath + ' must export a function(modelObj){}'));
          return;
        }
        if (modelFn.name === 'extend') {
          if (typeof extendModels[item.code] === 'undefined') extendModels[item.code] = [];
          extendModels[item.code].push(modelFn);
          return;
        }
        let modelObj = loader.buildModel(seqObj, modelFn, item, tablePrefix);
        if (modelObj) {
          if (typeof models[modelObj.code] !== 'undefined') {
            console.error(thorin.error('SQL.ADD_MODEL', 'SQL Store: model ' + modelObj.code + ' was already declared.'));
            return;
          }
          models[modelObj.code] = modelObj;
        }
      });
    }
docs: /*
  initialize the models and create their appropiate model instance.