Эх сурвалжийг харах

录像模板和录像计划sql提交

xujie 11 сар өмнө
parent
commit
b96e6fd366

+ 52 - 0
project_data/sql/1.0.11/soc.sql

@@ -261,8 +261,60 @@ INSERT INTO `sys_multi_layer_dictionary`(`id`, `code`, `name`, `parent_id`, `typ
 INSERT INTO `sys_multi_layer_dictionary`(`id`, `code`, `name`, `parent_id`, `type`, `type_name`, `level`, `sort`, `status`, `is_system`, `path`, `remark`, `create_time`, `modified_name`, `update_time`, `modified_id`, `deleted`) VALUES (1861655874030460930, '1', '其他', -1, 'BrandModelType', '品牌型号类', 1, 0, '0', '1', '1861655874030460930-', NULL, '2024-11-27 14:18:42.919000', NULL, NULL, NULL, 0);
 INSERT INTO `sys_multi_layer_dictionary`(`id`, `code`, `name`, `parent_id`, `type`, `type_name`, `level`, `sort`, `status`, `is_system`, `path`, `remark`, `create_time`, `modified_name`, `update_time`, `modified_id`, `deleted`) VALUES (1861656043241267202, '1', '世邦', -1, 'BrandModelType', '品牌型号类', 1, 0, '0', '1', '1861656043241267202-', NULL, '2024-11-27 14:19:23.262000', NULL, NULL, NULL, 0);
 
+-- 录像模板和录像计划表
+drop table if exists `iot_dvs_plantime`;
+CREATE TABLE `iot_dvs_plantime` (
+                                    `id` bigint NOT NULL,
+                                    `dvs_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'iot_device_info表device_code',
+                                    `channel_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'iot_device_info表device_code',
+                                    `type` int DEFAULT NULL COMMENT '当前时间片段录像计划类型(0-定时录像,1-移动侦测录像,2-报警录像,3-移动侦测或报警录像,4-移动侦测和报警录像)',
+                                    `week` int DEFAULT NULL COMMENT '星期标识(星期1-7)',
+                                    `start_time` datetime DEFAULT NULL COMMENT '录像片段开始时间',
+                                    `end_time` datetime DEFAULT NULL COMMENT '录像片段结束时间',
+                                    `iot_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
+                                    PRIMARY KEY (`id`),
+                                    KEY `iot_token` (`iot_token`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
 
+drop table if exists `iot_dvs_plantype`;
+CREATE TABLE `iot_dvs_plantype` (
+                                    `id` bigint NOT NULL,
+                                    `dvs_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'iot_device_info表device_code',
+                                    `channel_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'iot_device_info表device_code',
+                                    `plan_type` int DEFAULT NULL COMMENT '录像计划类型(0:全天定时录像;1:分时段定时录像;2:全天移动侦测;3:混合录像计划)',
+                                    `create_time` datetime DEFAULT NULL COMMENT '创建时间',
+                                    `update_time` datetime DEFAULT NULL COMMENT '更新时间',
+                                    `min_time` datetime DEFAULT NULL COMMENT '录像时间段最小时间',
+                                    `max_time` datetime DEFAULT NULL COMMENT '录像时间段最大时间',
+                                    `isstart` int DEFAULT NULL COMMENT '是否启动录像(0,启动;1:未启动)',
+                                    `fail_remark` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '失败原因',
+                                    `iot_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
+                                    PRIMARY KEY (`id`),
+                                    KEY `iot_token` (`iot_token`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
 
+drop table if exists `iot_dvs_template`;
+CREATE TABLE `iot_dvs_template` (
+                                    `id` bigint NOT NULL,
+                                    `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
+                                    `type` int DEFAULT NULL COMMENT '生成类型:0.系统 1.手动',
+                                    `template_md5` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'name生成的MD5',
+                                    `iot_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
+                                    PRIMARY KEY (`id`),
+                                    UNIQUE KEY `iot_token` (`iot_token`,`template_md5`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
+
+drop table if exists `iot_dvs_template_channel`;
+CREATE TABLE `iot_dvs_template_channel` (
+                                    `id` bigint NOT NULL,
+                                    `template_md5` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
+                                    `dvs_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
+                                    `channel_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
+                                    `create_time` datetime DEFAULT NULL,
+                                    `iot_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
+                                    PRIMARY KEY (`id`),
+                                    KEY `iot_token` (`iot_token`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;