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

CREATE TABLE `kku_farm_sow_logs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `land_id` bigint(20) unsigned NOT NULL COMMENT '土地ID',
  `crop_id` bigint(20) unsigned NOT NULL COMMENT '作物ID',
  `seed_id` bigint(20) unsigned NOT NULL COMMENT '种子ID',
  `sow_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '种植时间',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_user_id` (`user_id`) USING BTREE,
  KEY `idx_sow_time` (`sow_time`) USING BTREE,
  KEY `idx_seed_id` (`seed_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='种植记录表';
