lib/hapiCrudHelper.js
function initModel (config) {
  if (typeof config.bookshelfModel.prototype.schema === 'undefined') {
    config.bookshelfModel.prototype.schema = {}
  }
  addConstraintsForForeignKeys(config.bookshelfModel, config.baseQuery)
  config.bookshelfModel.prototype.format = tableColumnRenamer.renameOnFormat
  config.bookshelfModel.prototype.parse = tableColumnRenamer.renameOnParse
  initJsonDateFormat(config.bookshelfModel)
}
function initModel (config) {
  if (typeof config.bookshelfModel.prototype.schema === 'undefined') {
    config.bookshelfModel.prototype.schema = {}
  }
  addConstraintsForForeignKeys(config.bookshelfModel, config.baseQuery)
  config.bookshelfModel.prototype.format = tableColumnRenamer.renameOnFormat
  config.bookshelfModel.prototype.parse = tableColumnRenamer.renameOnParse
  initJsonDateFormat(config.bookshelfModel)
}
Initializes the models from the config provided to make them usable with the exported crud function.