miva_db.sql 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : tx2
  4. Source Server Type : MySQL
  5. Source Server Version : 80026
  6. Source Host : 192.168.31.225:3306
  7. Source Schema : MIVA_DB
  8. Target Server Type : MySQL
  9. Target Server Version : 80026
  10. File Encoding : 65001
  11. Date: 10/11/2022 14:12:44
  12. */
  13. # Create Database
  14. CREATE DATABASE IF NOT EXISTS MIVA_DB DEFAULT CHARACTER SET = utf8mb4;
  15. Use MIVA_DB;
  16. SET NAMES utf8mb4;
  17. SET FOREIGN_KEY_CHECKS = 0;
  18. -- ----------------------------
  19. -- Table structure for CarData
  20. -- ----------------------------
  21. DROP TABLE IF EXISTS `CarData`;
  22. CREATE TABLE `CarData` (
  23. `Id` int(0) NOT NULL AUTO_INCREMENT,
  24. `NoLoad` int(0) NOT NULL COMMENT '空载载荷',
  25. `DynamicLoad` int(0) NOT NULL COMMENT '动态载荷',
  26. `Grade` int(0) NOT NULL COMMENT '拥挤等级 1-4',
  27. `Num` int(0) NOT NULL COMMENT '识别数量',
  28. `dataTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  29. `label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'label',
  30. `PId` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '列车编号',
  31. `CarId` int(0) NOT NULL COMMENT '唯一Id',
  32. `enableFlag` int(0) NOT NULL COMMENT '是否启用',
  33. `addTime` datetime(0) NULL DEFAULT NULL,
  34. `updateTime` datetime(0) NULL DEFAULT NULL,
  35. `carriageCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '车厢编号',
  36. PRIMARY KEY (`Id`) USING BTREE,
  37. UNIQUE INDEX `CarId`(`CarId`) USING BTREE COMMENT '唯一Id'
  38. ) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
  39. -- ----------------------------
  40. -- Table structure for DataSources
  41. -- ----------------------------
  42. DROP TABLE IF EXISTS `DataSources`;
  43. CREATE TABLE `DataSources` (
  44. `Id` int(0) NOT NULL AUTO_INCREMENT,
  45. `CarId` int(0) NOT NULL,
  46. `Uri` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  47. `RecognitionRange` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  48. `Play` int(0) NOT NULL,
  49. `Del` int(0) NOT NULL,
  50. `DataTime` datetime(0) NULL DEFAULT NULL,
  51. `Num` int(0) NOT NULL,
  52. `PId` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  53. `label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  54. `dv_Id` int(0) NOT NULL,
  55. `addTime` datetime(0) NULL DEFAULT NULL,
  56. `updateTime` datetime(0) NULL DEFAULT NULL,
  57. `IP` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '摄像头IP',
  58. `finish` int(0) NULL DEFAULT NULL,
  59. PRIMARY KEY (`Id`) USING BTREE
  60. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
  61. -- ----------------------------
  62. -- Table structure for DeviceState
  63. -- ----------------------------
  64. DROP TABLE IF EXISTS `DeviceState`;
  65. CREATE TABLE `DeviceState` (
  66. `Id` int(0) NOT NULL AUTO_INCREMENT,
  67. `CpuUsage` int(0) NOT NULL,
  68. `GpuUsage` int(0) NOT NULL,
  69. `MemoryUsage` int(0) NOT NULL,
  70. `CpuTemp` int(0) NOT NULL,
  71. `GpuTemp` int(0) NOT NULL,
  72. `FdUsage` int(0) NOT NULL,
  73. `AUXTemp` int(0) NOT NULL,
  74. `A0Temp` int(0) NOT NULL,
  75. `ThermalTemp` int(0) NOT NULL,
  76. `updateTime` datetime(0) NOT NULL,
  77. PRIMARY KEY (`Id`) USING BTREE
  78. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
  79. -- ----------------------------
  80. -- Table structure for InferRecord
  81. -- ----------------------------
  82. DROP TABLE IF EXISTS `InferRecord`;
  83. CREATE TABLE `InferRecord` (
  84. `Id` int(0) NOT NULL AUTO_INCREMENT,
  85. `time` datetime(0) NOT NULL,
  86. `InferTime` int(0) NOT NULL,
  87. `OutPath` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  88. `batch_size` int(0) NOT NULL,
  89. `out_size` int(0) NOT NULL,
  90. `Finish` int(0) NOT NULL,
  91. `Del` int(0) NOT NULL,
  92. PRIMARY KEY (`Id`) USING BTREE
  93. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
  94. -- ----------------------------
  95. -- Table structure for MivaConfig
  96. -- ----------------------------
  97. DROP TABLE IF EXISTS `MivaConfig`;
  98. CREATE TABLE `MivaConfig` (
  99. `Id` int(0) NOT NULL AUTO_INCREMENT,
  100. `account` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '用户',
  101. `pwd` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '密码',
  102. `privateKey` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '密钥',
  103. `outType` int(0) NULL DEFAULT NULL COMMENT '输入类型',
  104. `outPath` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '输出路径',
  105. `outEnable` int(0) NULL DEFAULT NULL COMMENT '输出使能',
  106. `ClearType` int(0) NULL DEFAULT NULL COMMENT '清除机制 ',
  107. `recordMax` int(0) NULL DEFAULT NULL COMMENT '记录的最大阈值',
  108. `validTime` int(0) NULL DEFAULT NULL COMMENT '保持时间',
  109. `MemoryThreshold` int(0) NULL DEFAULT NULL,
  110. `TempThreshold` int(0) NULL DEFAULT NULL,
  111. `FdThreshold` int(0) NULL DEFAULT NULL,
  112. `ResetThreshold` int(0) NULL DEFAULT NULL,
  113. `ResetSwitch` int(0) NULL DEFAULT NULL,
  114. `TimeoutThreshold` int(0) NULL DEFAULT NULL,
  115. PRIMARY KEY (`Id`) USING BTREE
  116. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
  117. -- ----------------------------
  118. -- Table structure for PeakValleyConfig
  119. -- ----------------------------
  120. DROP TABLE IF EXISTS `PeakValleyConfig`;
  121. CREATE TABLE `PeakValleyConfig` (
  122. `Id` int(0) NOT NULL AUTO_INCREMENT,
  123. `addTime` datetime(0) NULL DEFAULT NULL,
  124. `updateTime` datetime(0) NULL DEFAULT NULL,
  125. `createBy` int(0) NULL DEFAULT NULL,
  126. `updateBy` int(0) NULL DEFAULT NULL,
  127. `attr1` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  128. `attr2` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  129. `attr3` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  130. `appId` int(0) NULL DEFAULT NULL,
  131. `pvcId` int(0) NULL DEFAULT NULL,
  132. `startTime` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  133. `endTime` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  134. `timeType` int(0) NULL DEFAULT NULL,
  135. `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  136. PRIMARY KEY (`Id`) USING BTREE
  137. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
  138. -- ----------------------------
  139. -- Table structure for SystemConfig
  140. -- ----------------------------
  141. DROP TABLE IF EXISTS `SystemConfig`;
  142. CREATE TABLE `SystemConfig` (
  143. `Id` int(0) NOT NULL AUTO_INCREMENT,
  144. `addTime` datetime(0) NULL DEFAULT NULL,
  145. `updateTime` datetime(0) NULL DEFAULT NULL,
  146. `createBy` int(0) NULL DEFAULT NULL,
  147. `updateBy` int(0) NULL DEFAULT NULL,
  148. `attr1` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  149. `attr2` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  150. `attr3` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  151. `appId` int(0) NULL DEFAULT NULL,
  152. `configId` int(0) NULL DEFAULT NULL,
  153. `conKey` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  154. `conValue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  155. `active` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  156. `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  157. PRIMARY KEY (`Id`) USING BTREE
  158. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
  159. -- ----------------------------
  160. -- Table structure for TrainInfo
  161. -- ----------------------------
  162. DROP TABLE IF EXISTS `TrainInfo`;
  163. CREATE TABLE `TrainInfo` (
  164. `Id` int(0) NOT NULL AUTO_INCREMENT,
  165. `carId` int(0) NOT NULL,
  166. `carCode` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  167. `carName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  168. `enableFlag` int(0) NOT NULL,
  169. PRIMARY KEY (`Id`) USING BTREE
  170. ) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
  171. SET FOREIGN_KEY_CHECKS = 1;