private function getTableColumns($tables)
    {
        $database = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);

        $columns = array();
        foreach ($tables as $table) {
            $tmp = $database->getAll("SHOW COLUMNS FROM `$table`");
            foreach ($tmp as $sub) {
                $key = $sub['Field'];
                unset($sub['Field']);
                $columns[$table][$key] = $sub;
            }
        }

        return $columns;
    }