| 12345678910111213141516171819202122232425 |
- -- 草场使用记录
- CREATE TABLE IF NOT EXISTS `biz_grassland_usage_record` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
- `grassland_id` bigint(20) NOT NULL COMMENT '草场ID biz_grassland',
- `pasture_id` bigint(20) NOT NULL COMMENT '养殖主体ID biz_pasture',
- `usage_area_mu` decimal(12,2) NOT NULL COMMENT '使用面积(亩)',
- `use_start_date` date NOT NULL COMMENT '开始使用日期',
- `use_end_date` date NOT NULL COMMENT '结束使用日期',
- `actual_use_days` int(11) NOT NULL COMMENT '实际使用天数',
- `grazing_head_count` int(11) NOT NULL COMMENT '放牧数量(头)',
- `grazing_method` tinyint(4) NOT NULL COMMENT '放牧方式1轮牧2自由3季节',
- `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '0存在 2删除',
- `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`),
- KEY `idx_grassland_id` (`grassland_id`),
- KEY `idx_pasture_id` (`pasture_id`),
- KEY `idx_create_time` (`create_time`),
- KEY `idx_del_flag` (`del_flag`),
- KEY `idx_use_start` (`use_start_date`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='草场使用记录';
|