protected function createTables()
    {
        $tablesCreated = false;

    // sitemap_sitemaprecord table
        $tableSchema = Craft::$app->db->schema->getTableSchema('{{%dolphiq_sitemap_entries}}');
        if ($tableSchema === null) {
            $tablesCreated = true;
            $this->createTable(
                '{{%dolphiq_sitemap_entries}}',
                [
                    'id' => $this->primaryKey(),
                    'dateCreated' => $this->dateTime()->notNull(),
                    'dateUpdated' => $this->dateTime()->notNull(),
                    'uid' => $this->uid(),
                // Custom columns in the table
                    'linkId' => $this->integer()->notNull(),
                    'type' => $this->string(30)->notNull()->defaultValue(''),
                    'priority' => $this->double(2)->notNull()->defaultValue(0.5),
                    'changefreq' => $this->string(30)->notNull()->defaultValue(''),
                ]
            );
        }

        return $tablesCreated;
    }