farm_seeds.sql 1.8 KB

123456789101112131415161718192021222324252627
  1. -- ******************************************************************
  2. -- 表 kku_farm_seeds 的创建SQL
  3. -- 对应的Model: App\Module\Farm\Models\FarmSeed
  4. -- 警告: 此文件由系统自动生成,禁止修改!
  5. -- ******************************************************************
  6. CREATE TABLE `kku_farm_seeds` (
  7. `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  8. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '种子名称',
  9. `type` tinyint unsigned NOT NULL DEFAULT '1' COMMENT '种子类型:1普通,2神秘,3巨化',
  10. `seed_time` int unsigned NOT NULL COMMENT '种子期时间(秒)',
  11. `sprout_time` int unsigned NOT NULL DEFAULT '18000' COMMENT '发芽期时间(秒)',
  12. `growth_time` int unsigned NOT NULL DEFAULT '25000' COMMENT '成长期时间(秒)',
  13. `mature_time` int unsigned NOT NULL DEFAULT '0' COMMENT '成熟期时间(秒,0表示无限)',
  14. `wither_time` int unsigned NOT NULL DEFAULT '0' COMMENT '枯萎期时间(秒,0表示无限)',
  15. `min_output` int unsigned NOT NULL COMMENT '最小产出',
  16. `max_output` int unsigned NOT NULL COMMENT '最大产出',
  17. `disaster_max_output` int unsigned NOT NULL DEFAULT '2000' COMMENT '有灾害时最大产出',
  18. `item_id` bigint unsigned NOT NULL COMMENT '对应的物品ID',
  19. `disaster_resistance` json DEFAULT NULL COMMENT '灾害抵抗',
  20. `display_attributes` json DEFAULT NULL COMMENT '显示属性',
  21. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  22. `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  23. PRIMARY KEY (`id`) USING BTREE,
  24. KEY `idx_type` (`type`) USING BTREE,
  25. KEY `idx_item_id` (`item_id`) USING BTREE
  26. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='种子配置表';