-- Migration 061: Seed section policies for home, testing, and wireless tabs
-- Adds per-section visibility rows to ftt_tab_section_policy for new tabs.

-- Seed: Home tab sections
INSERT IGNORE INTO ftt_tab_section_policy (tab_id, section_id, section_label, visibility, min_tier) VALUES
  ('homeTab', 'homeStatus',       'Home Status',        'show', 'trial'),
  ('homeTab', 'homeWifi',         'Home WiFi',          'show', 'trial'),
  ('homeTab', 'homeDeviceInfo',   'Device Info',        'show', 'trial'),
  ('homeTab', 'homeQuickActions', 'Quick Actions',      'show', 'trial'),
  ('homeTab', 'homeAppNews',      'App News',           'show', 'trial');

-- Seed: Testing tab sections
INSERT IGNORE INTO ftt_tab_section_policy (tab_id, section_id, section_label, visibility, min_tier) VALUES
  ('testingTab', 'testingPing',         'Ping',             'show', 'trial'),
  ('testingTab', 'testingSpeedtest',    'Speed Test',       'show', 'trial'),
  ('testingTab', 'testingConnectivity', 'Port Scan',        'show', 'trial'),
  ('testingTab', 'testingDns',          'Network Discovery','show', 'trial');

-- Seed: Wireless tab sections
INSERT IGNORE INTO ftt_tab_section_policy (tab_id, section_id, section_label, visibility, min_tier) VALUES
  ('wirelessTab', 'wirelessBluetooth', 'WiFi Scanner',    'show', 'trial'),
  ('wirelessTab', 'wirelessNfc',       'WiFi Analysis',   'show', 'trial'),
  ('wirelessTab', 'wirelessHotspot',   'Wireless Tools',  'show', 'trial');
