<?php
declare(strict_types=1);

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