<?php

/**
 * Migration: system modes table
 * Date: 2026-06-08
 */

return function(\Fury\Modules\ThinBuilder\ThinBuilder $tb) {

    $tb->query("
        CREATE TABLE IF NOT EXISTS shserv_modes (
            tag VARCHAR(32) PRIMARY KEY,
            is_active TINYINT(1) NOT NULL DEFAULT 0,
            updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
    ");

    return true;
};
