-- 牦牛出栏数据填报(物理删除,无 del_flag) CREATE TABLE IF NOT EXISTS `biz_yak_outbound_report` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `stat_year` int(11) NOT NULL COMMENT '所属年份', `stat_month` int(11) NOT NULL COMMENT '所属月份(1-12)', `town_dept_id` bigint(20) NOT NULL COMMENT '所属乡镇dept_id', `town_name` varchar(64) NOT NULL COMMENT '乡镇名称', `farmer_household_count` int(11) DEFAULT NULL COMMENT '农牧户户数', `farmer_population_count` int(11) DEFAULT NULL COMMENT '农牧户人数', `yak_outbound_count` int(11) DEFAULT NULL COMMENT '牦牛出栏数(头)', `cattle_outbound_count` int(11) DEFAULT NULL COMMENT '黄牛/奶牛/犏牛出栏数(头)', `sheep_outbound_count` int(11) DEFAULT NULL COMMENT '绵羊出栏数(只)', `goat_outbound_count` int(11) DEFAULT NULL COMMENT '山羊出栏数(只)', `horse_mule_outbound_count` int(11) DEFAULT NULL COMMENT '马骡出栏数(匹)', `donkey_outbound_count` int(11) DEFAULT NULL COMMENT '驴出栏数(头)', `self_consumption_cattle_count` int(11) DEFAULT NULL COMMENT '自食牛头数(头)', `self_consumption_sheep_count` int(11) DEFAULT NULL COMMENT '自食绵羊只数(只)', `self_consumption_goat_count` int(11) DEFAULT NULL COMMENT '自食山羊只数(只)', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`), UNIQUE KEY `uk_year_month_town` (`stat_year`, `stat_month`, `town_dept_id`), KEY `idx_stat_year_month` (`stat_year`, `stat_month`), KEY `idx_town_dept_id` (`town_dept_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='牦牛出栏数据填报';