SELECT table_name FROM information_schema.tables
WHERE table_schema = DATABASE()
  AND table_name IN ('qipai_scene_codes', 'qipai_scene_scan_events', 'qipai_order_user_access')
ORDER BY table_name;

SELECT table_name, index_name FROM information_schema.statistics
WHERE table_schema = DATABASE()
  AND ((table_name = 'qipai_scene_codes' AND index_name = 'idx_qipai_scene_target')
    OR (table_name = 'qipai_scene_scan_events' AND index_name = 'idx_qipai_scene_scans_time')
    OR (table_name = 'qipai_order_user_access' AND index_name = 'idx_qipai_order_access_user'))
GROUP BY table_name, index_name ORDER BY table_name;

SELECT version, name FROM qipai_schema_migrations WHERE version = '2026061810';
