| 12345678910111213141516171819202122 |
- -- ******************************************************************
- -- 表 kku_item_chest_configs 的创建SQL
- -- 对应的Model: App\Module\GameItems\Models\ItemChestConfig
- -- 警告: 此文件由系统自动生成,禁止修改!
- -- ******************************************************************
- CREATE TABLE `kku_item_chest_configs` (
- `id` int NOT NULL AUTO_INCREMENT COMMENT '记录ID,主键',
- `item_id` int NOT NULL COMMENT '宝箱物品ID,外键关联kku_item_items表',
- `consume_group_id` int DEFAULT NULL COMMENT '消耗组ID,外键关联kku_game_consume_groups表(可为空)',
- `reward_group_id` int NOT NULL COMMENT '奖励组ID,外键关联kku_game_reward_groups表',
- `condition_group_id` int DEFAULT NULL COMMENT '条件组ID,外键关联kku_game_condition_groups表(可为空)',
- `is_active` tinyint DEFAULT '1' COMMENT '是否激活(0:否, 1:是)',
- `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
- `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
- PRIMARY KEY (`id`) USING BTREE,
- UNIQUE KEY `idx_item_id` (`item_id`) USING BTREE COMMENT '每个宝箱物品只能有一个配置',
- KEY `idx_consume_group` (`consume_group_id`) USING BTREE,
- KEY `idx_reward_group` (`reward_group_id`) USING BTREE,
- KEY `idx_condition_group` (`condition_group_id`) USING BTREE,
- KEY `idx_is_active` (`is_active`) USING BTREE
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='宝箱配置表';
|