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;