-- ******************************************************************
-- 表 kku_farm_seed_outputs 的创建SQL
-- 对应的Model: App\Module\Farm\Models\FarmSeedOutput
-- 警告: 此文件由系统自动生成，禁止修改！
-- ******************************************************************

CREATE TABLE `kku_farm_seed_outputs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `seed_id` bigint unsigned NOT NULL COMMENT '种子ID',
  `item_id` bigint unsigned NOT NULL COMMENT '产出物品ID',
  `min_amount` int unsigned NOT NULL COMMENT '最小产出数量',
  `max_amount` int unsigned NOT NULL COMMENT '最大产出数量',
  `probability` decimal(7,4) NOT NULL COMMENT '产出概率(0-1)',
  `is_default` tinyint(1) NOT NULL DEFAULT '0' 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_seed_id` (`seed_id`) USING BTREE,
  KEY `idx_item_id` (`item_id`) USING BTREE,
  KEY `idx_probability` (`probability`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='种子产出配置表';
