From e1327c7fee820b15196d066a610e7f652da9865e Mon Sep 17 00:00:00 2001 From: yitonglei Date: Fri, 29 Jul 2022 17:57:29 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=B5=84=E6=BA=90=E8=BF=87=E7=A8=8B=E4=B8=AD?= =?UTF-8?q?2=E5=BC=A0=E7=BC=93=E5=AD=98=E8=A1=A8=E7=9A=84=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/db/V4.3__init_tableCache.sql | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 renren-admin/src/main/resources/db/V4.3__init_tableCache.sql diff --git a/renren-admin/src/main/resources/db/V4.3__init_tableCache.sql b/renren-admin/src/main/resources/db/V4.3__init_tableCache.sql new file mode 100644 index 00000000..9e4ac17d --- /dev/null +++ b/renren-admin/src/main/resources/db/V4.3__init_tableCache.sql @@ -0,0 +1,35 @@ +DROP TABLE IF EXISTS `t_camera_channel_cache`; +CREATE TABLE `t_camera_channel_cache` ( + `idt_camera_channel` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '主键', + `channel_code` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `channel_id` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `channel_name` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '摄像头id', + `gps_x` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '经度', + `gps_y` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '纬度', + `status` int(0) NULL DEFAULT NULL COMMENT '1在线;0离线', + `parent_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组织id', + `region_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `region_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `node_name` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `check_status` int(0) NULL DEFAULT 0, + PRIMARY KEY (`idt_camera_channel`, `channel_code`) USING BTREE, + INDEX `gps_x`(`gps_x`) USING BTREE, + INDEX `gps_y`(`gps_y`) USING BTREE, + INDEX `channel_code`(`channel_code`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 134450 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通道表' ROW_FORMAT = Dynamic; + +DROP TABLE IF EXISTS `t_camera_organization_cache`; +CREATE TABLE `t_camera_organization_cache` ( + `id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `parent_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `sort` int(0) NULL DEFAULT NULL, + `subCount` int(0) NULL DEFAULT NULL, + `count` int(0) NULL DEFAULT 0 COMMENT '这个是统计该区域下的摄像头数据同步的次数,没太大作用', + `is_parent` int(0) NULL DEFAULT NULL COMMENT '是否有子节点', + `path` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `is_root` int(0) NULL DEFAULT 0 COMMENT '是否是根节点', + `orgaid` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '作为主键', + `channelCount` int(0) NULL DEFAULT 0, + PRIMARY KEY (`orgaid`, `id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 8868 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;