| 123456789101112131415161718192021222324252627 |
- -- 畜牧监控点位
- -- 业务说明见 doc/视频监控系统/对接畜牧监控/畜牧监控技术方案.md(v1.2)
- CREATE TABLE IF NOT EXISTS `biz_livestock_monitor` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
- `monitor_id` varchar(32) NOT NULL COMMENT '摄像头ID',
- `monitor_name` varchar(32) NOT NULL COMMENT '监控名称',
- `owner_type` tinyint(4) DEFAULT NULL COMMENT '1养殖主体 2交易市场',
- `owner_id` bigint(20) DEFAULT NULL COMMENT '主体ID',
- `owner_name` varchar(64) DEFAULT NULL COMMENT '主体名称',
- `enclosure_name` varchar(64) DEFAULT NULL COMMENT '圈舍',
- `install_location` varchar(32) DEFAULT NULL COMMENT '安装位置',
- `video_source` varchar(32) NOT NULL COMMENT '视频来源:wvp/ys7/url',
- `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 '更新时间',
- PRIMARY KEY (`id`),
- KEY `idx_monitor_name` (`monitor_name`),
- KEY `idx_monitor_id` (`monitor_id`),
- KEY `idx_owner` (`owner_type`, `owner_id`),
- KEY `idx_create_time` (`create_time`),
- KEY `idx_del_flag` (`del_flag`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='畜牧监控点位';
|