-- Add Tenant Table Manager modal
INSERT INTO ui_modals (name, config, tenant_id, branch_id, icon, aria_label, description)
SELECT 'tenant_table_manager', '{"title":"Tenant Table Manager","body":[{"type":"table","options":{"tableName":"tenant_tables","showGlobalSearch":false,"addButton":false}}],"footer":[{"type":"button","label":"Close","onClick":"closeModal"}]}', NULL, NULL, 'fa-table-list', 'Tenant Table Manager', 'Tenant Table Manager'
WHERE NOT EXISTS (SELECT 1 FROM ui_modals WHERE name = 'tenant_table_manager');
