From 40657033175bbecb983654f43208d9c2c3e37bb6 Mon Sep 17 00:00:00 2001 From: 朱俊杰 <502612493@qq.com> Date: 星期二, 25 一月 2022 15:42:11 +0800 Subject: [PATCH] 添加lombok,分离注册周期事件 --- sql/mysql.sql | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/sql/mysql.sql b/sql/mysql.sql index 5724342..c305bd1 100644 --- a/sql/mysql.sql +++ b/sql/mysql.sql @@ -111,6 +111,7 @@ create table gb_stream ( + id int auto_increment, app varchar(255) not null, stream varchar(255) not null, gbId varchar(50) not null, @@ -120,6 +121,7 @@ streamType varchar(50) null, mediaServerId varchar(50) null, status int null, + createStamp int null, primary key (app, stream, gbId) ); @@ -171,11 +173,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 +196,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 +205,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) ); @@ -247,8 +261,8 @@ create table role ( id int auto_increment primary key, - name TEXT NOT NULL, - authority TEXT NOT NULL, + name varchar(50) NOT NULL, + authority varchar(50) NOT NULL, createTime varchar(50) not null, updateTime varchar(50) not null ); -- Gitblit v1.8.0