From 48dd7c9fe52e1440b4f8d77f2f0fdefb62408fb0 Mon Sep 17 00:00:00 2001 From: jiangfeng Date: Tue, 19 Oct 2021 16:17:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/enjoyvds.sql | 230 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 sql/enjoyvds.sql diff --git a/sql/enjoyvds.sql b/sql/enjoyvds.sql new file mode 100644 index 0000000..93045ad --- /dev/null +++ b/sql/enjoyvds.sql @@ -0,0 +1,230 @@ +/* + Navicat Premium Data Transfer + + Source Server : 公司测试服务器MySql + Source Server Type : MySQL + Source Server Version : 80018 + Source Host : 112.31.72.250:13307 + Source Schema : enjoyvds + + Target Server Type : MySQL + Target Server Version : 80018 + File Encoding : 65001 + + Date: 19/10/2021 16:16:53 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for vds_info_device +-- ---------------------------- +DROP TABLE IF EXISTS `vds_info_device`; +CREATE TABLE `vds_info_device` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `device_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备id', + `register_time` timestamp(0) NULL DEFAULT NULL COMMENT '最后一次注册时间', + `keep_alive_time` timestamp(0) NULL DEFAULT NULL COMMENT '最后一次保活时间', + `status` int(2) NULL DEFAULT NULL COMMENT '在线状态 1、在线 2、不在线', + `enable` int(2) NULL DEFAULT 1 COMMENT '启用状态 1、启用 2、不启用', + `ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备ip', + `dict_conver` int(2) NULL DEFAULT NULL COMMENT '字典转换(1、开,2、关)dictzhuanhuan', + `format_clean` int(2) NULL DEFAULT NULL COMMENT '格式清洗(1、开,2、关)geshiqingxi', + `encrypt_push` int(2) NULL DEFAULT NULL COMMENT '加密推送(1、开,2、关)jiamituisong', + `decrypt_push` int(2) NULL DEFAULT NULL COMMENT '解密推送(1、开,2、关)jiemituisong', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '点位全称', + `longitude` decimal(65, 8) NULL DEFAULT NULL COMMENT '经度', + `latitude` decimal(65, 8) NULL DEFAULT NULL COMMENT '纬度', + `police` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '派出所', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of vds_info_device +-- ---------------------------- +INSERT INTO `vds_info_device` VALUES (885088777695920128, '34020000001310000003', '2021-10-19 16:10:35', '2021-10-19 16:14:35', 1, 1, '192.168.31.108', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO `vds_info_device` VALUES (885160816037330944, '8451235452114221122', '2021-09-08 13:53:04', '2021-09-23 09:39:42', 1, 1, '192.168.31.187', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + +-- ---------------------------- +-- Table structure for vds_info_face +-- ---------------------------- +DROP TABLE IF EXISTS `vds_info_face`; +CREATE TABLE `vds_info_face` ( + `ID` int(11) NOT NULL AUTO_INCREMENT, + `FaceID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `InfoKind` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `SourceID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `DeviceID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `ShotTime` datetime(0) NULL DEFAULT NULL, + `LeftTopX` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `LeftTopY` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `RightBtmX` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `RightBtmY` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `LocationMarkTime` datetime(0) NULL DEFAULT NULL, + `FaceAppearTime` datetime(0) NULL DEFAULT NULL, + `FaceDisAppearTime` datetime(0) NULL DEFAULT NULL, + `GenderCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `AgeUpLimit` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `AgeLowerLimit` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `GlassStyle` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `IsDriver` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `IsForeigner` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `IsSuspectedTerrorist` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `IsCriminalInvolved` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `IsDetainees` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `IsVictim` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `IsSuspiciousPerson` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `Similaritydegree` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `CreateTime` timestamp(0) NULL DEFAULT NULL, + `serviceNo` int(11) NULL DEFAULT NULL, + `size` double NULL DEFAULT NULL, + `OtherFeature` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `ScarDimple` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `FreckleBirthmark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `AcneStain` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `WrinklePouch` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `LipStyle` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `MustacheStyle` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `NoseStyle` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `EyebrowStyle` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `Attitude` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `CorpseConditionCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `InjuredDegree` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `VictimType` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `MemberTypeCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `DetaineesSpecialIdentity` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `DetaineesIdentity` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `DetentionHouseCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `EscapedCriminalNumber` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `CrimeCharacterCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `CrimeMethod` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `BodySpeciallMark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `CriminalInvolvedSpecilisationCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `SuspectedTerroristNumber` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `ImmigrantTypeCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `PassportType` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `GlassColor` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `CapColor` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `CapStyle` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `RespiratorColor` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `PhysicalFeature` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `FacialFeature` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `FaceStyle` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `HairColor` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `HairStyle` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `SkinColor` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `AccompanyNumber` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `JobCategory` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `ChineseAccentCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `ResidenceAdminDivision` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `NativeCityCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `NationalityCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `EthicCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `Alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `UsedName` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `Name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `IDNumber` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `IDType` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + PRIMARY KEY (`ID`) USING BTREE, + UNIQUE INDEX `newId`(`ID`) USING BTREE COMMENT '索引' +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; + +-- ---------------------------- +-- Records of vds_info_face +-- ---------------------------- +INSERT INTO `vds_info_face` VALUES (20643217, '650100000011900000010220171219100515999830656599', '1', '66000000001190123456022017120110101000007', '55000111221190000007', NULL, '1', '1', '1', '1', '1998-12-30 01:00:00', '1998-12-30 01:00:00', '1998-12-30 01:00:00', '1', '10', '20', '1', '1', '1', '1', '1', '1', '1', '1', '1.0', '2021-09-18 02:21:24', 9, 2173, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO `vds_info_face` VALUES (20643219, '650100000011900000010220171219100515999830656598', '1', '66000000001190123456022017120110101000007', '55000111221190000007', NULL, '1', '1', '1', '1', '1998-12-30 01:00:00', '1998-12-30 01:00:00', '1998-12-30 01:00:00', '1', '10', '20', '1', '1', '1', '1', '1', '1', '1', '1', '1.0', '2021-09-18 02:43:24', 9, 59955, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO `vds_info_face` VALUES (20643220, '650100000011900000010220171219100515999830656596', '1', '66000000001190123456022017120110101000007', '55000111221190000007', NULL, '1', '1', '1', '1', '1998-12-30 01:00:00', '1998-12-30 01:00:00', '1998-12-30 01:00:00', '1', '10', '20', '1', '1', '1', '1', '1', '1', '1', '1', '1.0', '2021-09-18 05:52:38', NULL, 59955, '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '111111111', '11111111111111111111111', '111', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '330100', '330108', 'CHN', '01', 'dahua', 'dahua', '大华', '1', '111'); + +-- ---------------------------- +-- Table structure for vds_info_face_related +-- ---------------------------- +DROP TABLE IF EXISTS `vds_info_face_related`; +CREATE TABLE `vds_info_face_related` ( + `ID` int(11) NOT NULL AUTO_INCREMENT, + `RelatedType` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `RelatedID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `FaceID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `CreateTime` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; + +-- ---------------------------- +-- Records of vds_info_face_related +-- ---------------------------- + +-- ---------------------------- +-- Table structure for vds_info_face_subimageinfo +-- ---------------------------- +DROP TABLE IF EXISTS `vds_info_face_subimageinfo`; +CREATE TABLE `vds_info_face_subimageinfo` ( + `ID` int(11) NOT NULL AUTO_INCREMENT, + `ImageID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `EventSort` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `DeviceID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `StoragePath` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `Type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `FileFormat` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `ShotTime` datetime(0) NULL DEFAULT NULL, + `Width` double NULL DEFAULT NULL, + `Height` double NULL DEFAULT NULL, + `Data` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `FaceID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `CreateTime` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 41162443 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; + +-- ---------------------------- +-- Records of vds_info_face_subimageinfo +-- ---------------------------- +INSERT INTO `vds_info_face_subimageinfo` VALUES (41162441, '33020300001190000001022017122111111100001', '11', '33070299011190000253', 'http://10.33.6.108:9080/testx_108_20170908/a2421c4fde6d4a74ac923e8470d6e\n7fa.jpg', '01', 'Jpeg', '2017-08-25 03:24:55', 437, 350, NULL, NULL, '2021-09-18 02:21:25'); +INSERT INTO `vds_info_face_subimageinfo` VALUES (41162442, '33020300001190000001022017122111111100001', '11', '33070299011190000253', 'http://10.33.6.108:9080/testx_108_20170908/a2421c4fde6d4a74ac923e8470d6e7fa.jpg', '01', 'Jpeg', '2017-08-25 03:24:55', 437, 350, '20210918\\20210918104324_650100000011900000010220171219100515999830656598\\2017082503245501.jpg', '650100000011900000010220171219100515999830656598', '2021-09-18 02:43:25'); +INSERT INTO `vds_info_face_subimageinfo` VALUES (41162443, '33020300001190000001022017122111111100001', '11', '33070299011190000253', 'http://10.33.6.108:9080/testx_108_20170908/a2421c4fde6d4a74ac923e8470d6e7fa.jpg', '01', 'Jpeg', '2017-08-25 03:24:55', 437, 350, '20210918\\20210918015239_650100000011900000010220171219100515999830656596\\2017082503245501.jpg', '650100000011900000010220171219100515999830656596', '2021-09-18 05:52:39'); + +-- ---------------------------- +-- Table structure for vds_info_image +-- ---------------------------- +DROP TABLE IF EXISTS `vds_info_image`; +CREATE TABLE `vds_info_image` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', + `sourceId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '资源id', + `image` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT 'base64格式', + `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型(1、人脸,2、机动车,3、非机动车,4、人体)', + `createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; + +-- ---------------------------- +-- Records of vds_info_image +-- ---------------------------- + +-- ---------------------------- +-- Table structure for vds_user +-- ---------------------------- +DROP TABLE IF EXISTS `vds_user`; +CREATE TABLE `vds_user` ( + `user_id` int(10) NOT NULL COMMENT '用户id', + `role_id` int(10) NULL DEFAULT NULL COMMENT '角色id', + `area_id` int(10) NULL DEFAULT NULL COMMENT '区域id', + `organize_id` int(11) NULL DEFAULT NULL COMMENT '组织id', + `username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名', + `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码', + `principal` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真实姓名', + `principal_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号码', + `user_status` int(2) NULL DEFAULT NULL COMMENT '用户状态', + `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述备注', + `create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', + PRIMARY KEY (`user_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of vds_user +-- ---------------------------- +INSERT INTO `vds_user` VALUES (1, 1, 1, 1, 'admin', '1', NULL, NULL, NULL, NULL, NULL, '2021-09-07 09:05:25', NULL, '2021-09-07 09:05:29'); + +SET FOREIGN_KEY_CHECKS = 1; -- Gitee