public function convertToDoctrineSchema(Database $database) : \Doctrine\DBAL\Schema\Schema
    {
        $schema = new Schema();

        foreach ($database->getTables() as $table) {
            $this->mapTable($schema, $table);
        }

        return $schema;
    }