From 6e0f7fae6eda7ffa18c4289d19a705f272174911 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期三, 05 一月 2022 15:23:14 +0800
Subject: [PATCH] 为级联平台增加虚拟目录功能

---
 sql/mysql.sql |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/sql/mysql.sql b/sql/mysql.sql
index 5724342..8cbd493 100644
--- a/sql/mysql.sql
+++ b/sql/mysql.sql
@@ -171,11 +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
@@ -184,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)
 );
 
@@ -192,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)
 );
 

--
Gitblit v1.8.0