SELECT table_name FROM information_schema.tables
WHERE table_schema = DATABASE() AND table_name = 'qipai_user_admin_profiles';

SELECT code FROM qipai_permissions
WHERE code IN ('user.read', 'staff.manage', 'session.reset')
ORDER BY code;

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