docs: function initModelSchema (args) {
      var controller = this
      var model = this.model
      // if model does not have schema do not create schema controller
      if (!model.schemaData) {
          return
      }
      // get accountId column
      var accountIdColumn = model.columnName('accountId') 
      // set role to authenticated if model requires account id
      var role = args.defaultRole || (accountIdColumn && model.columns[accountIdColumn].null === false ? 'authenticated' : 'all')
      // index inputs
      var input = {
          // optionally get schema for action
          action: 'query.action',
          // get full schema including meta data
          meta: 'query.meta',
      }
      // create path if it does not exist
      if (!this.paths['/schema']) {
          this.paths['/schema'] = {}
      }
      // add GET /schema handler
      this.paths['/schema'].get = [
          {
              input: input,
              method: function (args) {
                  return schema(controller, args)
              },
              methodName: 'schema',
              role: role,
          }
      ]
  }