朱俊杰
2022-01-25 40657033175bbecb983654f43208d9c2c3e37bb6
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;
@@ -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
);