<?php
declare(strict_types=1);

return [
    'up' => "
CREATE TABLE IF NOT EXISTS playground_configurations (
    id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    facility_id INT UNSIGNED NOT NULL,
    playground_name_ar VARCHAR(200) NOT NULL,
    playground_type VARCHAR(30) NOT NULL,
    has_rows TINYINT(1) NOT NULL DEFAULT 0,
    row_count INT UNSIGNED NULL,
    row_label_ar VARCHAR(50) NOT NULL DEFAULT 'حارة',
    grid_id INT UNSIGNED NULL,
    operating_hours_json JSON NULL,
    notes TEXT NULL,
    is_active TINYINT(1) NOT NULL DEFAULT 1,
    created_by INT UNSIGNED NULL,
    created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
    updated_at DATETIME NULL,
    KEY idx_facility (facility_id),
    KEY idx_type (playground_type)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci",
    'down' => "DROP TABLE IF EXISTS playground_configurations",
];
