UPDATE app_tabs SET sort_order = sort_order + 1 WHERE sort_order >= 13;
UPDATE ftt_app_tabs SET sort_order = sort_order + 1 WHERE sort_order >= 13;

INSERT IGNORE INTO app_tabs (tab_id, label, icon, sort_order, content_type, content_slug, requires_token, created_at, updated_at) VALUES
('documentsTab', 'Documents', '📄', 13, '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
('documentsTab', 'Documents', '📄', 13, '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
('documentsTab', '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
('documentsTab', 'show', 'none', NULL, 'trial', 1, NOW());
