farm_fruit_growth_cycles.sql 1.5 KB

12345678910111213141516171819202122
  1. -- ******************************************************************
  2. -- 表 kku_farm_fruit_growth_cycles 的创建SQL
  3. -- 对应的Model: App\Module\Farm\Models\FarmFruitGrowthCycle
  4. -- 警告: 此文件由系统自动生成,禁止修改!
  5. -- ******************************************************************
  6. CREATE TABLE `kku_farm_fruit_growth_cycles` (
  7. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  8. `fruit_item_id` bigint(20) unsigned NOT NULL COMMENT '果实物品ID',
  9. `sprout_time` int(10) unsigned NOT NULL COMMENT '发芽期时间(秒)',
  10. `growth_time` int(10) unsigned NOT NULL COMMENT '成长期时间(秒)',
  11. `fruit_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '果实期时间(秒)',
  12. `mature_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '成熟期时间(秒,0表示无限)',
  13. `wither_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '枯萎期时间(秒,0表示无限)',
  14. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  15. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  16. PRIMARY KEY (`id`) USING BTREE,
  17. UNIQUE KEY `idx_fruit_item_id` (`fruit_item_id`) USING BTREE,
  18. KEY `idx_sprout_time` (`sprout_time`) USING BTREE,
  19. KEY `idx_growth_time` (`growth_time`) USING BTREE,
  20. KEY `idx_fruit_time` (`fruit_time`) USING BTREE
  21. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='果实生长周期配置表';