-- Drive Cloner tab and app_admin_config keys.
-- Tab: driveClonerTab. Config: drive_cloner_enabled, drive_cloner_buffer_kb, drive_cloner_max_file_mb.
INSERT IGNORE INTO app_tabs (tab_id, label, icon, sort_order, content_type, content_slug, requires_token, created_at, updated_at) VALUES
('driveClonerTab', 'Drive Cloner', '💾', 22, '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
('driveClonerTab', 'Drive Cloner', '💾', 22, '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
('driveClonerTab', '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
('driveClonerTab', 'show', 'none', NULL, 'trial', 1, NOW());

-- Drive Cloner config (server-driven, app can override locally in Settings)
INSERT IGNORE INTO app_admin_config (config_key, config_value, updated_at) VALUES
('drive_cloner_enabled', '1', NOW()),
('drive_cloner_buffer_kb', '256', NOW()),
('drive_cloner_max_file_mb', '0', NOW());
INSERT IGNORE INTO ftt_app_admin_config (config_key, config_value, updated_at) VALUES
('drive_cloner_enabled', '1', NOW()),
('drive_cloner_buffer_kb', '256', NOW()),
('drive_cloner_max_file_mb', '0', NOW());
