SELECT column_name, generation_expression, extra
FROM information_schema.columns
WHERE table_schema = DATABASE()
  AND table_name = 'qipai_media_assets'
  AND column_name = 'scope_store_id';

SELECT index_name, GROUP_CONCAT(column_name ORDER BY seq_in_index) AS columns_in_order
FROM information_schema.statistics
WHERE table_schema = DATABASE()
  AND table_name = 'qipai_media_assets'
  AND index_name = 'uq_qipai_media_scope_checksum'
GROUP BY index_name;

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