数据库迁移状态总结
==================

✅ 已成功迁移的表（8个，共约23,721条记录）:
  1. AiModel: 9条
  2. AiProvider: 7条  
  3. AuthSettings: 1条
  4. Chat: 6,010条
  5. Document: 42条
  6. GeneratedImage: 17,627条
  7. LoginToken: 29条
  8. User: 1条

❌ 缺失数据的表（11个，需要迁移）:
  1. Message: 0条 ⚠️ 重要 - 聊天消息数据
  2. Message_v2: 0条 ⚠️ 重要 - 新版本消息数据
  3. NavLinks: 0条 - 导航链接
  4. SiteSettings: 0条 ⚠️ 重要 - 网站设置
  5. StorageConfig: 0条 - 存储配置
  6. Stream: 0条 - 流式数据
  7. Suggestion: 0条 - 建议数据
  8. SystemSettings: 0条 ⚠️ 重要 - 系统设置
  9. ToolConfig: 0条 - 工具配置
  10. Vote: 0条 - 投票数据
  11. Vote_v2: 0条 - 新版本投票数据

迁移步骤：
1. 上传备份文件到新服务器: scp migration-backup-complete/database_complete.dump root@70.39.205.74:/tmp/
2. 上传迁移脚本: scp migrate-missing-tables-remote.sh root@70.39.205.74:/root/
3. 在新服务器上执行: ssh root@70.39.205.74 "chmod +x /root/migrate-missing-tables-remote.sh && /root/migrate-missing-tables-remote.sh"
