大量更新
This commit is contained in:
File diff suppressed because one or more lines are too long
2016
999-数据库脚本/飞行服务/2.0-xa/1-sky-xiongan.sql
Normal file
2016
999-数据库脚本/飞行服务/2.0-xa/1-sky-xiongan.sql
Normal file
File diff suppressed because it is too large
Load Diff
198
999-数据库脚本/飞行服务/2.0-xa/2-center-xiongan.sql
Normal file
198
999-数据库脚本/飞行服务/2.0-xa/2-center-xiongan.sql
Normal file
@@ -0,0 +1,198 @@
|
||||
-- MySQL dump 10.13 Distrib 8.0.36, for Linux (x86_64)
|
||||
--
|
||||
-- Host: 144.7.97.70 Database: cmii
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 8.1.0
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!50503 SET NAMES utf8mb4 */;
|
||||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||||
/*!40103 SET TIME_ZONE='+00:00' */;
|
||||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||||
|
||||
|
||||
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `cmii_fly_center` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin */ /*!80016 DEFAULT ENCRYPTION='N' */;
|
||||
|
||||
USE `cmii_fly_center`;
|
||||
|
||||
--
|
||||
-- Table structure for table `command_log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `command_log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `command_log` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`drone_sn` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '无人机 sn',
|
||||
`gateway_sn` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '网关序列号',
|
||||
`gateway_type` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '网关类型',
|
||||
`cmd_id` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '指令id',
|
||||
`cmd_type` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '指令类型',
|
||||
`cmd_params` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '指令参数',
|
||||
`response_data` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '指令响应数据',
|
||||
`error_msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '指令错误信息',
|
||||
`status` int NOT NULL COMMENT '指令状态',
|
||||
`start_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '指令开始时间',
|
||||
`end_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '指令结束时间',
|
||||
`cost_time` bigint DEFAULT NULL COMMENT '指令耗时,单位 ms',
|
||||
`trace_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '追踪id',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
KEY `command_log_cmd_type_index` (`cmd_type`) USING BTREE,
|
||||
KEY `command_log_drone_sn_index` (`drone_sn`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='无人机指令日志';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `drone_info`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `drone_info`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `drone_info` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`sn` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备 SN',
|
||||
`name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '无人机名称',
|
||||
`manufacturer` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '厂家',
|
||||
`model` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '型号,如果有子型号,拼接保存',
|
||||
`version` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '固件版本',
|
||||
`offline_position` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '无人机下线的时候最后的点位信息,json结构数据',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE KEY `drone_info_pk_2` (`sn`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=103 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='设备信息';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `file_records`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `file_records`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `file_records` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`file_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件ID',
|
||||
`file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '文件名称',
|
||||
`content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '文件类型',
|
||||
`signature` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '文件签名',
|
||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`file_size` bigint DEFAULT NULL COMMENT '文件大小',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE KEY `uniq_file_records_file_id` (`file_id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='文件记录';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `gateway_bound_info`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gateway_bound_info`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `gateway_bound_info` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`gateway_sn` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '网关 sn',
|
||||
`drone_sn` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '无人机 sn',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE KEY `uniq_gateway_bound_info_pk` (`drone_sn`,`gateway_sn`) USING BTREE,
|
||||
KEY `gateway_bound_info_gateway_sn_index` (`gateway_sn`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=778 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='无人机设备绑定关系';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `gateway_info`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gateway_info`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `gateway_info` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`sn` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '网关 sn',
|
||||
`type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '类型',
|
||||
`form` int DEFAULT NULL COMMENT '形态',
|
||||
`model` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '型号',
|
||||
`name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '网关名称',
|
||||
`version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '版本',
|
||||
`stream_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '推流地址[list]',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE KEY `gateway_info_pk_2` (`sn`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=90 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='网关设备信息';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `storage_files`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `storage_files`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `storage_files` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '文件ID',
|
||||
`file_id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件唯一标识',
|
||||
`bucket` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'OSS存储桶',
|
||||
`object_path` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'OSS对象路径',
|
||||
`drone_sn` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '无人机序列号',
|
||||
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件名称',
|
||||
`type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '文件类型',
|
||||
`size` bigint unsigned DEFAULT '0' COMMENT '文件大小(字节)',
|
||||
`md5` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'MD5哈希值',
|
||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`extra` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '额外信息',
|
||||
`pilot_photo_fingerprint` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE KEY `uk_file_id` (`file_id`) USING BTREE,
|
||||
KEY `idx_drone_sn` (`drone_sn`) USING BTREE,
|
||||
KEY `idx_object_path` (`object_path`(191)) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2210 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='文件存储表';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `track_order`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `track_order`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `track_order` (
|
||||
`track_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '轨迹id',
|
||||
`drone_sn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '无人机id',
|
||||
`gateway_sn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '网关序列号',
|
||||
`first_track_time` datetime NOT NULL COMMENT '轨迹开始时间',
|
||||
`last_track_time` datetime NOT NULL COMMENT '轨迹结束时间',
|
||||
`distance` bigint NOT NULL COMMENT '轨迹距离,单位 m',
|
||||
`duration` bigint NOT NULL COMMENT '轨迹中时长,单位 s',
|
||||
`first_latitude` double NOT NULL COMMENT '轨迹开始纬度',
|
||||
`first_longitude` double NOT NULL COMMENT '轨迹开始经度',
|
||||
`last_latitude` double NOT NULL COMMENT '轨迹结束纬度',
|
||||
`last_longitude` double NOT NULL COMMENT '轨迹结束经度',
|
||||
`gateway_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '网关类型',
|
||||
PRIMARY KEY (`track_id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='无人机轨迹记录表';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `wayline_info`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `wayline_info`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `wayline_info` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键 ID',
|
||||
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '航线内容文件名称',
|
||||
`file_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件在 OSS 的路径',
|
||||
`file_md5` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '文件md5',
|
||||
`content` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'JSON 格式的航线内容',
|
||||
`drone_model` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '无人机型号',
|
||||
`payloads` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '载荷型号列表',
|
||||
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除,0 为未删除,1 为已删除',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1754 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='航线信息';
|
||||
203
999-数据库脚本/飞行服务/2.0-xa/4.cmii_live_srs_op.sql
Normal file
203
999-数据库脚本/飞行服务/2.0-xa/4.cmii_live_srs_op.sql
Normal file
@@ -0,0 +1,203 @@
|
||||
CREATE DATABASE IF NOT EXISTS `cmii_live_srs_op` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
use `cmii_live_srs_op`;
|
||||
-- ----------------------------
|
||||
-- Table structure for live_dvr_commit
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_dvr_commit`;
|
||||
CREATE TABLE `live_dvr_commit` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'none',
|
||||
`hub` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'none',
|
||||
`stream` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT 'none',
|
||||
`dvr` int NOT NULL COMMENT 'none',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 60658 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = 'none' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_hls_record
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_hls_record`;
|
||||
CREATE TABLE `live_hls_record` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'none',
|
||||
`hub` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`stream` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`time_begin` datetime(3) NULL DEFAULT NULL COMMENT 'none',
|
||||
`time_end` datetime(3) NULL DEFAULT NULL COMMENT 'none',
|
||||
`size` bigint NOT NULL COMMENT 'none',
|
||||
`status` tinyint NOT NULL COMMENT '0-ok; 1-trash; 2-deleted',
|
||||
`tail_ts` varchar(96) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uniq_record`(`hub` ASC, `stream` ASC, `time_begin` ASC) USING BTREE,
|
||||
INDEX `idx_stream`(`hub` ASC, `stream` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 10077 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'none' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_hls_sync_hq
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_hls_sync_hq`;
|
||||
CREATE TABLE `live_hls_sync_hq` (
|
||||
`id` int NOT NULL COMMENT 'none',
|
||||
`hq_ticket` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`time_upd` datetime(3) NULL DEFAULT NULL COMMENT 'none',
|
||||
`status` tinyint NOT NULL COMMENT '0-ready; 1-need sync',
|
||||
`version` int NOT NULL COMMENT 'none',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'none' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_hls_sync_task
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_hls_sync_task`;
|
||||
CREATE TABLE `live_hls_sync_task` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'none',
|
||||
`hub` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`stream` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`status` tinyint NOT NULL COMMENT '0-ready; 1-sync.',
|
||||
`time_upd` datetime(3) NULL DEFAULT NULL COMMENT 'none',
|
||||
`version` int NOT NULL DEFAULT 1 COMMENT 'none',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uniq_steam`(`hub` ASC, `stream` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 798 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'none' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_hub
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_hub`;
|
||||
CREATE TABLE `live_hub` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'none',
|
||||
`hub` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`dvr` int NOT NULL DEFAULT 0 COMMENT 'days for reserve, 0 for disable',
|
||||
`pub` tinyint NOT NULL DEFAULT 0 COMMENT '0: private; 1: pub push; 2 pub play; 3: pub all; 4: inherit',
|
||||
`active` tinyint NOT NULL COMMENT '1 yes, 0 no, 2 for inherit',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uniq_hub`(`hub` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'none' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_hub_token
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_hub_token`;
|
||||
CREATE TABLE `live_hub_token` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'none',
|
||||
`hub` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`token` char(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`token_type` tinyint NOT NULL COMMENT '1 for push, 2 for pull',
|
||||
`expire` datetime NOT NULL DEFAULT '2099-12-31 23:59:59' COMMENT 'none',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uniq_hub_token`(`hub` ASC, `token_type` ASC, `token` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'none' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_record
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_record`;
|
||||
CREATE TABLE `live_record` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`hub` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'hub',
|
||||
`stream` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'stream',
|
||||
`time_begin` datetime(3) NULL DEFAULT NULL COMMENT 'time_begin',
|
||||
`time_end` datetime(3) NULL DEFAULT NULL COMMENT 'time_end',
|
||||
`size` bigint NOT NULL COMMENT 'size',
|
||||
`status` tinyint NOT NULL COMMENT '0-ok; 1-trash; 2-deleted',
|
||||
`last_begin` datetime(3) NULL DEFAULT NULL COMMENT 'the begin time of last segment',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uniq_record`(`hub` ASC, `stream` ASC, `time_begin` ASC) USING BTREE,
|
||||
INDEX `idx_stream`(`hub` ASC, `stream` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 138248 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'live_record' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_segment
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_segment`;
|
||||
CREATE TABLE `live_segment` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`hub` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'hub',
|
||||
`stream` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'stream',
|
||||
`type` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'type',
|
||||
`fileid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT 'fileid',
|
||||
`filename` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'filename',
|
||||
`size` bigint NOT NULL COMMENT 'size',
|
||||
`time_begin` datetime(3) NOT NULL COMMENT 'time_begin',
|
||||
`time_end` datetime(3) NOT NULL COMMENT 'time_end',
|
||||
`status` tinyint NOT NULL COMMENT '0-ok; 1-trash; 2-deleted',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uniq_record`(`hub` ASC, `stream` ASC, `time_begin` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 12907179 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = 'live_segment' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_stream
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_stream`;
|
||||
CREATE TABLE `live_stream` (
|
||||
`id` char(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`hub` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
|
||||
`stream` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
|
||||
`dvr` int NULL DEFAULT NULL COMMENT 'days for reserve, 0 for disable, null for inherit',
|
||||
`pub` tinyint NOT NULL DEFAULT 2 COMMENT '0: private; 1: pub push; 2 pub play; 3: pub all; 4: inherit',
|
||||
`active` tinyint NULL DEFAULT NULL COMMENT '2 for inherit',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uniq_stream`(`hub` ASC, `stream` ASC) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_stream_token
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_stream_token`;
|
||||
CREATE TABLE `live_stream_token` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'none',
|
||||
`hub` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`stream` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`token` char(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'none',
|
||||
`token_type` tinyint NOT NULL COMMENT '1 for push, 2 for pull',
|
||||
`expire` datetime NOT NULL DEFAULT '2099-12-31 23:59:59' COMMENT 'none',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uniq_stream`(`hub` ASC, `stream` ASC, `token_type` ASC, `token` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 62800 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'none' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_sync_hq
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_sync_hq`;
|
||||
CREATE TABLE `live_sync_hq` (
|
||||
`id` int NOT NULL COMMENT 'id',
|
||||
`hq_ticket` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'hq_ticket',
|
||||
`time_upd` datetime(3) NULL DEFAULT NULL COMMENT 'time update',
|
||||
`status` tinyint NOT NULL COMMENT '0-ready; 1-need sync',
|
||||
`version` int NOT NULL COMMENT 'version',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'live_sync_hq' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_sync_task
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_sync_task`;
|
||||
CREATE TABLE `live_sync_task` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`hub` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'hub',
|
||||
`stream` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'stream',
|
||||
`status` tinyint NOT NULL COMMENT '0-ready; 1-sync.',
|
||||
`time_upd` datetime(3) NULL DEFAULT NULL COMMENT 'time update',
|
||||
`version` int NOT NULL DEFAULT 1 COMMENT 'version',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uniq_steam`(`hub` ASC, `stream` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1613 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'sync task' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for live_video_part
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `live_video_part`;
|
||||
CREATE TABLE `live_video_part` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'none',
|
||||
`hub` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'none',
|
||||
`stream` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'none',
|
||||
`type` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'none',
|
||||
`fileid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT 'none',
|
||||
`filename` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'none',
|
||||
`size` bigint NOT NULL COMMENT 'none',
|
||||
`time_begin` datetime(3) NOT NULL COMMENT 'none',
|
||||
`time_end` datetime(3) NOT NULL COMMENT 'none',
|
||||
`status` tinyint NOT NULL COMMENT '0-ok; 1-trash; 2-deleted',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uniq_record`(`hub` ASC, `stream` ASC, `time_begin` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1937083 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = 'none' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
17
999-数据库脚本/飞行服务/2.0-xa/5.cmii_live_srs_op-init.sql
Normal file
17
999-数据库脚本/飞行服务/2.0-xa/5.cmii_live_srs_op-init.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
use cmii_live_srs_op;
|
||||
|
||||
LOCK TABLES `live_hls_sync_hq` WRITE;
|
||||
/*!40000 ALTER TABLE `live_hls_sync_hq` DISABLE KEYS */;
|
||||
INSERT INTO `live_hls_sync_hq` VALUES (233,'74f3884eeaa84aac8e6ee617a47ce83b','2023-03-29 17:20:35.281',1,500157);
|
||||
/*!40000 ALTER TABLE `live_hls_sync_hq` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Dumping data for table `live_hub`
|
||||
--
|
||||
|
||||
LOCK TABLES `live_hub` WRITE;
|
||||
/*!40000 ALTER TABLE `live_hub` DISABLE KEYS */;
|
||||
INSERT INTO `live_hub` VALUES (1,'__default_',0,1,1),(2,'live',60,1,1),(3,'uav',0,1,1),(4,'ai',0,1,1),(5,'dev',60,1,1),(6,'pub',0,3,1),(7,'temp',0,1,1),(8,'360p',0,3,1),(9,'ex',0,3,1),(10,'origin',7,3,1),(11,'ss',0,0,0),(12,'Hanger',0,3,1);
|
||||
/*!40000 ALTER TABLE `live_hub` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
40
999-数据库脚本/飞行服务/2.1/z_cmii_ai_standard.sql
Normal file
40
999-数据库脚本/飞行服务/2.1/z_cmii_ai_standard.sql
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
SQLyog Community v13.1.6 (64 bit)
|
||||
MySQL - 8.1.0
|
||||
*********************************************************************
|
||||
*/
|
||||
/*!40101 SET NAMES utf8 */;
|
||||
use `cmii_sky_converge`;
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300002', '300001', '300002', '300002', 'count', '车辆识别', '检测无人机航拍场景中,出现的车辆', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:44:25', '2026-04-20 13:59:26', 'sky_ai_load', '{"aiCode":"peopleVehicle","withVideo":true,"warnTextFormatter":"const{bus, truck, car}=data;const range=[{value:10, text:\'轻度拥堵\'},{value:40, text:\'中度拥堵\'},{value:100, text:\'重度拥堵\'}];const total=bus+truck+car;for(let i=range.length-1;i>=0;i--){if(total>=range[i].value){return range[i].text;}}return \'\';","isMe":"return data.model===AI_MODE.peopleVehicle"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300003', '300001', '300003', '300003', 'count', '周界入侵', '检测无人机航拍场景中,某一小型区域内出现的目标。', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:44:47', '2026-04-20 13:59:26', 'sky_ai_load', '{"aiCode":"compass","withVideo":true,"warnTextFormatter":"const obj={people:\'人\',car:\'汽车\',truck:\'卡车\',bus:\'公交车\'};return Object.entries(obj).reduce((str, [k,v]) =>str+v+\':\'+Number(data[k])+\' \', \'\');","isMe":"return data.model===AI_MODE.compass"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300004', '300001', '300004', '300004', 'count', '车辆跨线', '检测无人机航拍场景中,经过某一路口的车辆(轿车、卡车、公交、面包车、吉普车等)总数量。该功能可以累计一次统计中过往所有车辆的总数量', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:45:17', '2026-04-20 13:59:26', 'sky_ai_load', '{"aiCode":"vehicleCrosslineDetection","withVideo":true,"warnTextFormatter":"const obj={car:\'汽车\',truck:\'卡车\',bus:\'公交车\'};return Object.entries(obj).reduce((str, [k,v]) =>str+v+\':\'+Number(data[k])+\' \', \'\');","isMe":"return data.model===AI_MODE.vehicleCrosslineDetection"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300005', '300001', '300005', '300005', 'count', '车牌识别', '检测无人机航拍场景中,车辆的车牌号', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:45:49', '2026-04-20 13:59:26', 'sky_ai_load', '{"aiCode":"plate","withVideo":true,"warnText":"发现车牌","isMe":"return data.model===AI_MODE.plate"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300007', '300001', '300007', '300007', 'count', '消防通道占用', '检测无人机航拍场景中被车辆占用的消防通道', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:46:35', '2026-04-20 13:59:26', 'sky_ai_public_safety', '{"aiCode":"fireExit","withVideo":true,"warnText":"发现消防通道占用","isMe":"return data.model===AI_MODE.fireExit"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300012', '300001', '300012', '300012', 'count', '红外人体', '检测无人机航拍视角下的红外人体目标,夜间巡逻安保', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:47:16', '2026-04-20 13:59:26', 'sky_ai_public_safety', '{"aiCode":"infraredPerson","withVideo":true,"warnText":"发现人员","isMe":"return data.model===AI_MODE.infraredPerson"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300013', '300001', '300013', '300013', 'count', '船只检测', '检测无人机航拍视角下,海面中的船只', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:47:50', '2026-04-20 13:59:26', 'sky_ai_water_ecology', '{"aiCode":"boat","withVideo":true,"warnTextFormatter":"const{ship, flag}=data;if(Number(ship)||Number(flag)){const a=Number(ship)?\'发现船只\':\'\';const b=Number(flag)?\'发现旗帜\':\'\';return (a?a+\' \':a)+b;}else{return \'--\'}","isMe":"return data.model===AI_MODE.boat"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300014', '300001', '300014', '300014', 'count', '溺水检测', '检测无人机航拍视角下,海面中的人员', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:48:29', '2026-04-20 13:59:26', 'sky_ai_public_safety', '{"aiCode":"peopleWater","withVideo":true,"warnText":"发现溺水人员","isMe":"return data.model===AI_MODE.peopleWater"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300015', '300001', '300015', '300015', 'count', '泥石流检测', '检测无人机航拍场景中出现的滑坡泥石流', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:49:01', '2026-04-20 13:59:26', 'sky_ai_public_safety', '{"aiCode":"landslide","withVideo":true,"warnText":"发现山体存在滑坡风险","isMe":"return data.model===AI_MODE.landslide"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300018', '300001', '300018', '300018', 'count', '烟火检测', '识别无人机航拍场景图像中的火焰及烟雾,并画框', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:49:28', '2026-04-20 13:59:26', 'sky_ai_public_safety', '{"aiCode":"fireDetection","withVideo":true,"warnTextFormatter":"const{fire, smoke}=data;if(Number(fire)||Number(smoke)){const a=Number(fire)?\'发现火\':\'\';const b=Number(smoke)?\'发现烟\':\'\';return (a?a+\' \':a)+b;}else{return \'--\'}","isMe":"return data.model===AI_MODE.fireDetection"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300019', '300001', '300019', '300019', 'count', '空中目标检测', '检测指定一片空域中,是否有无人机、鸟出现', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:49:57', '2026-04-20 13:59:26', 'sky_ai_city_management', '{"aiCode":"uavBird","withVideo":true,"warnTextFormatter":"const{drone, bird}=data;if(Number(drone)||Number(bird)){const a=Number(drone)?\'发现无人机\':\'\';const b=Number(bird)?\'发现鸟\':\'\';return (a?a+\' \':a)+b;}else{return \'--\'}","isMe":"return data.model===AI_MODE.uavBird"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300020', '300001', '300020', '300020', 'count', '旗帜检测', '检测无人机航拍视角下,海面中的船只上是否有国旗', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:50:33', '2026-04-20 13:59:26', 'sky_ai_water_ecology', '{"aiCode":"flagDetection","withVideo":true,"warnTextFormatter":"const{ship, flag}=data;if(Number(ship)||Number(flag)){const a=Number(ship)?\'发现船只\':\'\';const b=Number(flag)?\'发现旗帜\':\'\';return (a?a+\' \':a)+b;}else{return \'--\'}","isMe":"return data.model===AI_MODE.flagDetection"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300021', '300001', '300021', '300021', 'count', '井盖检测', '检测无人机航拍视角下,公路上井盖是否破损', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:51:06', '2026-04-20 13:59:26', 'sky_ai_city_maintenance', '{"aiCode":"manholeCover","withVideo":true,"warnTextFormatter":"const{cover, defect}=data;return Number(defect)?\'发现井盖异常\':\'发现井盖正常\'","isMe":"return data.model===AI_MODE.manholeCover"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300022', '300001', '300022', '300022', 'count', '地标检测', '检测无人机航拍视角下,桥梁、房屋检测', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:51:32', '2026-04-20 13:59:26', 'sky_ai_city_maintenance', '{"aiCode":"landmark","withVideo":true,"warnTextFormatter":"const{house, bridge}=data;if(Number(house)||Number(bridge)){const a=Number(house)?\'发现房屋\':\'\';const b=Number(bridge)?\'发现桥梁\':\'\';return (a?a+\' \':a)+b;}else{return \'--\'}","isMe":"return data.model===AI_MODE.landmark"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300023', '300001', '300023', '300023', 'count', '安全帽检测', '检测无人机航拍视角下,工地工人有无穿戴安全帽', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:52:13', '2026-04-20 13:59:26', 'sky_ai_public_safety', '{"aiCode":"helmetDetection","withVideo":true,"warnText":"发现违规安全帽佩戴行为","isMe":"return data.model===AI_MODE.helmetDetection"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300024', '300001', '300024', '300024', 'count', '反光衣检测', '检测无人机航拍视角下,工地工人有无穿戴反光背心', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-14 09:52:38', '2026-04-20 13:59:26', 'sky_ai_public_safety', '{"aiCode":"reflectiveVest","withVideo":true,"warnText":"发现违规反光衣穿戴行为","isMe":"return data.model===AI_MODE.reflectiveVest"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
|
||||
INSERT INTO ai_model_info (ai_key, provider_code, model_code, model_name, direction_type, display_name, description, prompt, call_count, call_type, call_url, callback_url, ai_icon, deleted, create_time, update_time, model_type_code, formatter, formatter_code, alert_level, result_display_type, data_process_type, has_realtime_video, enabled) VALUES ('CYY_300001', '300001', '300001', '300001', 'count', '人员识别', '检测无人机航拍场景中,识别地面的人员', '', 0, 'mq', null, null, 'cmii-AI1', 0, '2026-04-15 15:25:22', '2026-04-15 15:25:22', 'sky_ai_public_safety', '{"aiCode":"person","withVideo":true,"warnText":"发现人员","isMe":"return data.model===AI_MODE.person"}', null, 'LEVEL_1', 0, '实时识别', 1, 1);
|
||||
4913
999-数据库脚本/飞行服务/c-ai-core-feifu2.0.sql
Normal file
4913
999-数据库脚本/飞行服务/c-ai-core-feifu2.0.sql
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user