gsdDB.sql 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : nx-2
  4. Source Server Type : MySQL
  5. Source Server Version : 80026
  6. Source Host : 192.168.31.219:3306
  7. Source Schema : gsdDB
  8. Target Server Type : MySQL
  9. Target Server Version : 80026
  10. File Encoding : 65001
  11. Date: 18/07/2022 15:38:33
  12. */
  13. # Create Database
  14. CREATE DATABASE IF NOT EXISTS gsdDB DEFAULT CHARACTER SET = utf8mb4;
  15. Use gsdDB;
  16. SET NAMES utf8mb4;
  17. SET FOREIGN_KEY_CHECKS = 0;
  18. -- ----------------------------
  19. -- Table structure for DataSources
  20. -- ----------------------------
  21. DROP TABLE IF EXISTS `DataSources`;
  22. CREATE TABLE `DataSources` (
  23. `Id` int(0) NOT NULL AUTO_INCREMENT,
  24. `uuid` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  25. `Uri` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  26. `RecognitionRange` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  27. `Play` int(0) NOT NULL,
  28. `Del` int(0) NOT NULL,
  29. `DataTime` datetime(0) NULL DEFAULT NULL,
  30. `Num` int(0) NOT NULL,
  31. `label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  32. `dv_Id` int(0) NOT NULL,
  33. `addTime` datetime(0) NULL DEFAULT NULL,
  34. `updateTime` datetime(0) NULL DEFAULT NULL,
  35. `IP` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '摄像头IP',
  36. `finish` int(0) NULL DEFAULT NULL,
  37. PRIMARY KEY (`Id`) USING BTREE
  38. ) ENGINE = InnoDB AUTO_INCREMENT = 71 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
  39. -- ----------------------------
  40. -- Records of DataSources
  41. -- ----------------------------
  42. INSERT INTO `DataSources` VALUES (1, '1', 'rtsp://admin:sunwin2021@192.168.31.130:554/h264/ch1/main/av_stream', '[]', 1, 0, '2022-07-18 10:23:57', 0, '1', 1, NULL, NULL, NULL, NULL);
  43. -- ----------------------------
  44. -- Table structure for DeviceList
  45. -- ----------------------------
  46. DROP TABLE IF EXISTS `DeviceList`;
  47. CREATE TABLE `DeviceList` (
  48. `Id` int(0) NOT NULL AUTO_INCREMENT,
  49. `DeviceId` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  50. `DeviceToken` tinyint(0) NOT NULL,
  51. `DeviceType` tinyint(0) NOT NULL,
  52. `ServerIp` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
  53. `ServerCname` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
  54. `ServerCpwd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
  55. `UpdateTime` datetime(0) NOT NULL,
  56. `ISDELETE` int(0) NOT NULL,
  57. PRIMARY KEY (`Id`) USING BTREE
  58. ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
  59. -- ----------------------------
  60. -- Table structure for DeviceState
  61. -- ----------------------------
  62. DROP TABLE IF EXISTS `DeviceState`;
  63. CREATE TABLE `DeviceState` (
  64. `Id` int(0) NOT NULL AUTO_INCREMENT,
  65. `CpuUsage` int(0) NOT NULL,
  66. `GpuUsage` int(0) NOT NULL,
  67. `MemoryUsage` int(0) NOT NULL,
  68. `CpuTemp` int(0) NOT NULL,
  69. `GpuTemp` int(0) NOT NULL,
  70. `FdUsage` int(0) NOT NULL,
  71. `AUXTemp` int(0) NOT NULL,
  72. `A0Temp` int(0) NOT NULL,
  73. `ThermalTemp` int(0) NOT NULL,
  74. `updateTime` datetime(0) NOT NULL,
  75. PRIMARY KEY (`Id`) USING BTREE
  76. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
  77. -- ----------------------------
  78. -- Records of DeviceState
  79. -- ----------------------------
  80. INSERT INTO `DeviceState` VALUES (1, 0, 0, 3000, 85, 0, 0, 0, 0, 0, '2022-07-05 10:08:08');
  81. -- ----------------------------
  82. -- Table structure for HistoryVideo
  83. -- ----------------------------
  84. DROP TABLE IF EXISTS `HistoryVideo`;
  85. CREATE TABLE `HistoryVideo` (
  86. `Id` bigint(0) NOT NULL AUTO_INCREMENT,
  87. `fileName` varchar(900) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  88. `UpdateTime` datetime(0) NOT NULL,
  89. `ISDELETE` int(0) NOT NULL,
  90. PRIMARY KEY (`Id`) USING BTREE
  91. ) ENGINE = InnoDB AUTO_INCREMENT = 71 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
  92. -- ----------------------------
  93. -- Table structure for InferData
  94. -- ----------------------------
  95. DROP TABLE IF EXISTS `InferData`;
  96. CREATE TABLE `InferData` (
  97. `ID` int(0) NOT NULL AUTO_INCREMENT,
  98. `ClassId` int(0) NOT NULL,
  99. `Num` int(0) NOT NULL,
  100. `Remark` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  101. `ImageBase64` longtext CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
  102. `WarningTime` datetime(0) NOT NULL,
  103. `VideoPath` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
  104. `attr1` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
  105. `attr2` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
  106. `attr3` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
  107. `Warn` tinyint(0) NOT NULL,
  108. `uuid` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  109. `ISDELETE` int(0) NOT NULL,
  110. PRIMARY KEY (`ID`) USING BTREE
  111. ) ENGINE = InnoDB AUTO_INCREMENT = 63 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
  112. SET FOREIGN_KEY_CHECKS = 1;