mysql.sql 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. -- MariaDB dump 10.19 Distrib 10.7.3-MariaDB, for Linux (x86_64)
  2. --
  3. -- Host: 127.0.0.1 Database: wvp3
  4. -- ------------------------------------------------------
  5. -- Server version 8.0.0-dmr
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8mb4 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Table structure for table `device`
  18. --
  19. DROP TABLE IF EXISTS `device`;
  20. /*!40101 SET @saved_cs_client = @@character_set_client */;
  21. /*!40101 SET character_set_client = utf8 */;
  22. CREATE TABLE `device` (
  23. `id` int(11) NOT NULL AUTO_INCREMENT,
  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(11) NOT NULL,
  38. `expires` int(11) NOT NULL,
  39. `subscribeCycleForCatalog` int(11) NOT NULL,
  40. `subscribeCycleForMobilePosition` int(11) NOT NULL,
  41. `mobilePositionSubmissionInterval` int(11) NOT NULL DEFAULT '5',
  42. `subscribeCycleForAlarm` int(11) NOT NULL,
  43. `hostAddress` varchar(50) NOT NULL,
  44. `audioChannelForReceive` varchar(50) NOT NULL,
  45. `audioChannelForSend` varchar(50) NOT NULL,
  46. `charset` varchar(50) NOT NULL,
  47. `ssrcCheck` int(11) DEFAULT '0',
  48. PRIMARY KEY (`id`),
  49. UNIQUE KEY `device_deviceId_uindex` (`deviceId`)
  50. ) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb4;
  51. /*!40101 SET character_set_client = @saved_cs_client */;
  52. --
  53. -- Dumping data for table `device`
  54. --
  55. LOCK TABLES `device` WRITE;
  56. /*!40000 ALTER TABLE `device` DISABLE KEYS */;
  57. /*!40000 ALTER TABLE `device` ENABLE KEYS */;
  58. UNLOCK TABLES;
  59. --
  60. -- Table structure for table `device_alarm`
  61. --
  62. DROP TABLE IF EXISTS `device_alarm`;
  63. /*!40101 SET @saved_cs_client = @@character_set_client */;
  64. /*!40101 SET character_set_client = utf8 */;
  65. CREATE TABLE `device_alarm` (
  66. `id` int(11) NOT NULL AUTO_INCREMENT,
  67. `deviceId` varchar(50) NOT NULL,
  68. `channelId` varchar(50) NOT NULL,
  69. `alarmPriority` varchar(50) NOT NULL,
  70. `alarmMethod` varchar(50) DEFAULT NULL,
  71. `alarmTime` varchar(50) NOT NULL,
  72. `alarmDescription` varchar(255) DEFAULT NULL,
  73. `longitude` double DEFAULT NULL,
  74. `latitude` double DEFAULT NULL,
  75. `alarmType` varchar(50) DEFAULT NULL,
  76. PRIMARY KEY (`id`) USING BTREE
  77. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  78. /*!40101 SET character_set_client = @saved_cs_client */;
  79. --
  80. -- Dumping data for table `device_alarm`
  81. --
  82. LOCK TABLES `device_alarm` WRITE;
  83. /*!40000 ALTER TABLE `device_alarm` DISABLE KEYS */;
  84. /*!40000 ALTER TABLE `device_alarm` ENABLE KEYS */;
  85. UNLOCK TABLES;
  86. --
  87. -- Table structure for table `device_channel`
  88. --
  89. DROP TABLE IF EXISTS `device_channel`;
  90. /*!40101 SET @saved_cs_client = @@character_set_client */;
  91. /*!40101 SET character_set_client = utf8 */;
  92. CREATE TABLE `device_channel` (
  93. `id` int(11) NOT NULL AUTO_INCREMENT,
  94. `channelId` varchar(50) NOT NULL,
  95. `name` varchar(255) DEFAULT NULL,
  96. `manufacture` varchar(50) DEFAULT NULL,
  97. `model` varchar(50) DEFAULT NULL,
  98. `owner` varchar(50) DEFAULT NULL,
  99. `civilCode` varchar(50) DEFAULT NULL,
  100. `block` varchar(50) DEFAULT NULL,
  101. `address` varchar(50) DEFAULT NULL,
  102. `parentId` varchar(50) DEFAULT NULL,
  103. `safetyWay` int(11) DEFAULT NULL,
  104. `registerWay` int(11) DEFAULT NULL,
  105. `certNum` varchar(50) DEFAULT NULL,
  106. `certifiable` int(11) DEFAULT NULL,
  107. `errCode` int(11) DEFAULT NULL,
  108. `endTime` varchar(50) DEFAULT NULL,
  109. `secrecy` varchar(50) DEFAULT NULL,
  110. `ipAddress` varchar(50) DEFAULT NULL,
  111. `port` int(11) DEFAULT NULL,
  112. `password` varchar(255) DEFAULT NULL,
  113. `PTZType` int(11) DEFAULT NULL,
  114. `status` int(11) DEFAULT NULL,
  115. `longitude` double DEFAULT NULL,
  116. `latitude` double DEFAULT NULL,
  117. `streamId` varchar(50) DEFAULT NULL,
  118. `deviceId` varchar(50) NOT NULL,
  119. `parental` varchar(50) DEFAULT NULL,
  120. `hasAudio` bit(1) DEFAULT NULL,
  121. `createTime` varchar(50) NOT NULL,
  122. `updateTime` varchar(50) NOT NULL,
  123. `subCount` int(11) DEFAULT '0',
  124. PRIMARY KEY (`id`),
  125. UNIQUE KEY `device_channel_id_uindex` (`id`),
  126. UNIQUE KEY `device_channel_pk` (`channelId`,`deviceId`)
  127. ) ENGINE=InnoDB AUTO_INCREMENT=81657 DEFAULT CHARSET=utf8mb4;
  128. /*!40101 SET character_set_client = @saved_cs_client */;
  129. --
  130. -- Dumping data for table `device_channel`
  131. --
  132. LOCK TABLES `device_channel` WRITE;
  133. /*!40000 ALTER TABLE `device_channel` DISABLE KEYS */;
  134. /*!40000 ALTER TABLE `device_channel` ENABLE KEYS */;
  135. UNLOCK TABLES;
  136. --
  137. -- Table structure for table `device_mobile_position`
  138. --
  139. DROP TABLE IF EXISTS `device_mobile_position`;
  140. /*!40101 SET @saved_cs_client = @@character_set_client */;
  141. /*!40101 SET character_set_client = utf8 */;
  142. CREATE TABLE `device_mobile_position` (
  143. `id` int(11) NOT NULL AUTO_INCREMENT,
  144. `deviceId` varchar(50) NOT NULL,
  145. `channelId` varchar(50) NOT NULL,
  146. `deviceName` varchar(255) DEFAULT NULL,
  147. `time` varchar(50) NOT NULL,
  148. `longitude` double NOT NULL,
  149. `latitude` double NOT NULL,
  150. `altitude` double DEFAULT NULL,
  151. `speed` double DEFAULT NULL,
  152. `direction` double DEFAULT NULL,
  153. `reportSource` varchar(50) DEFAULT NULL,
  154. `geodeticSystem` varchar(50) DEFAULT NULL,
  155. `cnLng` varchar(50) DEFAULT NULL,
  156. `cnLat` varchar(50) DEFAULT NULL,
  157. PRIMARY KEY (`id`)
  158. ) ENGINE=InnoDB AUTO_INCREMENT=6108 DEFAULT CHARSET=utf8mb4;
  159. /*!40101 SET character_set_client = @saved_cs_client */;
  160. --
  161. -- Dumping data for table `device_mobile_position`
  162. --
  163. LOCK TABLES `device_mobile_position` WRITE;
  164. /*!40000 ALTER TABLE `device_mobile_position` DISABLE KEYS */;
  165. /*!40000 ALTER TABLE `device_mobile_position` ENABLE KEYS */;
  166. UNLOCK TABLES;
  167. --
  168. -- Table structure for table `gb_stream`
  169. --
  170. DROP TABLE IF EXISTS `gb_stream`;
  171. /*!40101 SET @saved_cs_client = @@character_set_client */;
  172. /*!40101 SET character_set_client = utf8 */;
  173. CREATE TABLE `gb_stream` (
  174. `gbStreamId` int(11) NOT NULL AUTO_INCREMENT,
  175. `app` varchar(255) NOT NULL,
  176. `stream` varchar(255) NOT NULL,
  177. `gbId` varchar(50) NOT NULL,
  178. `name` varchar(255) DEFAULT NULL,
  179. `longitude` double DEFAULT NULL,
  180. `latitude` double DEFAULT NULL,
  181. `streamType` varchar(50) DEFAULT NULL,
  182. `mediaServerId` varchar(50) DEFAULT NULL,
  183. `status` int(11) DEFAULT NULL,
  184. `createStamp` bigint(20) DEFAULT NULL,
  185. PRIMARY KEY (`gbStreamId`) USING BTREE,
  186. UNIQUE KEY `app` (`app`,`stream`) USING BTREE,
  187. UNIQUE KEY `gbId` (`gbId`) USING BTREE
  188. ) ENGINE=InnoDB AUTO_INCREMENT=300769 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  189. /*!40101 SET character_set_client = @saved_cs_client */;
  190. --
  191. -- Dumping data for table `gb_stream`
  192. --
  193. LOCK TABLES `gb_stream` WRITE;
  194. /*!40000 ALTER TABLE `gb_stream` DISABLE KEYS */;
  195. /*!40000 ALTER TABLE `gb_stream` ENABLE KEYS */;
  196. UNLOCK TABLES;
  197. --
  198. -- Table structure for table `log`
  199. --
  200. DROP TABLE IF EXISTS `log`;
  201. /*!40101 SET @saved_cs_client = @@character_set_client */;
  202. /*!40101 SET character_set_client = utf8 */;
  203. CREATE TABLE `log` (
  204. `id` int(11) NOT NULL AUTO_INCREMENT,
  205. `name` varchar(50) NOT NULL,
  206. `type` varchar(50) NOT NULL,
  207. `uri` varchar(200) NOT NULL,
  208. `address` varchar(50) NOT NULL,
  209. `result` varchar(50) NOT NULL,
  210. `timing` bigint(20) NOT NULL,
  211. `username` varchar(50) NOT NULL,
  212. `createTime` varchar(50) NOT NULL,
  213. PRIMARY KEY (`id`) USING BTREE
  214. ) ENGINE=InnoDB AUTO_INCREMENT=1552 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  215. /*!40101 SET character_set_client = @saved_cs_client */;
  216. --
  217. -- Dumping data for table `log`
  218. --
  219. LOCK TABLES `log` WRITE;
  220. /*!40000 ALTER TABLE `log` DISABLE KEYS */;
  221. /*!40000 ALTER TABLE `log` ENABLE KEYS */;
  222. UNLOCK TABLES;
  223. --
  224. -- Table structure for table `media_server`
  225. --
  226. DROP TABLE IF EXISTS `media_server`;
  227. /*!40101 SET @saved_cs_client = @@character_set_client */;
  228. /*!40101 SET character_set_client = utf8 */;
  229. CREATE TABLE `media_server` (
  230. `id` varchar(255) NOT NULL,
  231. `ip` varchar(50) NOT NULL,
  232. `hookIp` varchar(50) NOT NULL,
  233. `sdpIp` varchar(50) NOT NULL,
  234. `streamIp` varchar(50) NOT NULL,
  235. `httpPort` int(11) NOT NULL,
  236. `httpSSlPort` int(11) NOT NULL,
  237. `rtmpPort` int(11) NOT NULL,
  238. `rtmpSSlPort` int(11) NOT NULL,
  239. `rtpProxyPort` int(11) NOT NULL,
  240. `rtspPort` int(11) NOT NULL,
  241. `rtspSSLPort` int(11) NOT NULL,
  242. `autoConfig` int(11) NOT NULL,
  243. `secret` varchar(50) NOT NULL,
  244. `streamNoneReaderDelayMS` int(11) NOT NULL,
  245. `rtpEnable` int(11) NOT NULL,
  246. `rtpPortRange` varchar(50) NOT NULL,
  247. `sendRtpPortRange` varchar(50) NOT NULL,
  248. `recordAssistPort` int(11) NOT NULL,
  249. `defaultServer` int(11) NOT NULL,
  250. `createTime` varchar(50) NOT NULL,
  251. `updateTime` varchar(50) NOT NULL,
  252. `hookAliveInterval` int(11) NOT NULL,
  253. PRIMARY KEY (`id`) USING BTREE,
  254. UNIQUE KEY `media_server_i` (`ip`,`httpPort`) USING BTREE
  255. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  256. /*!40101 SET character_set_client = @saved_cs_client */;
  257. --
  258. -- Dumping data for table `media_server`
  259. --
  260. LOCK TABLES `media_server` WRITE;
  261. /*!40000 ALTER TABLE `media_server` DISABLE KEYS */;
  262. /*!40000 ALTER TABLE `media_server` ENABLE KEYS */;
  263. UNLOCK TABLES;
  264. --
  265. -- Table structure for table `parent_platform`
  266. --
  267. DROP TABLE IF EXISTS `parent_platform`;
  268. /*!40101 SET @saved_cs_client = @@character_set_client */;
  269. /*!40101 SET character_set_client = utf8 */;
  270. CREATE TABLE `parent_platform` (
  271. `id` int(11) NOT NULL AUTO_INCREMENT,
  272. `enable` int(11) DEFAULT NULL,
  273. `name` varchar(255) DEFAULT NULL,
  274. `serverGBId` varchar(50) NOT NULL,
  275. `serverGBDomain` varchar(50) DEFAULT NULL,
  276. `serverIP` varchar(50) DEFAULT NULL,
  277. `serverPort` int(11) DEFAULT NULL,
  278. `deviceGBId` varchar(50) NOT NULL,
  279. `deviceIp` varchar(50) DEFAULT NULL,
  280. `devicePort` varchar(50) DEFAULT NULL,
  281. `username` varchar(255) DEFAULT NULL,
  282. `password` varchar(50) DEFAULT NULL,
  283. `expires` varchar(50) DEFAULT NULL,
  284. `keepTimeout` varchar(50) DEFAULT NULL,
  285. `transport` varchar(50) DEFAULT NULL,
  286. `characterSet` varchar(50) DEFAULT NULL,
  287. `catalogId` varchar(50) NOT NULL,
  288. `ptz` int(11) DEFAULT NULL,
  289. `rtcp` int(11) DEFAULT NULL,
  290. `status` bit(1) DEFAULT NULL,
  291. `shareAllLiveStream` int(11) DEFAULT NULL,
  292. `startOfflinePush` int(11) DEFAULT '0',
  293. `administrativeDivision` varchar(50) NOT NULL,
  294. `catalogGroup` int(11) DEFAULT '1',
  295. PRIMARY KEY (`id`),
  296. UNIQUE KEY `parent_platform_id_uindex` (`id`),
  297. UNIQUE KEY `parent_platform_pk` (`serverGBId`)
  298. ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  299. /*!40101 SET character_set_client = @saved_cs_client */;
  300. --
  301. -- Dumping data for table `parent_platform`
  302. --
  303. LOCK TABLES `parent_platform` WRITE;
  304. /*!40000 ALTER TABLE `parent_platform` DISABLE KEYS */;
  305. /*!40000 ALTER TABLE `parent_platform` ENABLE KEYS */;
  306. UNLOCK TABLES;
  307. --
  308. -- Table structure for table `platform_catalog`
  309. --
  310. DROP TABLE IF EXISTS `platform_catalog`;
  311. /*!40101 SET @saved_cs_client = @@character_set_client */;
  312. /*!40101 SET character_set_client = utf8 */;
  313. CREATE TABLE `platform_catalog` (
  314. `id` varchar(50) NOT NULL,
  315. `platformId` varchar(50) NOT NULL,
  316. `name` varchar(255) NOT NULL,
  317. `parentId` varchar(50) DEFAULT NULL,
  318. PRIMARY KEY (`id`) USING BTREE
  319. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  320. /*!40101 SET character_set_client = @saved_cs_client */;
  321. --
  322. -- Dumping data for table `platform_catalog`
  323. --
  324. LOCK TABLES `platform_catalog` WRITE;
  325. /*!40000 ALTER TABLE `platform_catalog` DISABLE KEYS */;
  326. /*!40000 ALTER TABLE `platform_catalog` ENABLE KEYS */;
  327. UNLOCK TABLES;
  328. --
  329. -- Table structure for table `platform_gb_channel`
  330. --
  331. DROP TABLE IF EXISTS `platform_gb_channel`;
  332. /*!40101 SET @saved_cs_client = @@character_set_client */;
  333. /*!40101 SET character_set_client = utf8 */;
  334. CREATE TABLE `platform_gb_channel` (
  335. `id` int(11) NOT NULL AUTO_INCREMENT,
  336. `platformId` varchar(50) NOT NULL,
  337. `catalogId` varchar(50) NOT NULL,
  338. `deviceChannelId` int(11) NOT NULL,
  339. PRIMARY KEY (`id`)
  340. ) ENGINE=InnoDB AUTO_INCREMENT=250 DEFAULT CHARSET=utf8mb4;
  341. /*!40101 SET character_set_client = @saved_cs_client */;
  342. --
  343. -- Dumping data for table `platform_gb_channel`
  344. --
  345. LOCK TABLES `platform_gb_channel` WRITE;
  346. /*!40000 ALTER TABLE `platform_gb_channel` DISABLE KEYS */;
  347. /*!40000 ALTER TABLE `platform_gb_channel` ENABLE KEYS */;
  348. UNLOCK TABLES;
  349. --
  350. -- Table structure for table `platform_gb_stream`
  351. --
  352. DROP TABLE IF EXISTS `platform_gb_stream`;
  353. /*!40101 SET @saved_cs_client = @@character_set_client */;
  354. /*!40101 SET character_set_client = utf8 */;
  355. CREATE TABLE `platform_gb_stream` (
  356. `platformId` varchar(50) NOT NULL,
  357. `catalogId` varchar(50) NOT NULL,
  358. `gbStreamId` int(11) NOT NULL,
  359. `id` int(11) NOT NULL AUTO_INCREMENT,
  360. PRIMARY KEY (`id`),
  361. UNIQUE KEY `platform_gb_stream_pk` (`platformId`,`catalogId`,`gbStreamId`)
  362. ) ENGINE=InnoDB AUTO_INCREMENT=301210 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  363. /*!40101 SET character_set_client = @saved_cs_client */;
  364. --
  365. -- Dumping data for table `platform_gb_stream`
  366. --
  367. LOCK TABLES `platform_gb_stream` WRITE;
  368. /*!40000 ALTER TABLE `platform_gb_stream` DISABLE KEYS */;
  369. /*!40000 ALTER TABLE `platform_gb_stream` ENABLE KEYS */;
  370. UNLOCK TABLES;
  371. --
  372. -- Table structure for table `stream_proxy`
  373. --
  374. DROP TABLE IF EXISTS `stream_proxy`;
  375. /*!40101 SET @saved_cs_client = @@character_set_client */;
  376. /*!40101 SET character_set_client = utf8 */;
  377. CREATE TABLE `stream_proxy` (
  378. `id` int(11) NOT NULL AUTO_INCREMENT,
  379. `type` varchar(50) NOT NULL,
  380. `app` varchar(255) NOT NULL,
  381. `stream` varchar(255) NOT NULL,
  382. `url` varchar(255) DEFAULT NULL,
  383. `src_url` varchar(255) DEFAULT NULL,
  384. `dst_url` varchar(255) DEFAULT NULL,
  385. `timeout_ms` int(11) DEFAULT NULL,
  386. `ffmpeg_cmd_key` varchar(255) DEFAULT NULL,
  387. `rtp_type` varchar(50) DEFAULT NULL,
  388. `mediaServerId` varchar(50) DEFAULT NULL,
  389. `enable_hls` bit(1) DEFAULT NULL,
  390. `enable_mp4` bit(1) DEFAULT NULL,
  391. `enable` bit(1) NOT NULL,
  392. `status` bit(1) NOT NULL,
  393. `enable_remove_none_reader` bit(1) NOT NULL,
  394. `createTime` varchar(50) NOT NULL,
  395. `name` varchar(255) DEFAULT NULL,
  396. PRIMARY KEY (`id`),
  397. UNIQUE KEY `stream_proxy_pk` (`app`,`stream`)
  398. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;
  399. /*!40101 SET character_set_client = @saved_cs_client */;
  400. --
  401. -- Dumping data for table `stream_proxy`
  402. --
  403. LOCK TABLES `stream_proxy` WRITE;
  404. /*!40000 ALTER TABLE `stream_proxy` DISABLE KEYS */;
  405. /*!40000 ALTER TABLE `stream_proxy` ENABLE KEYS */;
  406. UNLOCK TABLES;
  407. --
  408. -- Table structure for table `stream_push`
  409. --
  410. DROP TABLE IF EXISTS `stream_push`;
  411. /*!40101 SET @saved_cs_client = @@character_set_client */;
  412. /*!40101 SET character_set_client = utf8 */;
  413. CREATE TABLE `stream_push` (
  414. `id` int(11) NOT NULL AUTO_INCREMENT,
  415. `app` varchar(255) NOT NULL,
  416. `stream` varchar(255) NOT NULL,
  417. `totalReaderCount` varchar(50) DEFAULT NULL,
  418. `originType` int(11) DEFAULT NULL,
  419. `originTypeStr` varchar(50) DEFAULT NULL,
  420. `createStamp` bigint(20) DEFAULT NULL,
  421. `aliveSecond` int(11) DEFAULT NULL,
  422. `mediaServerId` varchar(50) DEFAULT NULL,
  423. PRIMARY KEY (`id`),
  424. UNIQUE KEY `stream_push_pk` (`app`,`stream`)
  425. ) ENGINE=InnoDB AUTO_INCREMENT=300838 DEFAULT CHARSET=utf8mb4;
  426. /*!40101 SET character_set_client = @saved_cs_client */;
  427. --
  428. -- Dumping data for table `stream_push`
  429. --
  430. LOCK TABLES `stream_push` WRITE;
  431. /*!40000 ALTER TABLE `stream_push` DISABLE KEYS */;
  432. /*!40000 ALTER TABLE `stream_push` ENABLE KEYS */;
  433. UNLOCK TABLES;
  434. --
  435. -- Table structure for table `user`
  436. --
  437. DROP TABLE IF EXISTS `user`;
  438. /*!40101 SET @saved_cs_client = @@character_set_client */;
  439. /*!40101 SET character_set_client = utf8 */;
  440. CREATE TABLE `user` (
  441. `id` int(11) NOT NULL AUTO_INCREMENT,
  442. `username` varchar(255) NOT NULL,
  443. `password` varchar(255) NOT NULL,
  444. `roleId` int(11) NOT NULL,
  445. `createTime` varchar(50) NOT NULL,
  446. `updateTime` varchar(50) NOT NULL,
  447. PRIMARY KEY (`id`) USING BTREE,
  448. UNIQUE KEY `user_username_uindex` (`username`) USING BTREE
  449. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  450. /*!40101 SET character_set_client = @saved_cs_client */;
  451. --
  452. -- Dumping data for table `user`
  453. --
  454. LOCK TABLES `user` WRITE;
  455. /*!40000 ALTER TABLE `user` DISABLE KEYS */;
  456. INSERT INTO `user` VALUES
  457. (1,'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021 - 04 - 13 14:14:57','2021 - 04 - 13 14:14:57');
  458. /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  459. UNLOCK TABLES;
  460. --
  461. -- Table structure for table `user_role`
  462. --
  463. DROP TABLE IF EXISTS `user_role`;
  464. /*!40101 SET @saved_cs_client = @@character_set_client */;
  465. /*!40101 SET character_set_client = utf8 */;
  466. CREATE TABLE `user_role` (
  467. `id` int(11) NOT NULL AUTO_INCREMENT,
  468. `name` varchar(50) NOT NULL,
  469. `authority` varchar(50) NOT NULL,
  470. `createTime` varchar(50) NOT NULL,
  471. `updateTime` varchar(50) NOT NULL,
  472. PRIMARY KEY (`id`) USING BTREE
  473. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  474. /*!40101 SET character_set_client = @saved_cs_client */;
  475. --
  476. -- Dumping data for table `user_role`
  477. --
  478. LOCK TABLES `user_role` WRITE;
  479. /*!40000 ALTER TABLE `user_role` DISABLE KEYS */;
  480. INSERT INTO `user_role` VALUES
  481. (1,'admin','0','2021-04-13 14:14:57','2021-04-13 14:14:57');
  482. /*!40000 ALTER TABLE `user_role` ENABLE KEYS */;
  483. UNLOCK TABLES;
  484. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  485. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  486. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  487. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  488. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  489. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  490. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  491. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  492. -- Dump completed on 2022-04-18 10:50:27