Prechádzať zdrojové kódy

添加旧物品模块迁移指南:说明旧表与新模块的对应关系

Your Name 5 mesiacov pred
rodič
commit
4c7f0ea006

+ 59 - 0
app/Module/GameItems_obsolete/OBSOLETE_MIGRATION.md

@@ -0,0 +1,59 @@
+# 旧物品模块表迁移指南
+
+## 1. 模块重构概述
+原`GameItems`模块已拆分为四个独立模块:
+- **Item**: 基础物品管理(本模块)
+- **ItemChest**: 宝箱系统
+- **ItemCraft**: 物品合成
+- **ItemDismantle**: 物品分解
+
+## 2. 数据表迁移对照
+
+### 2.1 基础物品表
+| 旧表 | 新模块 | 新表 | 说明 |
+|------|--------|------|------|
+| item_items | Item | items | 基础物品定义 |
+| item_categories | Item | 已废弃 | 分类功能由标签系统替代 |
+| item_instances | Item | user_items | 单独属性物品移至用户物品表 |
+| item_users | Item | user_items | 整合到统一用户物品表 |
+
+### 2.2 宝箱系统表
+| 旧表 | 新模块 | 新表 | 说明 |
+|------|--------|------|------|
+| item_chest_configs | ItemChest | chest_configs | 宝箱配置 |
+| item_pity_times | ItemChest | pity_times | 保底计数 |
+| item_chest_open_logs | ItemChest | open_logs | 开启日志 |
+
+### 2.3 物品合成表
+| 旧表 | 新模块 | 新表 | 说明 |
+|------|--------|------|------|
+| item_recipes | ItemCraft | recipes | 配方定义 |
+| item_recipe_materials | ItemCraft | recipe_materials | 配方材料 |
+| item_user_recipes | ItemCraft | user_recipes | 用户配方 |
+| item_craft_logs | ItemCraft | craft_logs | 合成日志 |
+
+### 2.4 物品分解表
+| 旧表 | 新模块 | 新表 | 说明 |
+|------|--------|------|------|
+| item_dismantle_rules | ItemDismantle | dismantle_rules | 分解规则 |
+| item_dismantle_logs | ItemDismantle | dismantle_logs | 分解日志 |
+
+## 3. 特殊处理表
+
+### 3.1 需要人工迁移的表
+| 表名 | 处理方式 |
+|------|----------|
+| item_groups | 迁移到Game模块的奖励组系统 |
+| item_group_items | 迁移到Game模块的奖励组系统 |
+
+### 3.2 功能替代表
+| 表名 | 替代方案 |
+|------|----------|
+| item_output_limits | 由Game模块的全局限制系统替代 |
+| item_user_output_counters | 由Game模块的玩家限制系统替代 |
+
+## 4. 完全废弃的表
+以下表不再使用,数据可归档删除:
+- item_freeze_logs
+- item_transaction_logs
+- item_metrics (所有排行榜相关表)