| 1234567891011121314151617181920212223242526 |
- -- ******************************************************************
- -- 表 kku_farm_seeds 的创建SQL
- -- 对应的Model: App\Module\Farm\Models\FarmSeed
- -- 警告: 此文件由系统自动生成,禁止修改!
- -- ******************************************************************
- CREATE TABLE `kku_farm_seeds` (
- `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
- `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '种子名称',
- `type` tinyint unsigned NOT NULL DEFAULT '1' COMMENT '种子类型:1普通,2神秘,3巨化',
- `seed_time` int unsigned NOT NULL COMMENT '种子期时间(秒)',
- `sprout_time` int unsigned NOT NULL DEFAULT '18000' COMMENT '发芽期时间(秒)',
- `growth_time` int unsigned NOT NULL DEFAULT '25000' COMMENT '成长期时间(秒)',
- `mature_time` int unsigned NOT NULL DEFAULT '0' COMMENT '成熟期时间(秒,0表示无限)',
- `wither_time` int unsigned NOT NULL DEFAULT '0' COMMENT '枯萎期时间(秒,0表示无限)',
- `min_output` int unsigned NOT NULL COMMENT '最小产出',
- `max_output` int unsigned NOT NULL COMMENT '最大产出',
- `item_id` bigint unsigned NOT NULL COMMENT '对应的物品ID',
- `disaster_resistance` json DEFAULT NULL COMMENT '灾害抵抗',
- `display_attributes` json DEFAULT NULL COMMENT '显示属性',
- `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,
- KEY `idx_type` (`type`) USING BTREE,
- KEY `idx_item_id` (`item_id`) USING BTREE
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='种子配置表';
|