<?php
require_once __DIR__ . '/config.php';

$db = db();
$sql = "CREATE TABLE IF NOT EXISTS sectors (
    id INT(11) NOT NULL,
    galaxy_id INT(11) DEFAULT NULL,
    name VARCHAR(255) DEFAULT NULL,
    status VARCHAR(50) DEFAULT 'unexplored',
    PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;";

$db->exec($sql);
echo "Table 'sectors' created successfully.\n";