From ac1a4a027a7bd88efb32e9da666bdba4b5fa166f Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期五, 14 一月 2022 17:04:26 +0800
Subject: [PATCH] 支持国标级联的目录订阅功能

---
 sql/mysql.sql |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/sql/mysql.sql b/sql/mysql.sql
index dba42c1..8cbd493 100644
--- a/sql/mysql.sql
+++ b/sql/mysql.sql
@@ -1,7 +1,7 @@
 -- auto-generated definition
 
 
-CREATE DATABASE `wvp` /*!40100 DEFAULT CHARACTER SET utf8mb3 COLLATE utf8mb3_bin */;
+CREATE DATABASE  IF NOT EXISTS `wvp` /*!40100 DEFAULT CHARACTER SET utf8mb3 COLLATE utf8mb3_bin */;
 
 use wvp;
 
@@ -23,6 +23,7 @@
     updateTime    varchar(50)  not null,
     port          int          not null,
     expires       int          not null,
+    subscribeCycleForCatalog       int          not null,
     hostAddress   varchar(50)  not null,
     charset       varchar(50)  not null
 );
@@ -66,6 +67,7 @@
     id                int auto_increment
         primary key,
     deviceId          varchar(50) not null,
+    channelId         varchar(50) not null,
     alarmPriority     varchar(50) not null,
     alarmMethod       varchar(50),
     alarmTime         varchar(50) not null,
@@ -92,6 +94,7 @@
 create table device_mobile_position
 (
     deviceId       varchar(50)  not null,
+    channelId      varchar(50)  not null,
     deviceName     varchar(255) null,
     time           varchar(50)  not null,
     longitude      double       not null,
@@ -145,6 +148,7 @@
     defaultServer           int          not null,
     createTime              varchar(50)  not null,
     updateTime              varchar(50)  not null,
+    hookAliveInterval	    int          not null,
     constraint media_server_i
         unique (ip, httpPort)
 );
@@ -167,10 +171,21 @@
     keepTimeout    varchar(50)  null,
     transport      varchar(50)  null,
     characterSet   varchar(50)  null,
+    catalogId      varchar(50)  not null,
     ptz            int          null,
     rtcp           int          null,
     status         bit          null,
+    shareAllLiveStream         int          null,
     primary key (id, serverGBId)
+);
+
+
+create table platform_catalog
+(
+    id         varchar(50)  primary key,
+    platformId varchar(50) not null,
+    name       varchar(255) not null,
+    parentId   varchar(50)
 );
 
 create table platform_gb_channel
@@ -179,6 +194,7 @@
     deviceId           varchar(50) not null,
     platformId         varchar(50) not null,
     deviceAndChannelId varchar(50) not null,
+    catalogId          varchar(50) not null,
     primary key (deviceAndChannelId, platformId)
 );
 
@@ -187,6 +203,7 @@
     platformId varchar(50)  not null,
     app        varchar(255) not null,
     stream     varchar(255) not null,
+    catalogId  varchar(50) not null,
     primary key (platformId, app, stream)
 );
 
@@ -205,6 +222,7 @@
     enable_hls     bit          null,
     enable_mp4     bit          null,
     enable         bit          not null,
+    enable_remove_none_reader    bit          not null,
     createTime     varchar(50)  not null,
     primary key (app, stream)
 );

--
Gitblit v1.8.0