item_dismantle_rules.sql 1.3 KB

123456789101112131415161718192021
  1. -- ******************************************************************
  2. -- 表 kku_item_dismantle_rules 的创建SQL
  3. -- 对应的Model: App\Module\GameItems\Models\ItemDismantleRule
  4. -- 警告: 此文件由系统自动生成,禁止修改!
  5. -- ******************************************************************
  6. CREATE TABLE `kku_item_dismantle_rules` (
  7. `id` int NOT NULL AUTO_INCREMENT COMMENT '规则ID,主键',
  8. `item_id` int DEFAULT NULL COMMENT '物品ID,外键关联kku_item_items表',
  9. `category_id` int DEFAULT NULL COMMENT '分类ID,外键关联kku_item_categories表',
  10. `min_rarity` tinyint DEFAULT '1' COMMENT '最小适用稀有度',
  11. `max_rarity` tinyint DEFAULT '1' COMMENT '最大适用稀有度',
  12. `priority` int DEFAULT '0' COMMENT '规则优先级',
  13. `is_active` tinyint DEFAULT '1' COMMENT '是否激活(0:否, 1:是)',
  14. `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  15. `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  16. PRIMARY KEY (`id`) USING BTREE,
  17. KEY `idx_item_id` (`item_id`) USING BTREE,
  18. KEY `idx_category_id` (`category_id`) USING BTREE,
  19. KEY `idx_priority` (`priority`) USING BTREE
  20. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='物品分解规则表';