<?php
declare(strict_types=1);

return [
    'up' => "ALTER TABLE `player_medical_records`
ADD COLUMN `approval_status` VARCHAR(30) NOT NULL DEFAULT 'pending' COMMENT 'pending, approved, rejected' AFTER `result`,
ADD COLUMN `approved_by` BIGINT UNSIGNED NULL AFTER `approval_status`,
ADD COLUMN `approved_at` TIMESTAMP NULL AFTER `approved_by`,
ADD COLUMN `rejection_reason` VARCHAR(500) NULL AFTER `approved_at`,
ADD INDEX `idx_pmr_approval` (`approval_status`)",
    'down' => "ALTER TABLE `player_medical_records`
DROP INDEX `idx_pmr_approval`,
DROP COLUMN `rejection_reason`,
DROP COLUMN `approved_at`,
DROP COLUMN `approved_by`,
DROP COLUMN `approval_status`",
];
