mysql.sql 24 KB

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