<?php
declare(strict_types=1);

return [
    'up' => "
CREATE TABLE IF NOT EXISTS playground_schedule_slots (
    id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    schedule_id INT UNSIGNED NOT NULL,
    slot_date DATE NOT NULL,
    slot_hour TIME NOT NULL,
    row_number INT UNSIGNED NULL,
    coach_id INT UNSIGNED NULL,
    academy_id INT UNSIGNED NULL,
    group_type VARCHAR(30) NULL,
    max_trainees INT UNSIGNED NULL,
    age_group_ar VARCHAR(50) NULL,
    gender VARCHAR(10) NULL,
    notes TEXT NULL,
    created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
    updated_at DATETIME NULL,
    KEY idx_schedule_date_hour (schedule_id, slot_date, slot_hour),
    KEY idx_coach (coach_id),
    KEY idx_academy (academy_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci",
    'down' => "DROP TABLE IF EXISTS playground_schedule_slots",
];
