<?php
declare(strict_types=1);

return [
    'up' => "
        CREATE TABLE IF NOT EXISTS `countries` (
            `id`              BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
            `iso_code`        VARCHAR(3) NOT NULL,
            `name_ar`         VARCHAR(200) NOT NULL,
            `name_en`         VARCHAR(200) NOT NULL,
            `nationality_ar`  VARCHAR(200) NOT NULL,
            `nationality_en`  VARCHAR(200) NULL,
            `phone_code`      VARCHAR(10) NULL,
            `is_active`       TINYINT(1) NOT NULL DEFAULT 1,
            UNIQUE KEY `uq_countries_iso` (`iso_code`),
            INDEX `idx_countries_name_ar` (`name_ar`)
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
    ",
    'down' => "DROP TABLE IF EXISTS `countries`",
];