-- Worker Control tab and app_admin_config keys.
-- Tab: workerControlTab. Config: worker_control_enabled, worker_control_api_url.
INSERT IGNORE INTO app_tabs (tab_id, label, icon, sort_order, content_type, content_slug, requires_token, created_at, updated_at) VALUES
('workerControlTab', 'Worker Control', '👷', 23, 'native', NULL, 0, NOW(), NOW());
INSERT IGNORE INTO ftt_app_tabs (tab_id, label, icon, sort_order, content_type, content_slug, requires_token, created_at, updated_at) VALUES
('workerControlTab', 'Worker Control', '👷', 23, 'native', NULL, 0, NOW(), NOW());
INSERT IGNORE INTO app_feature_policy (tab_id, visibility, message_type, message_content, min_tier, allow_override_for_developer_admin, updated_at) VALUES
('workerControlTab', 'show', 'none', NULL, 'trial', 1, NOW());
INSERT IGNORE INTO ftt_app_feature_policy (tab_id, visibility, message_type, message_content, min_tier, allow_override_for_developer_admin, updated_at) VALUES
('workerControlTab', 'show', 'none', NULL, 'trial', 1, NOW());

-- Worker Control config (server-driven, app uses worker_control_api_url or FTT base + /api)
INSERT IGNORE INTO app_admin_config (config_key, config_value, updated_at) VALUES
('worker_control_enabled', '0', NOW()),
('worker_control_api_url', '', NOW());
INSERT IGNORE INTO ftt_app_admin_config (config_key, config_value, updated_at) VALUES
('worker_control_enabled', '0', NOW()),
('worker_control_api_url', '', NOW());
