|
|
@@ -9,10 +9,12 @@ CREATE TABLE `kku_farm_house_configs` (
|
|
|
`level` tinyint unsigned NOT NULL COMMENT '等级',
|
|
|
`output_bonus` decimal(5,2) NOT NULL DEFAULT '0.00' COMMENT '产出加成',
|
|
|
`special_land_limit` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '特殊土地上限',
|
|
|
- `upgrade_materials` json NOT NULL COMMENT '升级所需材料',
|
|
|
+ `upgrade_materials` int unsigned DEFAULT NULL COMMENT '升级所需消耗组ID,关联game_consume_groups表',
|
|
|
+ `farm_house_configs` int unsigned DEFAULT '1' COMMENT '该等级可用的土地数量',
|
|
|
`downgrade_days` int unsigned DEFAULT NULL COMMENT '降级天数,NULL表示不降级',
|
|
|
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
|
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
- UNIQUE KEY `idx_level` (`level`) USING BTREE
|
|
|
-) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='房屋等级配置表';
|
|
|
+ UNIQUE KEY `idx_level` (`level`) USING BTREE,
|
|
|
+ KEY `idx_upgrade_materials` (`upgrade_materials`)
|
|
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='房屋等级配置表';
|