<?php
declare(strict_types=1);

return [
    'up' => "
        CREATE TABLE IF NOT EXISTS `qualifications` (
            `id`         BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
            `code`       VARCHAR(20) NOT NULL,
            `name_ar`    VARCHAR(100) NOT NULL,
            `name_en`    VARCHAR(100) NOT NULL,
            `sort_order` INT UNSIGNED NOT NULL DEFAULT 0,
            `is_active`  TINYINT(1) NOT NULL DEFAULT 1,
            UNIQUE KEY `uq_qualifications_code` (`code`)
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
    ",
    'down' => "DROP TABLE IF EXISTS `qualifications`",
];