dump-wvp-202201051515.sql 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. -- 此脚本采用dbeaver导出
  2. -- MySQL dump 10.13 Distrib 8.0.27, for Linux (x86_64)
  3. --
  4. -- Host: localhost Database: wvp
  5. -- ------------------------------------------------------
  6. -- Server version 8.0.27-0ubuntu0.20.04.1
  7. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  8. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  9. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  10. /*!50503 SET NAMES utf8mb4 */;
  11. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  12. /*!40103 SET TIME_ZONE='+00:00' */;
  13. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  14. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  15. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  16. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  17. --
  18. -- Table structure for table `device`
  19. --
  20. DROP TABLE IF EXISTS `device`;
  21. /*!40101 SET @saved_cs_client = @@character_set_client */;
  22. /*!50503 SET character_set_client = utf8mb4 */;
  23. CREATE TABLE `device` (
  24. `deviceId` varchar(50) NOT NULL,
  25. `name` varchar(255) DEFAULT NULL,
  26. `manufacturer` varchar(255) DEFAULT NULL,
  27. `model` varchar(255) DEFAULT NULL,
  28. `firmware` varchar(255) DEFAULT NULL,
  29. `transport` varchar(50) DEFAULT NULL,
  30. `streamMode` varchar(50) DEFAULT NULL,
  31. `online` varchar(50) DEFAULT NULL,
  32. `registerTime` varchar(50) DEFAULT NULL,
  33. `keepaliveTime` varchar(50) DEFAULT NULL,
  34. `ip` varchar(50) NOT NULL,
  35. `createTime` varchar(50) NOT NULL,
  36. `updateTime` varchar(50) NOT NULL,
  37. `port` int NOT NULL,
  38. `expires` int NOT NULL,
  39. `subscribeCycleForCatalog` int NOT NULL,
  40. `hostAddress` varchar(50) NOT NULL,
  41. `charset` varchar(50) NOT NULL,
  42. PRIMARY KEY (`deviceId`)
  43. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  44. /*!40101 SET character_set_client = @saved_cs_client */;
  45. --
  46. -- Dumping data for table `device`
  47. --
  48. LOCK TABLES `device` WRITE;
  49. /*!40000 ALTER TABLE `device` DISABLE KEYS */;
  50. INSERT INTO `device` VALUES ('34020000001320000005','IPC-HFW4433M-I2','Dahua','IPC-HFW4433M-I2','2.622.0000000.31.R,2017-12-14','UDP','UDP','1','2022-01-05 15:08:26','2022-01-05 15:15:26','192.168.1.100','2022-01-05 15:08:26','2022-01-05 15:15:26',5060,3600,0,'192.168.1.100:5060','gb2312'),('34020000002000000005','DH-NVR5864-I','Dahua','DH-NVR5864-I','4.001.0000000.3,2020-10-22','UDP','UDP','1','2022-01-05 14:07:36','2022-01-05 15:15:25','192.168.1.19','2022-01-05 15:08:25','2022-01-05 15:15:25',5060,3600,0,'192.168.1.19:5060','gb2312'),('44010000001110008008',NULL,'Mercury','MIPC368(P)W-4','1.0.1 Build 210304 Rel.60784n','UDP','UDP','1','2022-01-05 15:08:35','2022-01-05 15:14:35','192.168.1.17','2022-01-05 15:08:35','2022-01-05 15:14:35',5060,36000,0,'192.168.1.17:5060','gb2312');
  51. /*!40000 ALTER TABLE `device` ENABLE KEYS */;
  52. UNLOCK TABLES;
  53. --
  54. -- Table structure for table `device_alarm`
  55. --
  56. DROP TABLE IF EXISTS `device_alarm`;
  57. /*!40101 SET @saved_cs_client = @@character_set_client */;
  58. /*!50503 SET character_set_client = utf8mb4 */;
  59. CREATE TABLE `device_alarm` (
  60. `id` int NOT NULL AUTO_INCREMENT,
  61. `deviceId` varchar(50) NOT NULL,
  62. `channelId` varchar(50) NOT NULL,
  63. `alarmPriority` varchar(50) NOT NULL,
  64. `alarmMethod` varchar(50) DEFAULT NULL,
  65. `alarmTime` varchar(50) NOT NULL,
  66. `alarmDescription` varchar(255) DEFAULT NULL,
  67. `longitude` double DEFAULT NULL,
  68. `latitude` double DEFAULT NULL,
  69. `alarmType` varchar(50) DEFAULT NULL,
  70. PRIMARY KEY (`id`)
  71. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  72. /*!40101 SET character_set_client = @saved_cs_client */;
  73. --
  74. -- Dumping data for table `device_alarm`
  75. --
  76. LOCK TABLES `device_alarm` WRITE;
  77. /*!40000 ALTER TABLE `device_alarm` DISABLE KEYS */;
  78. /*!40000 ALTER TABLE `device_alarm` ENABLE KEYS */;
  79. UNLOCK TABLES;
  80. --
  81. -- Table structure for table `device_channel`
  82. --
  83. DROP TABLE IF EXISTS `device_channel`;
  84. /*!40101 SET @saved_cs_client = @@character_set_client */;
  85. /*!50503 SET character_set_client = utf8mb4 */;
  86. CREATE TABLE `device_channel` (
  87. `channelId` varchar(50) NOT NULL,
  88. `name` varchar(255) DEFAULT NULL,
  89. `manufacture` varchar(50) DEFAULT NULL,
  90. `model` varchar(50) DEFAULT NULL,
  91. `owner` varchar(50) DEFAULT NULL,
  92. `civilCode` varchar(50) DEFAULT NULL,
  93. `block` varchar(50) DEFAULT NULL,
  94. `address` varchar(50) DEFAULT NULL,
  95. `parentId` varchar(50) DEFAULT NULL,
  96. `safetyWay` int DEFAULT NULL,
  97. `registerWay` int DEFAULT NULL,
  98. `certNum` varchar(50) DEFAULT NULL,
  99. `certifiable` int DEFAULT NULL,
  100. `errCode` int DEFAULT NULL,
  101. `endTime` varchar(50) DEFAULT NULL,
  102. `secrecy` varchar(50) DEFAULT NULL,
  103. `ipAddress` varchar(50) DEFAULT NULL,
  104. `port` int DEFAULT NULL,
  105. `password` varchar(255) DEFAULT NULL,
  106. `PTZType` int DEFAULT NULL,
  107. `status` int DEFAULT NULL,
  108. `longitude` double DEFAULT NULL,
  109. `latitude` double DEFAULT NULL,
  110. `streamId` varchar(50) DEFAULT NULL,
  111. `deviceId` varchar(50) NOT NULL,
  112. `parental` varchar(50) DEFAULT NULL,
  113. `hasAudio` bit(1) DEFAULT NULL,
  114. `createTime` varchar(50) NOT NULL,
  115. `updateTime` varchar(50) NOT NULL,
  116. PRIMARY KEY (`channelId`,`deviceId`)
  117. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  118. /*!40101 SET character_set_client = @saved_cs_client */;
  119. --
  120. -- Dumping data for table `device_channel`
  121. --
  122. LOCK TABLES `device_channel` WRITE;
  123. /*!40000 ALTER TABLE `device_channel` DISABLE KEYS */;
  124. INSERT INTO `device_channel` VALUES ('34020000001310000001','IPC','Dahua','IPC-HFW4433M-I2','0','340200','','axy','34020000001320000005',0,1,'',0,0,NULL,'0','',0,'',0,1,0,0,'','34020000001320000005','0',NULL,'2022-01-05 15:11:21','2022-01-05 15:11:21'),('34020000001310000001','通道1','Dahua','DH-NVR5864-I','0','340200','','axy','34020000002000000005',0,1,'',0,0,NULL,'0','192.168.1.17',37777,'',0,1,0,0,'','34020000002000000005','0',NULL,'2022-01-05 15:11:25','2022-01-05 15:11:25'),('34020000001310000065','GB_Chn_065','Dahua','DH-NVR5864-I','0','340200','','axy','34020000002000000005',0,1,'',0,0,NULL,'0','',0,'',0,1,0,0,'','34020000002000000005','0',NULL,'2022-01-05 15:11:25','2022-01-05 15:11:25'),('34020000001320000001','IPCamera 01','Mercury','MIPC368(P)W-4','Owner','CivilCode','','Address','',0,1,'',0,0,NULL,'0','',0,'',0,1,0,0,'','44010000001110008008','0',NULL,'2022-01-05 15:11:26','2022-01-05 15:11:26');
  125. /*!40000 ALTER TABLE `device_channel` ENABLE KEYS */;
  126. UNLOCK TABLES;
  127. --
  128. -- Table structure for table `device_mobile_position`
  129. --
  130. DROP TABLE IF EXISTS `device_mobile_position`;
  131. /*!40101 SET @saved_cs_client = @@character_set_client */;
  132. /*!50503 SET character_set_client = utf8mb4 */;
  133. CREATE TABLE `device_mobile_position` (
  134. `deviceId` varchar(50) NOT NULL,
  135. `channelId` varchar(50) NOT NULL,
  136. `deviceName` varchar(255) DEFAULT NULL,
  137. `time` varchar(50) NOT NULL,
  138. `longitude` double NOT NULL,
  139. `latitude` double NOT NULL,
  140. `altitude` double DEFAULT NULL,
  141. `speed` double DEFAULT NULL,
  142. `direction` double DEFAULT NULL,
  143. `reportSource` varchar(50) DEFAULT NULL,
  144. `geodeticSystem` varchar(50) DEFAULT NULL,
  145. `cnLng` varchar(50) DEFAULT NULL,
  146. `cnLat` varchar(50) DEFAULT NULL,
  147. PRIMARY KEY (`deviceId`,`time`)
  148. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  149. /*!40101 SET character_set_client = @saved_cs_client */;
  150. --
  151. -- Dumping data for table `device_mobile_position`
  152. --
  153. LOCK TABLES `device_mobile_position` WRITE;
  154. /*!40000 ALTER TABLE `device_mobile_position` DISABLE KEYS */;
  155. /*!40000 ALTER TABLE `device_mobile_position` ENABLE KEYS */;
  156. UNLOCK TABLES;
  157. --
  158. -- Table structure for table `gb_stream`
  159. --
  160. DROP TABLE IF EXISTS `gb_stream`;
  161. /*!40101 SET @saved_cs_client = @@character_set_client */;
  162. /*!50503 SET character_set_client = utf8mb4 */;
  163. CREATE TABLE `gb_stream` (
  164. `app` varchar(255) NOT NULL,
  165. `stream` varchar(255) NOT NULL,
  166. `gbId` varchar(50) NOT NULL,
  167. `name` varchar(255) DEFAULT NULL,
  168. `longitude` double DEFAULT NULL,
  169. `latitude` double DEFAULT NULL,
  170. `streamType` varchar(50) DEFAULT NULL,
  171. `mediaServerId` varchar(50) DEFAULT NULL,
  172. `status` int DEFAULT NULL,
  173. PRIMARY KEY (`app`,`stream`,`gbId`)
  174. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  175. /*!40101 SET character_set_client = @saved_cs_client */;
  176. --
  177. -- Dumping data for table `gb_stream`
  178. --
  179. LOCK TABLES `gb_stream` WRITE;
  180. /*!40000 ALTER TABLE `gb_stream` DISABLE KEYS */;
  181. INSERT INTO `gb_stream` VALUES ('1000','10000001_52869999','77777777777777777777','shoulei1111',0,0,'push','XR1LEpKlfQtSg9Z1',1);
  182. /*!40000 ALTER TABLE `gb_stream` ENABLE KEYS */;
  183. UNLOCK TABLES;
  184. --
  185. -- Table structure for table `log`
  186. --
  187. DROP TABLE IF EXISTS `log`;
  188. /*!40101 SET @saved_cs_client = @@character_set_client */;
  189. /*!50503 SET character_set_client = utf8mb4 */;
  190. CREATE TABLE `log` (
  191. `id` int NOT NULL AUTO_INCREMENT,
  192. `name` varchar(50) NOT NULL,
  193. `type` varchar(50) NOT NULL,
  194. `uri` varchar(200) NOT NULL,
  195. `address` varchar(50) NOT NULL,
  196. `result` varchar(50) NOT NULL,
  197. `timing` bigint NOT NULL,
  198. `username` varchar(50) NOT NULL,
  199. `createTime` varchar(50) NOT NULL,
  200. PRIMARY KEY (`id`)
  201. ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  202. /*!40101 SET character_set_client = @saved_cs_client */;
  203. --
  204. -- Dumping data for table `log`
  205. --
  206. LOCK TABLES `log` WRITE;
  207. /*!40000 ALTER TABLE `log` DISABLE KEYS */;
  208. INSERT INTO `log` VALUES (1,'登录','GET','/api/user/login','127.0.0.1','200 OK',245,'admin','2022-01-05 15:09:06'),(2,'添加上级平台','POST','/api/platform/save','127.0.0.1','200 OK',88,'admin','2022-01-05 15:09:24'),(3,'[设备查询] 同步设备通道','POST','/api/device/query/devices/34020000001320000005/sync','127.0.0.1','200 OK',17,'admin','2022-01-05 15:11:21'),(4,'[设备查询] 同步设备通道','POST','/api/device/query/devices/34020000002000000005/sync','127.0.0.1','200 OK',4,'admin','2022-01-05 15:11:25'),(5,'[设备查询] 同步设备通道','POST','/api/device/query/devices/44010000001110008008/sync','127.0.0.1','200 OK',4,'admin','2022-01-05 15:11:26'),(6,'向上级平台添加国标通道','POST','/api/platform/update_channel_for_gb','127.0.0.1','200 OK',52,'admin','2022-01-05 15:11:32'),(7,'从上级平台移除国标通道','DELETE','/api/platform/del_channel_for_gb','127.0.0.1','200 OK',35,'admin','2022-01-05 15:11:34'),(8,'向上级平台添加国标通道','POST','/api/platform/update_channel_for_gb','127.0.0.1','200 OK',39,'admin','2022-01-05 15:11:35'),(9,'从上级平台移除国标通道','DELETE','/api/platform/del_channel_for_gb','127.0.0.1','200 OK',46,'admin','2022-01-05 15:14:00'),(10,'向上级平台添加国标通道','POST','/api/platform/update_channel_for_gb','127.0.0.1','200 OK',59,'admin','2022-01-05 15:14:01'),(11,'添加通道与国标的关联','POST','/api/gbStream/add','127.0.0.1','200 OK',12,'admin','2022-01-05 15:14:16'),(12,'添加通道与国标的关联','POST','/api/gbStream/add','127.0.0.1','200 OK',8,'admin','2022-01-05 15:14:17'),(13,'添加通道与国标的关联','POST','/api/gbStream/add','127.0.0.1','200 OK',6,'admin','2022-01-05 15:14:19'),(14,'添加通道与国标的关联','POST','/api/gbStream/add','127.0.0.1','200 OK',8,'admin','2022-01-05 15:14:19'),(15,'移除通道与国标的关联','DELETE','/api/gbStream/del','127.0.0.1','200 OK',11,'admin','2022-01-05 15:14:21'),(16,'添加通道与国标的关联','POST','/api/gbStream/add','127.0.0.1','200 OK',42,'admin','2022-01-05 15:14:24'),(17,'移除通道与国标的关联','DELETE','/api/gbStream/del','127.0.0.1','200 OK',43,'admin','2022-01-05 15:14:25'),(18,'添加通道与国标的关联','POST','/api/gbStream/add','127.0.0.1','200 OK',9,'admin','2022-01-05 15:14:27'),(19,'添加通道与国标的关联','POST','/api/gbStream/add','127.0.0.1','200 OK',9,'admin','2022-01-05 15:14:37'),(20,'添加通道与国标的关联','POST','/api/gbStream/add','127.0.0.1','200 OK',10,'admin','2022-01-05 15:14:38');
  209. /*!40000 ALTER TABLE `log` ENABLE KEYS */;
  210. UNLOCK TABLES;
  211. --
  212. -- Table structure for table `media_server`
  213. --
  214. DROP TABLE IF EXISTS `media_server`;
  215. /*!40101 SET @saved_cs_client = @@character_set_client */;
  216. /*!50503 SET character_set_client = utf8mb4 */;
  217. CREATE TABLE `media_server` (
  218. `id` varchar(255) NOT NULL,
  219. `ip` varchar(50) NOT NULL,
  220. `hookIp` varchar(50) NOT NULL,
  221. `sdpIp` varchar(50) NOT NULL,
  222. `streamIp` varchar(50) NOT NULL,
  223. `httpPort` int NOT NULL,
  224. `httpSSlPort` int NOT NULL,
  225. `rtmpPort` int NOT NULL,
  226. `rtmpSSlPort` int NOT NULL,
  227. `rtpProxyPort` int NOT NULL,
  228. `rtspPort` int NOT NULL,
  229. `rtspSSLPort` int NOT NULL,
  230. `autoConfig` int NOT NULL,
  231. `secret` varchar(50) NOT NULL,
  232. `streamNoneReaderDelayMS` int NOT NULL,
  233. `rtpEnable` int NOT NULL,
  234. `rtpPortRange` varchar(50) NOT NULL,
  235. `sendRtpPortRange` varchar(50) NOT NULL,
  236. `recordAssistPort` int NOT NULL,
  237. `defaultServer` int NOT NULL,
  238. `createTime` varchar(50) NOT NULL,
  239. `updateTime` varchar(50) NOT NULL,
  240. `hookAliveInterval` int NOT NULL,
  241. PRIMARY KEY (`id`),
  242. UNIQUE KEY `media_server_i` (`ip`,`httpPort`)
  243. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  244. /*!40101 SET character_set_client = @saved_cs_client */;
  245. --
  246. -- Dumping data for table `media_server`
  247. --
  248. LOCK TABLES `media_server` WRITE;
  249. /*!40000 ALTER TABLE `media_server` DISABLE KEYS */;
  250. INSERT INTO `media_server` VALUES ('XR1LEpKlfQtSg9Z1','192.168.1.3','127.0.0.1','192.168.1.3','192.168.1.3',6080,0,10935,0,10000,10554,0,1,'035c73f7-bb6b-4889-a715-d9eb2d1925cc',100000,1,'30000,30500','30000,30500',18081,1,'2022-01-05 15:08:27','2022-01-05 15:08:27',10);
  251. /*!40000 ALTER TABLE `media_server` ENABLE KEYS */;
  252. UNLOCK TABLES;
  253. --
  254. -- Table structure for table `parent_platform`
  255. --
  256. DROP TABLE IF EXISTS `parent_platform`;
  257. /*!40101 SET @saved_cs_client = @@character_set_client */;
  258. /*!50503 SET character_set_client = utf8mb4 */;
  259. CREATE TABLE `parent_platform` (
  260. `id` int NOT NULL AUTO_INCREMENT,
  261. `enable` int DEFAULT NULL,
  262. `name` varchar(255) DEFAULT NULL,
  263. `serverGBId` varchar(50) NOT NULL,
  264. `serverGBDomain` varchar(50) DEFAULT NULL,
  265. `serverIP` varchar(50) DEFAULT NULL,
  266. `serverPort` int DEFAULT NULL,
  267. `deviceGBId` varchar(50) NOT NULL,
  268. `deviceIp` varchar(50) DEFAULT NULL,
  269. `devicePort` varchar(50) DEFAULT NULL,
  270. `username` varchar(255) DEFAULT NULL,
  271. `password` varchar(50) DEFAULT NULL,
  272. `expires` varchar(50) DEFAULT NULL,
  273. `keepTimeout` varchar(50) DEFAULT NULL,
  274. `transport` varchar(50) DEFAULT NULL,
  275. `characterSet` varchar(50) DEFAULT NULL,
  276. `catalogId` varchar(50) NOT NULL,
  277. `ptz` int DEFAULT NULL,
  278. `rtcp` int DEFAULT NULL,
  279. `status` bit(1) DEFAULT NULL,
  280. `shareAllLiveStream` int DEFAULT NULL,
  281. PRIMARY KEY (`id`,`serverGBId`)
  282. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  283. /*!40101 SET character_set_client = @saved_cs_client */;
  284. --
  285. -- Dumping data for table `parent_platform`
  286. --
  287. LOCK TABLES `parent_platform` WRITE;
  288. /*!40000 ALTER TABLE `parent_platform` DISABLE KEYS */;
  289. INSERT INTO `parent_platform` VALUES (1,1,'1112','1111111111111','1111111111','11.11.11.11',111111,'34020000002110000015','192.168.1.3','5060','34020000002110000015','12345678','300','60','UDP','GB2312','1111111111111',1,0,_binary '\0',1);
  290. /*!40000 ALTER TABLE `parent_platform` ENABLE KEYS */;
  291. UNLOCK TABLES;
  292. --
  293. -- Table structure for table `platform_catalog`
  294. --
  295. DROP TABLE IF EXISTS `platform_catalog`;
  296. /*!40101 SET @saved_cs_client = @@character_set_client */;
  297. /*!50503 SET character_set_client = utf8mb4 */;
  298. CREATE TABLE `platform_catalog` (
  299. `id` varchar(50) NOT NULL,
  300. `platformId` varchar(50) NOT NULL,
  301. `name` varchar(255) NOT NULL,
  302. `parentId` varchar(50) DEFAULT NULL,
  303. PRIMARY KEY (`id`)
  304. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  305. /*!40101 SET character_set_client = @saved_cs_client */;
  306. --
  307. -- Dumping data for table `platform_catalog`
  308. --
  309. LOCK TABLES `platform_catalog` WRITE;
  310. /*!40000 ALTER TABLE `platform_catalog` DISABLE KEYS */;
  311. INSERT INTO `platform_catalog` VALUES ('1111111111','1111111111111','11122','1111111111111');
  312. /*!40000 ALTER TABLE `platform_catalog` ENABLE KEYS */;
  313. UNLOCK TABLES;
  314. --
  315. -- Table structure for table `platform_gb_channel`
  316. --
  317. DROP TABLE IF EXISTS `platform_gb_channel`;
  318. /*!40101 SET @saved_cs_client = @@character_set_client */;
  319. /*!50503 SET character_set_client = utf8mb4 */;
  320. CREATE TABLE `platform_gb_channel` (
  321. `channelId` varchar(50) NOT NULL,
  322. `deviceId` varchar(50) NOT NULL,
  323. `platformId` varchar(50) NOT NULL,
  324. `deviceAndChannelId` varchar(50) NOT NULL,
  325. `catalogId` varchar(50) NOT NULL,
  326. PRIMARY KEY (`deviceAndChannelId`,`platformId`)
  327. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  328. /*!40101 SET character_set_client = @saved_cs_client */;
  329. --
  330. -- Dumping data for table `platform_gb_channel`
  331. --
  332. LOCK TABLES `platform_gb_channel` WRITE;
  333. /*!40000 ALTER TABLE `platform_gb_channel` DISABLE KEYS */;
  334. INSERT INTO `platform_gb_channel` VALUES ('34020000001310000001','34020000001320000005','1111111111111','34020000001320000005_34020000001310000001','1111111111'),('34020000001310000001','34020000002000000005','1111111111111','34020000002000000005_34020000001310000001','1111111111'),('34020000001310000065','34020000002000000005','1111111111111','34020000002000000005_34020000001310000065','1111111111'),('34020000001320000001','44010000001110008008','1111111111111','44010000001110008008_34020000001320000001','1111111111');
  335. /*!40000 ALTER TABLE `platform_gb_channel` ENABLE KEYS */;
  336. UNLOCK TABLES;
  337. --
  338. -- Table structure for table `platform_gb_stream`
  339. --
  340. DROP TABLE IF EXISTS `platform_gb_stream`;
  341. /*!40101 SET @saved_cs_client = @@character_set_client */;
  342. /*!50503 SET character_set_client = utf8mb4 */;
  343. CREATE TABLE `platform_gb_stream` (
  344. `platformId` varchar(50) NOT NULL,
  345. `app` varchar(255) NOT NULL,
  346. `stream` varchar(255) NOT NULL,
  347. `catalogId` varchar(50) NOT NULL,
  348. PRIMARY KEY (`platformId`,`app`,`stream`)
  349. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  350. /*!40101 SET character_set_client = @saved_cs_client */;
  351. --
  352. -- Dumping data for table `platform_gb_stream`
  353. --
  354. LOCK TABLES `platform_gb_stream` WRITE;
  355. /*!40000 ALTER TABLE `platform_gb_stream` DISABLE KEYS */;
  356. INSERT INTO `platform_gb_stream` VALUES ('1111111111111','1000','10000001_52869999','1111111111');
  357. /*!40000 ALTER TABLE `platform_gb_stream` ENABLE KEYS */;
  358. UNLOCK TABLES;
  359. --
  360. -- Table structure for table `role`
  361. --
  362. DROP TABLE IF EXISTS `role`;
  363. /*!40101 SET @saved_cs_client = @@character_set_client */;
  364. /*!50503 SET character_set_client = utf8mb4 */;
  365. CREATE TABLE `role` (
  366. `id` int NOT NULL AUTO_INCREMENT,
  367. `name` text NOT NULL,
  368. `authority` text NOT NULL,
  369. `createTime` varchar(50) NOT NULL,
  370. `updateTime` varchar(50) NOT NULL,
  371. PRIMARY KEY (`id`)
  372. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  373. /*!40101 SET character_set_client = @saved_cs_client */;
  374. --
  375. -- Dumping data for table `role`
  376. --
  377. LOCK TABLES `role` WRITE;
  378. /*!40000 ALTER TABLE `role` DISABLE KEYS */;
  379. INSERT INTO `role` VALUES (1,'admin','0','2021-04-13 14:14:57','2021-04-13 14:14:57');
  380. /*!40000 ALTER TABLE `role` ENABLE KEYS */;
  381. UNLOCK TABLES;
  382. --
  383. -- Table structure for table `stream_proxy`
  384. --
  385. DROP TABLE IF EXISTS `stream_proxy`;
  386. /*!40101 SET @saved_cs_client = @@character_set_client */;
  387. /*!50503 SET character_set_client = utf8mb4 */;
  388. CREATE TABLE `stream_proxy` (
  389. `type` varchar(50) NOT NULL,
  390. `app` varchar(255) NOT NULL,
  391. `stream` varchar(255) NOT NULL,
  392. `url` varchar(255) DEFAULT NULL,
  393. `src_url` varchar(255) DEFAULT NULL,
  394. `dst_url` varchar(255) DEFAULT NULL,
  395. `timeout_ms` int DEFAULT NULL,
  396. `ffmpeg_cmd_key` varchar(255) DEFAULT NULL,
  397. `rtp_type` varchar(50) DEFAULT NULL,
  398. `mediaServerId` varchar(50) DEFAULT NULL,
  399. `enable_hls` bit(1) DEFAULT NULL,
  400. `enable_mp4` bit(1) DEFAULT NULL,
  401. `enable` bit(1) NOT NULL,
  402. `enable_remove_none_reader` bit(1) NOT NULL,
  403. `createTime` varchar(50) NOT NULL,
  404. PRIMARY KEY (`app`,`stream`)
  405. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  406. /*!40101 SET character_set_client = @saved_cs_client */;
  407. --
  408. -- Dumping data for table `stream_proxy`
  409. --
  410. LOCK TABLES `stream_proxy` WRITE;
  411. /*!40000 ALTER TABLE `stream_proxy` DISABLE KEYS */;
  412. /*!40000 ALTER TABLE `stream_proxy` ENABLE KEYS */;
  413. UNLOCK TABLES;
  414. --
  415. -- Table structure for table `stream_push`
  416. --
  417. DROP TABLE IF EXISTS `stream_push`;
  418. /*!40101 SET @saved_cs_client = @@character_set_client */;
  419. /*!50503 SET character_set_client = utf8mb4 */;
  420. CREATE TABLE `stream_push` (
  421. `app` varchar(255) NOT NULL,
  422. `stream` varchar(255) NOT NULL,
  423. `totalReaderCount` varchar(50) DEFAULT NULL,
  424. `originType` int DEFAULT NULL,
  425. `originTypeStr` varchar(50) DEFAULT NULL,
  426. `createStamp` int DEFAULT NULL,
  427. `aliveSecond` int DEFAULT NULL,
  428. `mediaServerId` varchar(50) DEFAULT NULL,
  429. PRIMARY KEY (`app`,`stream`)
  430. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  431. /*!40101 SET character_set_client = @saved_cs_client */;
  432. --
  433. -- Dumping data for table `stream_push`
  434. --
  435. LOCK TABLES `stream_push` WRITE;
  436. /*!40000 ALTER TABLE `stream_push` DISABLE KEYS */;
  437. INSERT INTO `stream_push` VALUES ('1000','10000001_52869999','0',2,'rtsp_push',1641366850,0,'XR1LEpKlfQtSg9Z1');
  438. /*!40000 ALTER TABLE `stream_push` ENABLE KEYS */;
  439. UNLOCK TABLES;
  440. --
  441. -- Table structure for table `user`
  442. --
  443. DROP TABLE IF EXISTS `user`;
  444. /*!40101 SET @saved_cs_client = @@character_set_client */;
  445. /*!50503 SET character_set_client = utf8mb4 */;
  446. CREATE TABLE `user` (
  447. `id` int NOT NULL AUTO_INCREMENT,
  448. `username` varchar(255) NOT NULL,
  449. `password` varchar(255) NOT NULL,
  450. `roleId` int NOT NULL,
  451. `createTime` varchar(50) NOT NULL,
  452. `updateTime` varchar(50) NOT NULL,
  453. PRIMARY KEY (`id`),
  454. UNIQUE KEY `user_username_uindex` (`username`)
  455. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  456. /*!40101 SET character_set_client = @saved_cs_client */;
  457. --
  458. -- Dumping data for table `user`
  459. --
  460. LOCK TABLES `user` WRITE;
  461. /*!40000 ALTER TABLE `user` DISABLE KEYS */;
  462. INSERT INTO `user` VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57');
  463. /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  464. UNLOCK TABLES;
  465. --
  466. -- Dumping routines for database 'wvp'
  467. --
  468. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  469. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  470. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  471. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  472. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  473. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  474. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  475. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  476. -- Dump completed on 2022-01-05 15:15:35