diff --git a/docker/wvp/wvpcode/docker/.env b/docker/wvp/wvpcode/docker/.env
deleted file mode 100644
index 0de4722..0000000
--- a/docker/wvp/wvpcode/docker/.env
+++ /dev/null
@@ -1,19 +0,0 @@
-MediaRtmp=10001
-MediaRtsp=10002
-MediaRtp=10003
-
-WebHttp=8080
-WebHttps=8081
-
-Stream_IP=127.0.0.1
-SDP_IP=127.0.0.1
-
-SIP_ShowIP=127.0.0.1
-SIP_Port=8160
-SIP_Domain=3502000000
-SIP_Id=35020000002000000001
-SIP_Password=wvp_sip_password
-
-
-RecordSip=true
-RecordPushLive=
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/README.md b/docker/wvp/wvpcode/docker/README.md
deleted file mode 100644
index 7dddd9e..0000000
--- a/docker/wvp/wvpcode/docker/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-可以在当前目录下:
-使用`docker compose up -d`直接运行。
-使用`docker compose up -d --build --force-recreate`强制重新构建所有服务的镜像并删除旧容器重新运行
-
-`.env`用来配置环境变量,在这里配好之后,其它的配置会自动联动的。
-
-`build.sh`用来以日期为tag构建镜像,推送到指定的容器注册表内(Windows下可以使用`Git Bash`运行)
-
-
-其它的文件的作用暂不明确
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/build.sh b/docker/wvp/wvpcode/docker/build.sh
deleted file mode 100755
index 5dd3e8e..0000000
--- a/docker/wvp/wvpcode/docker/build.sh
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/bash
-
-# 获取当前日期作为标签(格式:YYYYMMDD)
-date_tag=$(date +%Y%m%d)
-
-# 切换到脚本所在目录的上一级目录作为工作目录
-cd "$(dirname "$0")/.." || {
- echo "错误:无法切换到上级目录"
- exit 1
-}
-echo "已切换工作目录到:$(pwd)"
-
-# 检查私有仓库环境变量
-if [ -z "$DOCKER_REGISTRY" ]; then
- echo "未设置DOCKER_REGISTRY环境变量"
- read -p "请输入私有Docker注册库地址(如不推送请留空): " input_registry
- docker_registry="$input_registry"
-else
- docker_registry="$DOCKER_REGISTRY"
-fi
-
-# 定义要构建的镜像和对应的Dockerfile路径(相对当前工作目录)
-images=(
- "wvp-service:docker/wvp/Dockerfile"
- "wvp-nginx:docker/nginx/Dockerfile"
-)
-
-# 构建镜像的函数
-build_image() {
- local image_name="$1"
- local dockerfile_path="$2"
-
- # 检查Dockerfile是否存在
- if [ ! -f "$dockerfile_path" ]; then
- echo "错误:未找到Dockerfile - \"$dockerfile_path\",跳过构建"
- return 1
- fi
-
- # 构建镜像
- local full_image_name="${image_name}:${date_tag}"
- echo
- echo "=============================================="
- echo "开始构建镜像:${full_image_name}"
- echo "Dockerfile路径:${dockerfile_path}"
-
- docker build -t "${full_image_name}" -f "${dockerfile_path}" .
- if [ $? -ne 0 ]; then
- echo "镜像${full_image_name}构建失败"
- return 1
- fi
-
- # 推送镜像(如果设置了仓库地址)
- if [ -n "$docker_registry" ]; then
- local registry_image="${docker_registry}/${full_image_name}"
- echo "给镜像打标签:${registry_image}"
- docker tag "${full_image_name}" "${registry_image}"
-
- echo "推送镜像到注册库"
- docker push "${registry_image}"
- if [ $? -eq 0 ]; then
- echo "镜像${registry_image}推送成功"
- else
- echo "镜像${registry_image}推送失败"
- fi
- else
- echo "未提供注册库地址,不执行推送"
- fi
- echo "=============================================="
- echo
-}
-
-# 循环构建所有镜像
-for item in "${images[@]}"; do
- IFS=':' read -r image_name dockerfile_path <<< "$item"
- build_image "$image_name" "$dockerfile_path"
-done
-
-echo "所有镜像处理完成"
-exit 0
diff --git a/docker/wvp/wvpcode/docker/docker-compose.yml b/docker/wvp/wvpcode/docker/docker-compose.yml
deleted file mode 100644
index 5119cbe..0000000
--- a/docker/wvp/wvpcode/docker/docker-compose.yml
+++ /dev/null
@@ -1,156 +0,0 @@
-version: '3'
-services:
- polaris-redis:
- image: redis:latest # 使用官方Redis镜像
- restart: unless-stopped
- healthcheck:
- test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
- interval: 15s
- timeout: 5s
- retries: 10
- start_period: 10s
- networks:
- - media-net
- # ports:
- # - 6379:6379
- volumes:
- - ./redis/conf/redis.conf:/opt/polaris/redis/redis.conf
- - ./volumes/redis/data/:/data
- environment:
- TZ: "Asia/Shanghai"
- command: redis-server /opt/polaris/redis/redis.conf --appendonly yes
-
- polaris-mysql:
- image: mysql:8 # 使用官方MySQL 8镜像
- restart: unless-stopped
- healthcheck:
- test: [ "CMD", "bash", "-c", "cat < /dev/null > /dev/tcp/127.0.0.1/3306" ]
- interval: 15s
- timeout: 5s
- retries: 10
- start_period: 10s
- networks:
- - media-net
- environment:
- MYSQL_DATABASE: wvp
- MYSQL_ROOT_PASSWORD: root
- MYSQL_USER: wvp_user
- MYSQL_PASSWORD: wvp_password
- TZ: Asia/Shanghai
- # ports:
- # - 3306:3306
- volumes:
- - ./mysql/conf:/etc/mysql/conf.d
- - ./logs/mysql:/logs
- - ./volumes/mysql/data:/var/lib/mysql
- - ../数据库/2.7.4/初始化-mysql-2.7.4.sql:/docker-entrypoint-initdb.d/init.sql # 初始化SQL脚本目录
- command: [
- # '--default-authentication-plugin=mysql_native_password',
- '--innodb-buffer-pool-size=80M',
- '--character-set-server=utf8mb4',
- '--collation-server=utf8mb4_general_ci',
- '--default-time-zone=+8:00',
- '--lower-case-table-names=1'
- ]
-
- polaris-media:
- image: zlmediakit/zlmediakit:master # 替换为官方镜像
- restart: always
- networks:
- - media-net
- ports:
- #- "6080:80/tcp" # [播流]HTTP 安全考虑-非测试阶段需要注释掉,改为由nginx代理播流地址
- #- "4443:443/tcp" # [播流]HTTPS 安全考虑-非测试阶段需要注释掉,改为由nginx代理播流地址
- - "${MediaRtmp:-10935}:${MediaRtmp:-10935}/tcp" # [收流]RTMP
- - "${MediaRtmp:-10935}:${MediaRtmp:-10935}/udp" # [收流]RTMP
- #- "41935:41935/tcp" # [收流]RTMPS 无效
- - "${MediaRtsp:-5540}:${MediaRtsp:-5540}/tcp" # [收流]RTSP
- - "${MediaRtsp:-5540}:${MediaRtsp:-5540}/udp" # [收流]RTSP
- #- "45540:45540/tcp" # [收流]RTSPS 无效
- - "${MediaRtp:-10000}:${MediaRtp:-10000}/tcp" # [收流]RTP
- - "${MediaRtp:-10000}:${MediaRtp:-10000}/udp" # [收流]RTP
- volumes:
- - ./volumes/video:/opt/media/bin/www/record/
- - ./logs/media:/opt/media/log/
- - ./media/config.ini:/conf/config.ini
- command: [
- 'MediaServer',
- '-c', '/conf/config.ini',
- '-l', '0'
- ]
-
- polaris-wvp:
- # 显式指定构建上下文和Dockerfile路径
- build:
- context: .. # 构建上下文的根路径
- dockerfile: ./docker/wvp/Dockerfile # 相对于上下文路径的Dockerfile位置
- restart: always
- networks:
- - media-net
- ports:
- - "18978:18978"
- - "${SIP_Port:-8116}:${SIP_Port:-8116}/udp"
- - "${SIP_Port:-8116}:${SIP_Port:-8116}/tcp"
- depends_on:
- - polaris-redis
- - polaris-mysql
- - polaris-media
- volumes:
- - ./wvp/config:/opt/wvp/config
- - ./wvp/wvp/:/opt/ylcx/wvp/
- - ./logs/wvp:/opt/wvp/logs/
- environment:
- TZ: "Asia/Shanghai"
- # 流链接的IP
- Stream_IP: ${Stream_IP}
- # SDP里的IP
- SDP_IP: ${SDP_IP}
- # [可选] zlm服务器访问WVP所使用的IP, 默认使用127.0.0.1,zlm和wvp没有部署在同一台服务器时必须配置
- ZLM_HOOK_HOST: polaris-wvp
- ZLM_HOST: polaris-media
- ZLM_SERCERT: su6TiedN2rVAmBbIDX0aa0QTiBJLBdcf
-
- MediaHttp: ${WebHttp:-8080}
- #MediaHttps: ${WebHttps:-8081}
- MediaRtmp: ${MediaRtmp:-10935}
- MediaRtsp: ${MediaRtsp:-5540}
- MediaRtp: ${MediaRtp:-10000}
-
- REDIS_HOST: polaris-redis
- REDIS_PORT: 6379
-
- DATABASE_HOST: polaris-mysql
- DATABASE_PORT: 3306
- DATABASE_USER: wvp_user
- DATABASE_PASSWORD: wvp_password
-
- SIP_ShowIP: ${SIP_ShowIP}
- SIP_Port: ${SIP_Port:-8116}
- SIP_Domain: ${SIP_Domain}
- SIP_Id: ${SIP_Id}
- SIP_Password: ${SIP_Password}
-
- RecordSip: ${RecordSip}
- RecordPushLive: ${RecordPushLive}
-
- polaris-nginx:
- # 显式指定构建上下文和Dockerfile路径
- build:
- context: .. # 构建上下文的根路径
- dockerfile: ./docker/nginx/Dockerfile # 相对于上下文路径的Dockerfile位置
- ports:
- - "${WebHttp:-8080}:8080"
- depends_on:
- - polaris-wvp
- volumes:
- - ./nginx/templates/:/etc/nginx/templates
- - ./logs/nginx:/var/log/nginx
- environment:
- # 流链接的IP
- Stream_IP: ${Stream_IP}
- networks:
- - media-net
-
-networks:
- media-net:
- driver: bridge
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/docker-upgrade.sh b/docker/wvp/wvpcode/docker/docker-upgrade.sh
deleted file mode 100755
index 9c2d75f..0000000
--- a/docker/wvp/wvpcode/docker/docker-upgrade.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#/bin/bash
-set -e
-
-docker compose down
-docker compose up -d --remove-orphans
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/media/Dockerfile b/docker/wvp/wvpcode/docker/media/Dockerfile
deleted file mode 100644
index a7b6c16..0000000
--- a/docker/wvp/wvpcode/docker/media/Dockerfile
+++ /dev/null
@@ -1,91 +0,0 @@
-FROM ubuntu:20.04 AS build
-
-#shell,rtmp,rtsp,rtsps,http,rtp
-EXPOSE 10935/tcp
-EXPOSE 5540/tcp
-EXPOSE 6080/tcp
-EXPOSE 10000/udp
-EXPOSE 10000/tcp
-EXPOSE 8000/udp
-EXPOSE 8000/tcp
-EXPOSE 9000/udp
-
-# ADD sources.list /etc/apt/sources.list
-
-RUN apt-get update && \
- DEBIAN_FRONTEND="noninteractive" \
- apt-get install -y --no-install-recommends \
- build-essential \
- cmake \
- git \
- curl \
- vim \
- wget \
- ca-certificates \
- tzdata \
- libssl-dev \
- gcc \
- g++ \
- gdb && \
- apt-get autoremove -y && \
- apt-get clean -y && \
- rm -rf /var/lib/apt/lists/*
-
-RUN mkdir -p /opt/media
-WORKDIR /opt/media
-RUN git clone --depth 1 https://gitee.com/xia-chu/ZLMediaKit && \
- cd ZLMediaKit && git submodule update --init
-
-# 3rdpart init
-WORKDIR /opt/media/ZLMediaKit/3rdpart
-RUN wget https://polaris-tian-generic.pkg.coding.net/qt/dependencies/openssl-1.1.1k.tar.gz?version=latest -O openssl-1.1.1k.tar.gz && \
- tar -xvzf openssl-1.1.1k.tar.gz && \
- cd openssl-1.1.1k && ./config shared --openssldir=/usr/local/openssl --prefix=/usr/local/openssl && \
- make && make install && \
- echo "/usr/local/lib64/" >> /etc/ld.so.conf && \
- echo "/usr/local/openssl/lib" >> /etc/ld.so.conf && \
- ldconfig && \
- ln -s /usr/local/openssl/bin/openssl /usr/local/bin/openssl
-
-WORKDIR /opt/media/ZLMediaKit/3rdpart
-RUN wget https://github.com/cisco/libsrtp/archive/v2.3.0.tar.gz -O libsrtp-2.3.0.tar.gz && \
- tar xfv libsrtp-2.3.0.tar.gz && \
- mv libsrtp-2.3.0 libsrtp && \
- cd libsrtp && ./configure --enable-openssl --with-openssl-dir=/usr/local/openssl && make -j $(nproc) && make install
-
-
-WORKDIR /opt/media/ZLMediaKit/build
-RUN cmake .. -DENABLE_WEBRTC=true -DOPENSSL_ROOT_DIR=/usr/local/openssl -DOPENSSL_LIBRARIES=/usr/local/openssl/lib && \
- cmake --build . --target MediaServer
-COPY config.ini /opt/media/ZLMediaKit/release/linux/Debug/
-
-FROM ubuntu:20.04
-
-RUN apt-get update && \
- DEBIAN_FRONTEND="noninteractive" \
- apt-get install -y --no-install-recommends \
- vim \
- wget \
- ca-certificates \
- tzdata \
- curl \
- libssl-dev \
- ffmpeg \
- gcc \
- g++ \
- gdb && \
- apt-get autoremove -y && \
- apt-get clean -y && \
- rm -rf /var/lib/apt/lists/*
-
-ENV TZ=Asia/Shanghai
-RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
- && echo $TZ > /etc/timezone && \
- mkdir -p /opt/media/bin/www
-
-WORKDIR /opt/media/bin/
-COPY --from=build /opt/media/ZLMediaKit/release/linux/Debug/MediaServer /opt/media/ZLMediaKit/default.pem /opt/media/bin/
-COPY --from=build /opt/media/ZLMediaKit/release/linux/Debug/config.ini /opt/media/conf/
-COPY --from=build /opt/media/ZLMediaKit/www/ /opt/media/bin/www/
-ENV PATH /opt/media/bin:$PATH
-CMD ["./MediaServer","-s", "default.pem", "-c", "../conf/config.ini", "-l","0"]
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/media/build.sh b/docker/wvp/wvpcode/docker/media/build.sh
deleted file mode 100755
index edcc16c..0000000
--- a/docker/wvp/wvpcode/docker/media/build.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#/bin/bash
-set -e
-
-version=2.7.3
-
-docker build -t polaris-media:${version} .
-docker tag polaris-media:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-media:${version}
-docker tag polaris-media:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-media:latest
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/media/config.ini b/docker/wvp/wvpcode/docker/media/config.ini
deleted file mode 100644
index cc74281..0000000
--- a/docker/wvp/wvpcode/docker/media/config.ini
+++ /dev/null
@@ -1,199 +0,0 @@
-; auto-generated by mINI class {
-
-[api]
-apiDebug=1
-defaultSnap=./www/logo.png
-downloadRoot=./www;
-secret=su6TiedN2rVAmBbIDX0aa0QTiBJLBdcf
-snapRoot=./www/snap/
-
-[cluster]
-origin_url=
-retry_count=3
-timeout_sec=15
-
-[ffmpeg]
-bin=/usr/bin/ffmpeg
-cmd=%s -re -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s
-log=./ffmpeg/ffmpeg.log
-restart_sec=0
-snap=%s -rtsp_transport tcp -i %s -y -f mjpeg -frames:v 1 %s
-
-[general]
-broadcast_player_count_changed=0
-check_nvidia_dev=1
-enableVhost=0
-enable_ffmpeg_log=0
-flowThreshold=1024
-listen_ip=::
-maxStreamWaitMS=15000
-mediaServerId=polaris
-mergeWriteMS=0
-resetWhenRePlay=1
-streamNoneReaderDelayMS=20000
-unready_frame_cache=100
-wait_add_track_ms=3000
-wait_audio_track_data_ms=1000
-wait_track_ready_ms=10000
-
-[hls]
-broadcastRecordTs=0
-deleteDelaySec=10
-fastRegister=0
-fileBufSize=65536
-segDelay=0
-segDur=2
-segKeep=0
-segNum=3
-segRetain=5
-
-[hook]
-alive_interval=10.0
-enable=1
-on_flow_report=
-on_http_access=
-on_play=http://polaris-wvp:18978/index/hook/on_play
-on_publish=http://polaris-wvp:18978/index/hook/on_publish
-on_record_mp4=http://polaris-wvp:18978/index/hook/on_record_mp4
-on_record_ts=
-on_rtp_server_timeout=http://polaris-wvp:18978/index/hook/on_rtp_server_timeout
-on_rtsp_auth=
-on_rtsp_realm=
-on_send_rtp_stopped=http://polaris-wvp:18978/index/hook/on_send_rtp_stopped
-on_server_exited=
-on_server_keepalive=http://polaris-wvp:18978/index/hook/on_server_keepalive
-on_server_started=http://polaris-wvp:18978/index/hook/on_server_started
-on_shell_login=
-on_stream_changed=http://polaris-wvp:18978/index/hook/on_stream_changed
-on_stream_none_reader=http://polaris-wvp:18978/index/hook/on_stream_none_reader
-on_stream_not_found=http://polaris-wvp:18978/index/hook/on_stream_not_found
-retry=1
-retry_delay=3.0
-stream_changed_schemas=rtsp/rtmp/fmp4/ts/hls/hls.fmp4
-timeoutSec=30
-
-[http]
-allow_cross_domains=1
-allow_ip_range=
-charSet=utf-8
-dirMenu=1
-forbidCacheSuffix=
-forwarded_ip_header=
-keepAliveSecond=30
-maxReqSize=40960
-notFound=
404 Not Found您访问的资源不存在!
ZLMediaKit(git hash:8ccb4e9/%aI,branch:master,build time:2024-11-07T10:34:19)
-port=80
-rootPath=./www
-sendBufSize=65536
-sslport=443
-virtualPath=
-
-[multicast]
-addrMax=239.255.255.255
-addrMin=239.0.0.0
-udpTTL=64
-
-[protocol]
-add_mute_audio=1
-auto_close=0
-continue_push_ms=3000
-enable_audio=1
-enable_fmp4=1
-enable_hls=0
-enable_hls_fmp4=0
-enable_mp4=0
-enable_rtmp=1
-enable_rtsp=1
-enable_ts=1
-fmp4_demand=0
-hls_demand=0
-hls_save_path=./www
-modify_stamp=2
-mp4_as_player=0
-mp4_max_second=3600
-mp4_save_path=/opt/media/bin/www
-paced_sender_ms=0
-rtmp_demand=0
-rtsp_demand=0
-ts_demand=0
-
-[record]
-appName=record
-enableFmp4=1
-fastStart=0
-fileBufSize=65536
-fileRepeat=0
-sampleMS=500
-
-[rtc]
-bfilter=0
-datachannel_echo=0
-externIP=
-maxRtpCacheMS=5000
-maxRtpCacheSize=2048
-max_bitrate=0
-min_bitrate=0
-nackIntervalRatio=1.0
-nackMaxCount=15
-nackMaxMS=3000
-nackMaxSize=2048
-nackRtpSize=8
-port=8000
-preferredCodecA=PCMA,PCMU,opus,mpeg4-generic
-preferredCodecV=H264,H265,AV1,VP9,VP8
-rembBitRate=0
-start_bitrate=0
-tcpPort=8000
-timeoutSec=30
-
-[rtmp]
-directProxy=1
-enhanced=0
-handshakeSecond=15
-keepAliveSecond=15
-port=10001
-sslport=0
-
-[rtp]
-audioMtuSize=600
-h264_stap_a=1
-lowLatency=0
-rtpMaxSize=10
-videoMtuSize=1400
-
-[rtp_proxy]
-dumpDir=
-gop_cache=1
-h264_pt=98
-h265_pt=99
-merge_frame=1
-opus_pt=100
-port=10003
-port_range=30000-30500
-ps_pt=96
-rtp_g711_dur_ms=100
-timeoutSec=15
-udp_recv_socket_buffer=4194304
-
-[rtsp]
-authBasic=0
-directProxy=1
-handshakeSecond=15
-keepAliveSecond=15
-lowLatency=0
-port=10002
-rtpTransportType=-1
-sslport=0
-
-[shell]
-maxReqSize=1024
-port=0
-
-[srt]
-latencyMul=4
-passPhrase=
-pktBufSize=8192
-port=9000
-timeoutSec=5
-
-; } ---
diff --git a/docker/wvp/wvpcode/docker/mysql/Dockerfile b/docker/wvp/wvpcode/docker/mysql/Dockerfile
deleted file mode 100644
index ffdda52..0000000
--- a/docker/wvp/wvpcode/docker/mysql/Dockerfile
+++ /dev/null
@@ -1,3 +0,0 @@
-FROM mysql:8.0.32
-
-ADD ./db/*.sql /docker-entrypoint-initdb.d/
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/mysql/build.sh b/docker/wvp/wvpcode/docker/mysql/build.sh
deleted file mode 100755
index 133ab44..0000000
--- a/docker/wvp/wvpcode/docker/mysql/build.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#/bin/bash
-set -e
-
-version=2.7.3
-
-docker build -t polaris-mysql:${version} .
-docker tag polaris-mysql:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-mysql:${version}
-docker tag polaris-mysql:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-mysql:latest
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/mysql/db/privileges.sql b/docker/wvp/wvpcode/docker/mysql/db/privileges.sql
deleted file mode 100644
index 3aa6ce8..0000000
--- a/docker/wvp/wvpcode/docker/mysql/db/privileges.sql
+++ /dev/null
@@ -1,3 +0,0 @@
-use mysql;
-grant all privileges on wvp.* to 'ylcx'@'%';
-flush privileges;
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/mysql/db/wvp.sql b/docker/wvp/wvpcode/docker/mysql/db/wvp.sql
deleted file mode 100644
index d65a05d..0000000
--- a/docker/wvp/wvpcode/docker/mysql/db/wvp.sql
+++ /dev/null
@@ -1,769 +0,0 @@
-/*建库*/
-DROP DATABASE IF EXISTS `wvp`;
-
-CREATE DATABASE `wvp` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
-
-SET NAMES utf8mb4;
-SET FOREIGN_KEY_CHECKS = 0;
-
-USE `wvp`;
-
-/*建表*/
-drop table IF EXISTS wvp_device;
-create table IF NOT EXISTS wvp_device
-(
- id serial primary key,
- device_id character varying(50) not null,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50) default 'auto',
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- heart_beat_interval integer,
- heart_beat_count integer,
- position_capability integer,
- broadcast_push_after_ack bool default false,
- server_id character varying(50),
- constraint uk_device_device unique (device_id)
-);
-
-drop table IF EXISTS wvp_device_alarm;
-create table IF NOT EXISTS wvp_device_alarm
-(
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- alarm_priority character varying(50),
- alarm_method character varying(50),
- alarm_time character varying(50),
- alarm_description character varying(255),
- longitude double precision,
- latitude double precision,
- alarm_type character varying(50),
- create_time character varying(50) not null
-);
-
-drop table IF EXISTS wvp_device_mobile_position;
-create table IF NOT EXISTS wvp_device_mobile_position
-(
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- create_time character varying(50)
-);
-
-drop table IF EXISTS wvp_device_channel;
-create table IF NOT EXISTS wvp_device_channel
-(
- id serial primary key,
- device_id character varying(50),
- name character varying(255),
- manufacturer character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parental integer,
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy integer,
- ip_address character varying(50),
- port integer,
- password character varying(255),
- status character varying(50),
- longitude double precision,
- latitude double precision,
- ptz_type integer,
- position_type integer,
- room_type integer,
- use_type integer,
- supply_light_type integer,
- direction_type integer,
- resolution character varying(255),
- business_group_id character varying(255),
- download_speed character varying(255),
- svc_space_support_mod integer,
- svc_time_support_mode integer,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- stream_id character varying(255),
- has_audio bool default false,
- gps_time character varying(50),
- stream_identification character varying(50),
- channel_type int default 0 not null,
- gb_device_id character varying(50),
- gb_name character varying(255),
- gb_manufacturer character varying(255),
- gb_model character varying(255),
- gb_owner character varying(255),
- gb_civil_code character varying(255),
- gb_block character varying(255),
- gb_address character varying(255),
- gb_parental integer,
- gb_parent_id character varying(255),
- gb_safety_way integer,
- gb_register_way integer,
- gb_cert_num character varying(50),
- gb_certifiable integer,
- gb_err_code integer,
- gb_end_time character varying(50),
- gb_secrecy integer,
- gb_ip_address character varying(50),
- gb_port integer,
- gb_password character varying(50),
- gb_status character varying(50),
- gb_longitude double,
- gb_latitude double,
- gb_business_group_id character varying(50),
- gb_ptz_type integer,
- gb_position_type integer,
- gb_room_type integer,
- gb_use_type integer,
- gb_supply_light_type integer,
- gb_direction_type integer,
- gb_resolution character varying(255),
- gb_download_speed character varying(255),
- gb_svc_space_support_mod integer,
- gb_svc_time_support_mode integer,
- record_plan_id integer,
- data_type integer not null,
- data_device_id integer not null,
- gps_speed double precision,
- gps_altitude double precision,
- gps_direction double precision,
- index (data_type),
- index (data_device_id),
- constraint uk_wvp_unique_channel unique (gb_device_id)
-);
-
-drop table IF EXISTS wvp_media_server;
-create table IF NOT EXISTS wvp_media_server
-(
- id character varying(255) primary key,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- flv_port integer,
- flv_ssl_port integer,
- ws_flv_port integer,
- ws_flv_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- type character varying(50) default 'zlm',
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- transcode_suffix character varying(255),
- server_id character varying(50),
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port, server_id)
-);
-
-drop table IF EXISTS wvp_platform;
-create table IF NOT EXISTS wvp_platform
-(
- id serial primary key,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- civil_code character varying(50),
- manufacturer character varying(255),
- model character varying(255),
- address character varying(255),
- character_set character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- catalog_group integer,
- register_way integer,
- secrecy integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- catalog_with_platform integer default 1,
- catalog_with_group integer default 1,
- catalog_with_region integer default 1,
- auto_push_channel bool default true,
- send_stream_ip character varying(50),
- server_id character varying(50),
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-drop table IF EXISTS wvp_platform_channel;
-create table IF NOT EXISTS wvp_platform_channel
-(
- id serial primary key,
- platform_id integer,
- device_channel_id integer,
- custom_device_id character varying(50),
- custom_name character varying(255),
- custom_manufacturer character varying(50),
- custom_model character varying(50),
- custom_owner character varying(50),
- custom_civil_code character varying(50),
- custom_block character varying(50),
- custom_address character varying(50),
- custom_parental integer,
- custom_parent_id character varying(50),
- custom_safety_way integer,
- custom_register_way integer,
- custom_cert_num character varying(50),
- custom_certifiable integer,
- custom_err_code integer,
- custom_end_time character varying(50),
- custom_secrecy integer,
- custom_ip_address character varying(50),
- custom_port integer,
- custom_password character varying(255),
- custom_status character varying(50),
- custom_longitude double precision,
- custom_latitude double precision,
- custom_ptz_type integer,
- custom_position_type integer,
- custom_room_type integer,
- custom_use_type integer,
- custom_supply_light_type integer,
- custom_direction_type integer,
- custom_resolution character varying(255),
- custom_business_group_id character varying(255),
- custom_download_speed character varying(255),
- custom_svc_space_support_mod integer,
- custom_svc_time_support_mode integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, device_channel_id),
- constraint uk_platform_gb_channel_device_id unique (custom_device_id)
-);
-
-drop table IF EXISTS wvp_platform_group;
-create table IF NOT EXISTS wvp_platform_group
-(
- id serial primary key,
- platform_id integer,
- group_id integer,
- constraint uk_wvp_platform_group_platform_id_group_id unique (platform_id, group_id)
-);
-
-drop table IF EXISTS wvp_platform_region;
-create table IF NOT EXISTS wvp_platform_region
-(
- id serial primary key,
- platform_id integer,
- region_id integer,
- constraint uk_wvp_platform_region_platform_id_group_id unique (platform_id, region_id)
-);
-
-drop table IF EXISTS wvp_stream_proxy;
-create table IF NOT EXISTS wvp_stream_proxy
-(
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- src_url character varying(255),
- timeout integer,
- ffmpeg_cmd_key character varying(255),
- rtsp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- pulling bool default false,
- enable bool default false,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- server_id character varying(50),
- enable_disable_none_reader bool default false,
- relates_media_server_id character varying(50),
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-drop table IF EXISTS wvp_stream_push;
-create table IF NOT EXISTS wvp_stream_push
-(
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- create_time character varying(50),
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- pushing bool default false,
- self bool default false,
- start_offline_push bool default true,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-
-drop table IF EXISTS wvp_cloud_record;
-create table IF NOT EXISTS wvp_cloud_record
-(
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time bigint,
- end_time bigint,
- media_server_id character varying(50),
- server_id character varying(50),
- file_name character varying(255),
- folder character varying(500),
- file_path character varying(500),
- collect bool default false,
- file_size bigint,
- time_len bigint
-);
-
-drop table IF EXISTS wvp_user;
-create table IF NOT EXISTS wvp_user
-(
- id serial primary key,
- username character varying(255),
- password character varying(255),
- role_id integer,
- create_time character varying(50),
- update_time character varying(50),
- push_key character varying(50),
- constraint uk_user_username unique (username)
-);
-
-drop table IF EXISTS wvp_user_role;
-create table IF NOT EXISTS wvp_user_role
-(
- id serial primary key,
- name character varying(50),
- authority character varying(50),
- create_time character varying(50),
- update_time character varying(50)
-);
-
-
-drop table IF EXISTS wvp_user_api_key;
-create table IF NOT EXISTS wvp_user_api_key
-(
- id serial primary key,
- user_id bigint,
- app character varying(255),
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-
-/*初始数据*/
-INSERT INTO wvp_user
-VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 1, '2021-04-13 14:14:57', '2021-04-13 14:14:57',
- '3e80d1762a324d5b0ff636e0bd16f1e3');
-INSERT INTO wvp_user_role
-VALUES (1, 'admin', '0', '2021-04-13 14:14:57', '2021-04-13 14:14:57');
-
-drop table IF EXISTS wvp_common_group;
-create table IF NOT EXISTS wvp_common_group
-(
- id serial primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- business_group varchar(50) NOT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- civil_code varchar(50) default null,
- constraint uk_common_group_device_platform unique (device_id)
-);
-
-drop table IF EXISTS wvp_common_region;
-create table IF NOT EXISTS wvp_common_region
-(
- id serial primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- constraint uk_common_region_device_id unique (device_id)
-);
-
-drop table IF EXISTS wvp_record_plan;
-create table IF NOT EXISTS wvp_record_plan
-(
- id serial primary key,
- snap bool default false,
- name varchar(255) NOT NULL,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-drop table IF EXISTS wvp_record_plan_item;
-create table IF NOT EXISTS wvp_record_plan_item
-(
- id serial primary key,
- start int,
- stop int,
- week_day int,
- plan_id int,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-/*
-* 20240528
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20240528`()
-BEGIN
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'transcode_suffix')
- THEN
- ALTER TABLE wvp_media_server ADD transcode_suffix character varying(255);
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'type')
- THEN
- alter table wvp_media_server
- add type character varying(50) default 'zlm';
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'flv_port')
- THEN
- alter table wvp_media_server add flv_port integer;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'flv_ssl_port')
- THEN
- alter table wvp_media_server add flv_ssl_port integer;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'ws_flv_port')
- THEN
- alter table wvp_media_server add ws_flv_port integer;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'ws_flv_ssl_port')
- THEN
- alter table wvp_media_server add ws_flv_ssl_port integer;
- END IF;
-END; //
-call wvp_20240528();
-DROP PROCEDURE wvp_20240528;
-DELIMITER ;
-
-create table IF NOT EXISTS wvp_user_api_key (
- id serial primary key ,
- user_id bigint,
- app character varying(255) ,
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-/*
-* 20241222
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20241222`()
-BEGIN
- IF EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and INDEX_NAME = 'uk_wvp_device_channel_unique_device_channel')
- THEN
- alter table wvp_device_channel drop index uk_wvp_device_channel_unique_device_channel;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and INDEX_NAME = 'uk_wvp_unique_stream_push_id')
- THEN
- alter table wvp_device_channel drop index uk_wvp_unique_stream_push_id;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and INDEX_NAME = 'uk_wvp_unique_stream_proxy_id')
- THEN
- alter table wvp_device_channel drop index uk_wvp_unique_stream_proxy_id;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'data_type')
- THEN
- alter table wvp_device_channel add data_type integer not null;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'data_device_id')
- THEN
- alter table wvp_device_channel add data_device_id integer not null;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'device_db_id')
- THEN
- update wvp_device_channel wdc INNER JOIN
- (SELECT id, device_db_id from wvp_device_channel where device_db_id is not null ) ct on ct.id = wdc.id
- set wdc.data_type = 1, wdc.data_device_id = ct.device_db_id where wdc.device_db_id is not null;
- alter table wvp_device_channel drop device_db_id;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'stream_push_id')
- THEN
- update wvp_device_channel wdc INNER JOIN
- (SELECT id, stream_push_id from wvp_device_channel where stream_push_id is not null ) ct on ct.id = wdc.id
- set wdc.data_type = 2, wdc.data_device_id = ct.stream_push_id where wdc.stream_push_id is not null;
- alter table wvp_device_channel drop stream_push_id;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'stream_proxy_id')
- THEN
- update wvp_device_channel wdc INNER JOIN
- (SELECT id, stream_proxy_id from wvp_device_channel where stream_proxy_id is not null ) ct on ct.id = wdc.id
- set wdc.data_type = 3, wdc.data_device_id = ct.stream_proxy_id where wdc.stream_proxy_id is not null;
- alter table wvp_device_channel drop stream_proxy_id;
- END IF;
-END; //
-call wvp_20241222();
-DROP PROCEDURE wvp_20241222;
-DELIMITER ;
-/*
-* 20241231
-*/
-DELIMITER //
-CREATE PROCEDURE `wvp_20241231`()
-BEGIN
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_stream_proxy' and column_name = 'relates_media_server_id')
- THEN
- alter table wvp_stream_proxy add relates_media_server_id character varying(50);
- END IF;
-END; //
-call wvp_20241231();
-DROP PROCEDURE wvp_20241231;
-DELIMITER ;
-/*
-* 20250111
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250111`()
-BEGIN
- IF EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and INDEX_NAME = 'uk_stream_push_app_stream_path')
- THEN
- alter table wvp_cloud_record drop index uk_stream_push_app_stream_path ;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and column_name = 'folder')
- THEN
- alter table wvp_cloud_record modify folder varchar(500) null;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and column_name = 'file_path')
- THEN
- alter table wvp_cloud_record modify file_path varchar(500) null;
- END IF;
-END; //
-call wvp_20250111();
-DROP PROCEDURE wvp_20250111;
-DELIMITER ;
-
-/*
-* 20250211
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250211`()
-BEGIN
- IF EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device' and column_name = 'keepalive_interval_time')
- THEN
- alter table wvp_device change keepalive_interval_time heart_beat_interval integer after as_message_channel;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device' and column_name = 'heart_beat_count')
- THEN
- alter table wvp_device add heart_beat_count integer;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device' and column_name = 'position_capability')
- THEN
- alter table wvp_device add position_capability integer;
- END IF;
-END; //
-call wvp_20250211();
-DROP PROCEDURE wvp_20250211;
-DELIMITER ;
-
-/**
- * 20250312
- */
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250312`()
-BEGIN
- DECLARE serverId VARCHAR(32) DEFAULT '你的服务ID';
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device' and column_name = 'server_id')
- THEN
- alter table wvp_device add server_id character varying(50);
- update wvp_device set server_id = serverId;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'server_id')
- THEN
- alter table wvp_media_server add server_id character varying(50);
- update wvp_media_server set server_id = serverId;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_stream_proxy' and column_name = 'server_id')
- THEN
- alter table wvp_stream_proxy add server_id character varying(50);
- update wvp_stream_proxy set server_id = serverId;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and column_name = 'server_id')
- THEN
- alter table wvp_cloud_record add server_id character varying(50);
- update wvp_cloud_record set server_id = serverId;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_platform' and column_name = 'server_id')
- THEN
- alter table wvp_platform add server_id character varying(50);
- END IF;
-END; //
-call wvp_20250312();
-DROP PROCEDURE wvp_20250312;
-DELIMITER ;
-
-/*
-* 20250319
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250319`()
-BEGIN
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'gps_speed')
- THEN
- alter table wvp_device_channel add gps_speed double precision;
- END IF;
-
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'gps_altitude')
- THEN
- alter table wvp_device_channel add gps_altitude double precision;
- END IF;
-
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'gps_direction')
- THEN
- alter table wvp_device_channel add gps_direction double precision;
- END IF;
-END; //
-call wvp_20250319();
-DROP PROCEDURE wvp_20250319;
-DELIMITER ;
-
-/*
-* 20250402
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250402`()
-BEGIN
- IF NOT EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and INDEX_NAME = 'data_type')
- THEN
- create index data_type on wvp_device_channel (data_type);
- END IF;
- IF NOT EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and INDEX_NAME = 'data_device_id')
- THEN
- create index data_device_id on wvp_device_channel (data_device_id);
- END IF;
-
-END; //
-call wvp_20250402();
-DROP PROCEDURE wvp_20250402;
-DELIMITER ;
-
-
-
diff --git a/docker/wvp/wvpcode/docker/nginx/Dockerfile b/docker/wvp/wvpcode/docker/nginx/Dockerfile
deleted file mode 100644
index 5e57aab..0000000
--- a/docker/wvp/wvpcode/docker/nginx/Dockerfile
+++ /dev/null
@@ -1,28 +0,0 @@
-FROM ubuntu:24.04 AS builder
-
-
-RUN apt-get update && \
- apt-get install -y nodejs npm && \
- rm -rf /var/lib/apt/lists/*
-
-COPY ./web /build
-WORKDIR /build
-
-RUN npm --registry=https://registry.npmmirror.com install
-RUN npm run build:prod
-
-WORKDIR /src/main/resources
-RUN ls
-
-WORKDIR /src/main/resources/static
-RUN ls
-
-FROM nginx:alpine
-
-ARG TZ=Asia/Shanghai
-
-
-COPY --from=builder /src/main/resources/static /opt/dist
-
-CMD ["nginx","-g","daemon off;"]
-
diff --git a/docker/wvp/wvpcode/docker/nginx/build.sh b/docker/wvp/wvpcode/docker/nginx/build.sh
deleted file mode 100755
index 717d546..0000000
--- a/docker/wvp/wvpcode/docker/nginx/build.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#/bin/bash
-set -e
-
-version=2.7.3
-
-rm ./dist/static/js/config.js
-cp ./config.js ./dist/static/js/
-
-docker build -t polaris-nginx:${version} .
-docker tag polaris-nginx:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-nginx:${version}
-docker tag polaris-nginx:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-nginx:latest
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/nginx/config.js b/docker/wvp/wvpcode/docker/nginx/config.js
deleted file mode 100644
index f63449d..0000000
--- a/docker/wvp/wvpcode/docker/nginx/config.js
+++ /dev/null
@@ -1,22 +0,0 @@
-
-window.baseUrl = "http://10.10.1.124:18978"
-
-// map组件全局参数, 注释此内容可以关闭地图功能
-window.mapParam = {
- // 开启/关闭地图功能
- enable: true,
- // 坐标系 GCJ-02 WGS-84,
- coordinateSystem: "GCJ-02",
- // 地图瓦片地址
- tilesUrl: "http://webrd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8",
- // 瓦片大小
- tileSize: 256,
- // 默认层级
- zoom:10,
- // 默认地图中心点
- center:[116.41020, 39.915119],
- // 地图最大层级
- maxZoom:18,
- // 地图最小层级
- minZoom: 3
-}
diff --git a/docker/wvp/wvpcode/docker/nginx/templates/nginx.conf.template b/docker/wvp/wvpcode/docker/nginx/templates/nginx.conf.template
deleted file mode 100644
index cf0de13..0000000
--- a/docker/wvp/wvpcode/docker/nginx/templates/nginx.conf.template
+++ /dev/null
@@ -1,110 +0,0 @@
-server {
- listen 8080;
- server_name localhost;
-
- location / {
- root /opt/dist;
- index index.html index.htm;
- }
- location /record_proxy/{
- proxy_set_header Host $http_host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header REMOTE-HOST $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_pass http://polaris-wvp:18978/;
- }
- location /api/ {
- proxy_set_header Host $http_host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header REMOTE-HOST $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_pass http://polaris-wvp:18978;
-
-
- # 从环境变量获取原始主机地址(x.x.x.x)
- set $original_host ${Stream_IP};
-
- # 执行字符串替换
- # 将媒体资源文件替换为Nginx输出的相对地址
- sub_filter "http://$original_host/index/api/downloadFile" "mediaserver/api/downloadFile";
- sub_filter "http://$original_host:80/index/api/downloadFile" "mediaserver/api/downloadFile";
- sub_filter "https://$original_host/index/api/downloadFile" "mediaserver/api/downloadFile";
- sub_filter "https://$original_host:443/index/api/downloadFile" "mediaserver/api/downloadFile";
- sub_filter "http://$original_host/mp4_record" "mp4_record";
- sub_filter "http://$original_host:80/mp4_record" "mp4_record";
- sub_filter "https://$original_host/mp4_record" "mp4_record";
- sub_filter "https://$original_host:443/mp4_record" "mp4_record";
-
- # 设置为off表示替换所有匹配项,而不仅仅是第一个
- sub_filter_once off;
-
- # 确保响应被正确处理
- sub_filter_types application/json; # 只对JSON响应进行处理
- }
-
- # 将mediaserver/record转发到目标地址
- location /mediaserver/api/downloadFile {
- # 目标服务器地址
- proxy_pass http://polaris-media:80/index/api/downloadFile;
-
- # 以下是常用的反向代理设置
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
-
- # 超时设置,根据需要调整
- proxy_connect_timeout 300s;
- proxy_send_timeout 300s;
- proxy_read_timeout 300s;
- }
-
- # 仅允许代理/rtp/开头的路径
- location ^~ /rtp/ {
- # 代理到ZLMediakit服务
- proxy_pass http://polaris-media:80;
-
- # 基础HTTP代理配置
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
-
- # WebSocket支持配置
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
-
- # 超时设置,根据实际需求调整
- proxy_connect_timeout 60s;
- proxy_read_timeout 3600s;
- proxy_send_timeout 60s;
- }
-
- # 仅允许代理/rtp/开头的路径
- location ^~ /mp4_record/ {
- # 代理到ZLMediakit服务
- proxy_pass http://polaris-media:80;
-
- # 基础HTTP代理配置
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
-
- # WebSocket支持配置
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
-
- # 超时设置,根据实际需求调整
- proxy_connect_timeout 60s;
- proxy_read_timeout 3600s;
- proxy_send_timeout 60s;
- }
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
-}
diff --git a/docker/wvp/wvpcode/docker/push.sh b/docker/wvp/wvpcode/docker/push.sh
deleted file mode 100755
index 468a957..0000000
--- a/docker/wvp/wvpcode/docker/push.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#/bin/bash
-set -e
-
-version=2.7.3
-
-docker push polaris-tian-docker.pkg.coding.net/qt/polaris/ylcx-media:latest
-docker push polaris-tian-docker.pkg.coding.net/qt/polaris/ylcx-mysql:latest
-docker push polaris-tian-docker.pkg.coding.net/qt/polaris/ylcx-redis:latest
-docker push polaris-tian-docker.pkg.coding.net/qt/polaris/ylcx-wvp:latest
-docker push polaris-tian-docker.pkg.coding.net/qt/polaris/ylcx-nginx:latest
-docker push polaris-tian-docker.pkg.coding.net/qt/polaris/ylcx-media:${version}
-docker push polaris-tian-docker.pkg.coding.net/qt/polaris/ylcx-mysql:${version}
-docker push polaris-tian-docker.pkg.coding.net/qt/polaris/ylcx-redis:${version}
-docker push polaris-tian-docker.pkg.coding.net/qt/polaris/ylcx-wvp:${version}
-docker push polaris-tian-docker.pkg.coding.net/qt/polaris/ylcx-nginx:${version}
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/redis/Dockerfile b/docker/wvp/wvpcode/docker/redis/Dockerfile
deleted file mode 100644
index d92f809..0000000
--- a/docker/wvp/wvpcode/docker/redis/Dockerfile
+++ /dev/null
@@ -1,5 +0,0 @@
-FROM redis
-
-RUN mkdir -p /opt/polaris/redis
-WORKDIR /opt/polaris/redis
-COPY ./conf/redis.conf /opt/polaris/redis/redis.conf
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/redis/build.sh b/docker/wvp/wvpcode/docker/redis/build.sh
deleted file mode 100755
index a990f8f..0000000
--- a/docker/wvp/wvpcode/docker/redis/build.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#/bin/bash
-set -e
-
-version=2.7.3
-
-docker build -t polaris-redis:${version} .
-docker tag polaris-redis:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-redis:${version}
-docker tag polaris-redis:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-redis:latest
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/redis/conf/redis.conf b/docker/wvp/wvpcode/docker/redis/conf/redis.conf
deleted file mode 100644
index a151bd4..0000000
--- a/docker/wvp/wvpcode/docker/redis/conf/redis.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-#requirepass root
-bind 0.0.0.0
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/wvp/Dockerfile b/docker/wvp/wvpcode/docker/wvp/Dockerfile
deleted file mode 100644
index 52e62d2..0000000
--- a/docker/wvp/wvpcode/docker/wvp/Dockerfile
+++ /dev/null
@@ -1,85 +0,0 @@
-FROM ringcentral/jdk:11 AS builder
-
-EXPOSE 18978/tcp
-EXPOSE 8116/tcp
-EXPOSE 8116/udp
-EXPOSE 8080/tcp
-
-#RUN apt-get update && \
- #DEBIAN_FRONTEND="noninteractive" \
- #apt-get install -y --no-install-recommends \
- #wget \
- #cmake \
- #maven \
- #git \
- #ca-certificates \
- #tzdata \
- #curl \
- #libpcre3 \
- #libpcre3-dev \
- #zlib1g-dev \
- #openssl \
- #libssl-dev \
- #gdb && \
- #apt-get autoremove -y && \
- #apt-get clean -y && \
- #rm -rf /var/lib/apt/lists/*
-
-## install jdk1.8
-#RUN mkdir -p /opt/download
-#WORKDIR /opt/download
-#RUN if [ "$Platfrom" = "arm64" ]; \
- #then \
- #wget https://polaris-tian-generic.pkg.coding.net/qt/autopliot/jdk-8u411-linux-aarch64.tar.gz?version=latest --no-check-certificate -O jdk-8.tar.gz && \
- #tar -zxvf /opt/download/jdk-8.tar.gz -C /usr/local/ --transform 's/jdk1.8.0_411/java/' && \
- #rm /opt/download/jdk-8.tar.gz; \
- #else \
- #wget https://polaris-tian-generic.pkg.coding.net/qt/autopliot/jdk-8u202-linux-x64.tar.gz?version=latest --no-check-certificate -O jdk-8.tar.gz && \
- #tar -zxvf /opt/download/jdk-8.tar.gz -C /usr/local/ --transform 's/jdk1.8.0_202/java/' && \
- #rm /opt/download/jdk-8.tar.gz; \
- #fi
-
-#ENV JAVA_HOME /usr/local/java/
-#ENV JRE_HOME ${JAVA_HOME}/jre
-#ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
-#ENV PATH ${JAVA_HOME}/bin:$PATH
-
-RUN java -version && javac -version
-
-#RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources && \
-RUN apt-get update && \
- apt-get install -y maven && \
- rm -rf /var/lib/apt/lists/*
-
-
-COPY . /build
-WORKDIR /build
-RUN ls && mvn clean package -Dmaven.test.skip=true
-WORKDIR /build/target
-#ȷļһ
-RUN mv wvp-pro-*.jar wvp.jar
-
-
-FROM ringcentral/jdk:11
-RUN mkdir -p /opt/wvp
-WORKDIR /opt/wvp
-COPY --from=builder /build/target /opt/wvp
-COPY ./docker/wvp/wvp /opt/wvp
-ENTRYPOINT ["java", "-Xms512m", "-Xmx1024m", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=/opt/ylcx/", "-jar", "wvp.jar", "--spring.config.location=/opt/ylcx/wvp/application.yml"]
-
-
-
-#RUN mkdir -p /opt/wvp
-#WORKDIR /opt/wvp
-#COPY ./wvp /opt/wvp
-#
-#WORKDIR /home
-#RUN cd /home && \
- #git clone https://gitee.com/pan648540858/wvp-GB28181-pro.git
-#
-#RUN cd /home/wvp-GB28181-pro && \
- #mvn clean package -Dmaven.test.skip=true && \
- #cp /home/wvp-GB28181-pro/target/*.jar /opt/wvp/wvp.jar
-#
-#WORKDIR /opt/wvp
-#ENTRYPOINT ["java", "-Xms512m", "-Xmx1024m", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=/opt/ylcx/", "-jar", "wvp.jar", "--spring.config.location=/opt/ylcx/wvp/application.yml"]
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/wvp/build.sh b/docker/wvp/wvpcode/docker/wvp/build.sh
deleted file mode 100755
index f45df29..0000000
--- a/docker/wvp/wvpcode/docker/wvp/build.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#/bin/bash
-set -e
-
-version=2.7.3
-
-docker build -t polaris-wvp:${version} .
-docker tag polaris-wvp:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-wvp:${version}
-docker tag polaris-wvp:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-wvp:latest
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/docker/wvp/wvp/application-base.yml b/docker/wvp/wvpcode/docker/wvp/wvp/application-base.yml
deleted file mode 100755
index 726f197..0000000
--- a/docker/wvp/wvpcode/docker/wvp/wvp/application-base.yml
+++ /dev/null
@@ -1,106 +0,0 @@
-spring:
- # 设置接口超时时间
- mvc:
- async:
- request-timeout: 20000
- thymeleaf:
- cache: false
- # [可选]上传文件大小限制
- servlet:
- multipart:
- max-file-size: 10MB
- max-request-size: 100MB
- data:
- # REDIS数据库配置
- redis:
- # [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1
- host: 127.0.0.1
- # [必须修改] 端口号
- port: 6379
- # [可选] 数据库 DB
- database: 1
- # [可选] 访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
- password:
- # [可选] 超时时间
- timeout: 30000
- # mysql数据源
- datasource:
- dynamic:
- type: com.zaxxer.hikari.HikariDataSource
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true
- username: root
- password: root
-#[可选] 监听的HTTP端口, 网页和接口调用都是这个端口
-server:
- port: 18978
- ssl:
- # [可选] 是否开启HTTPS访问
- enabled: false
-# 作为28181服务器的配置
-sip:
- # [必须修改] 本机的IP
- ip: 127.0.0.1
- # [可选]
- port: 8116
- # [可选]
- domain: 3402000000
- # [可选]
- id: 34020000002000000001
- password:
- alarm: true
-
-# 默认服务器配置
-media:
- id: polaris
- # [必须修改]内网IP
- ip: 127.0.0.1
- http-port: 6080
- # [可选] 返回流地址时的ip,置空使用 media.ip
- stream-ip: 127.0.0.1
- # [可选] wvp在国标信令中使用的ip,此ip为摄像机可以访问到的ip, 置空使用 media.ip
- sdp-ip: 127.0.0.1
- # [可选] Hook IP, 默认使用sip.ip
- hook-ip: 127.0.0.1
- # [可选] sslport
- http-ssl-port: 4443
- rtp-proxy-port: 10000
- rtmp-port: 10935
- rtmp-ssl-port: 41935
- rtsp-port: 5540
- rtsp-ssl-port: 45540
- # [可选]
- secret: su6TiedN2rVAmBbIDX0aa0QTiBJLBdcf
- # 启用多端口模式, 多端口模式使用端口区分每路流,兼容性更好。 单端口使用流的ssrc区分, 点播超时建议使用多端口测试
- rtp:
- # [可选] 是否启用多端口模式, 开启后会在portRange范围内选择端口用于媒体流传输
- enable: false
- # [可选]
- port-range: 30000,30500
- # [可选]
- send-port-range: 50502,50506
-
- record-path: /opt/media/record
- record-day: 7
- record-assist-port: 0
-user-settings:
- auto-apply-play: true
- play-timeout: 30000
- wait-track: false
- record-push-live: false
- record-sip: false
- stream-on-demand: true
- interface-authentication: false
- broadcast-for-platform: TCP-PASSIVE
- push-stream-after-ack: true
- send-to-platforms-when-id-lost: true
- interface-authentication-excludes:
- - /api/**
- push-authority: false
- allowed-origins:
- - http://localhost:8080
- - http://127.0.0.1:8080
- - http://0.0.0.0:8080
-logging:
- config: classpath:logback-spring.xml
-
diff --git a/docker/wvp/wvpcode/docker/wvp/wvp/application-docker.yml b/docker/wvp/wvpcode/docker/wvp/wvp/application-docker.yml
deleted file mode 100644
index 742f15e..0000000
--- a/docker/wvp/wvpcode/docker/wvp/wvp/application-docker.yml
+++ /dev/null
@@ -1,142 +0,0 @@
-spring:
- cache:
- type: redis
- thymeleaf:
- cache: false
- # 设置接口超时时间
- mvc:
- async:
- request-timeout: 20000
- # [可选]上传文件大小限制
- servlet:
- multipart:
- max-file-size: 10MB
- max-request-size: 100MB
- data:
- # REDIS数据库配置
- redis:
- # [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1
- host: ${REDIS_HOST:127.0.0.1}
- # [必须修改] 端口号
- port: ${REDIS_PORT:6379}
- # [可选] 数据库 DB
- database: 1
- # [可选] 访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
- password:
- # [可选] 超时时间
- timeout: 10000
- ## [可选] 一个pool最多可分配多少个jedis实例
- #poolMaxTotal: 1000
- ## [可选] 一个pool最多有多少个状态为idle(空闲)的jedis实例
- #poolMaxIdle: 500
- ## [可选] 最大的等待时间(秒)
- #poolMaxWait: 5
- # [必选] jdbc数据库配置
- datasource:
- # mysql数据源
- type: com.zaxxer.hikari.HikariDataSource
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://${DATABASE_HOST:127.0.0.1}:${DATABASE_PORT:3306}/wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true&allowPublicKeyRetrieval=true
- username: ${DATABASE_USER:root}
- password: ${DATABASE_PASSWORD:root}
-
-#[可选] 监听的HTTP端口, 网页和接口调用都是这个端口
-server:
- port: 18978
- ssl:
- # [可选] 是否开启HTTPS访问
- # docker里运行,内部不需要HTTPS
- enabled: false
-# 作为28181服务器的配置
-sip:
- # [必须修改] 本机的IP,对应你的网卡,监听什么ip就是使用什么网卡,
- # 如果要监听多张网卡,可以使用逗号分隔多个IP, 例如: 192.168.1.4,10.0.0.4
- # 如果不明白,就使用0.0.0.0,大部分情况都是可以的
- # 请不要使用127.0.0.1,任何包括localhost在内的域名都是不可以的。
- ip: 0.0.0.0
- # [可选] 没有任何业务需求,仅仅是在前端展示的时候用
- show-ip: ${SIP_ShowIP}
- # [可选]
- port: ${SIP_Port:8116}
- # 根据国标6.1.2中规定,domain宜采用ID统一编码的前十位编码。国标附录D中定义前8位为中心编码(由省级、市级、区级、基层编号组成,参照GB/T 2260-2007)
- # 后两位为行业编码,定义参照附录D.3
- # 3701020049标识山东济南历下区 信息行业接入
- # [可选]
- domain: ${SIP_Domain:3402000000}
- # [可选]
- id: ${SIP_Id:34020000002000000001}
- # [可选] 默认设备认证密码,后续扩展使用设备单独密码, 移除密码将不进行校验
- password: ${SIP_Password}
- # [可选] 国标级联注册失败,再次发起注册的时间间隔。 默认60秒
- register-time-interval: 60
- # [可选] 云台控制速度
- ptz-speed: 50
- # TODO [可选] 收到心跳后自动上线, 重启服务后会将所有设备置为离线,默认false,等待注册后上线。设置为true则收到心跳设置为上线。
- # keepalliveToOnline: false
- # 是否存储alarm信息
- alarm: true
- # 命令发送等待回复的超时时间, 单位:毫秒
- timeout: 1000
-
-# 默认服务器配置
-media:
- id: polaris
- # [必须修改] ZLM 内网IP与端口
- ip: ${ZLM_HOST:127.0.0.1}
- http-port: 80
- # [可选] 返回流地址时的ip,置空使用 media.ip
- stream-ip: ${Stream_IP}
- # [可选] wvp在国标信令中使用的ip,此ip为摄像机可以访问到的ip, 置空使用 media.ip
- sdp-ip: ${SDP_IP}
- # [可选] zlm服务器访问WVP所使用的IP, 默认使用127.0.0.1,zlm和wvp没有部署在同一台服务器时必须配置
- hook-ip: ${ZLM_HOOK_HOST}
- # [可选] sslport
- http-ssl-port: 0
- flv-port: ${MediaHttp:}
- flv-ssl-port: ${MediaHttps:}
- ws-flv-port: ${MediaHttp:}
- ws-flv-ssl-port: ${MediaHttps:}
- rtp-proxy-port: ${MediaRtp:}
- rtmp-port: ${MediaRtmp:}
- rtmp-ssl-port: 0
- rtsp-port: ${MediaRtsp:}
- rtsp-ssl-port: 0
- # [可选] 是否自动配置ZLM, 如果希望手动配置ZLM, 可以设为false, 不建议新接触的用户修改
- auto-config: true
- # [可选]
- secret: ${ZLM_SERCERT}
- # 启用多端口模式, 多端口模式使用端口区分每路流,兼容性更好。 单端口使用流的ssrc区分, 点播超时建议使用多端口测试
- rtp:
- # [可选] 是否启用多端口模式, 开启后会在portRange范围内选择端口用于媒体流传输
- enable: false
- # [可选]
- port-range: 30000,30500
- # [可选]
- send-port-range: 50502,50506
-
- record-path: /opt/media/bin/www/record/
- record-day: 7
- record-assist-port: 0
-user-settings:
- auto-apply-play: true
- play-timeout: 30000
- wait-track: false
- record-push-live: ${RecordPushLive:false}
- record-sip: ${RecordSip:false}
- stream-on-demand: true
- interface-authentication: true
- broadcast-for-platform: TCP-PASSIVE
- push-stream-after-ack: true
- send-to-platforms-when-id-lost: true
- interface-authentication-excludes:
- # - /api/**
- push-authority: true
- # allowed-origins:
- # - http://localhost:8080
- # - http://127.0.0.1:8080
- # - http://0.0.0.0:8080
- # - ${NGINX_HOST}
- jwkFile: classpath:xxxxxxxxxxx.json
-logging:
- config: classpath:logback-spring.xml
-
diff --git a/docker/wvp/wvpcode/docker/wvp/wvp/application.yml b/docker/wvp/wvpcode/docker/wvp/wvp/application.yml
deleted file mode 100755
index 4496fb6..0000000
--- a/docker/wvp/wvpcode/docker/wvp/wvp/application.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-spring:
- application:
- name: wvp
- profiles:
- active: docker
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/pom.xml b/docker/wvp/wvpcode/pom.xml
index e6405c8..d1bb91b 100644
--- a/docker/wvp/wvpcode/pom.xml
+++ b/docker/wvp/wvpcode/pom.xml
@@ -472,13 +472,13 @@
maven-jar-plugin
3.4.2
-
+
diff --git a/docker/wvp/wvpcode/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java b/docker/wvp/wvpcode/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java
index f633c2b..e5dd9a4 100644
--- a/docker/wvp/wvpcode/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java
+++ b/docker/wvp/wvpcode/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java
@@ -41,45 +41,9 @@ public class SipLayer implements CommandLineRunner {
@Override
public void run(String... args) {
- if (ObjectUtils.isEmpty(sipConfig.getIp())) {
- try {
- // 获得本机的所有网络接口
- Enumeration nifs = NetworkInterface.getNetworkInterfaces();
- while (nifs.hasMoreElements()) {
- NetworkInterface nif = nifs.nextElement();
- // 获得与该网络接口绑定的 IP 地址,一般只有一个
- Enumeration addresses = nif.getInetAddresses();
- while (addresses.hasMoreElements()) {
- InetAddress addr = addresses.nextElement();
- if (addr instanceof Inet4Address) {
- if (addr.getHostAddress().equals("127.0.0.1")){
- continue;
- }
- if (nif.getName().startsWith("docker")) {
- continue;
- }
- log.info("[自动配置SIP监听网卡] 网卡接口地址: {}", addr.getHostAddress());// 只关心 IPv4 地址
- monitorIps.add(addr.getHostAddress());
- }
- }
- }
- }catch (Exception e) {
- log.error("[读取网卡信息失败]", e);
- }
- if (monitorIps.isEmpty()) {
- log.error("[自动配置SIP监听网卡信息失败], 请手动配置SIP.IP后重新启动");
- System.exit(1);
- }
- }else {
- // 使用逗号分割多个ip
- String separator = ",";
- if (sipConfig.getIp().indexOf(separator) > 0) {
- String[] split = sipConfig.getIp().split(separator);
- monitorIps.addAll(Arrays.asList(split));
- }else {
- monitorIps.add(sipConfig.getIp());
- }
- }
+ // 强制使用 0.0.0.0 绑定,避免配置问题
+ log.info("[SIP SERVER] 强制使用 0.0.0.0 绑定SIP服务");
+ monitorIps.add("0.0.0.0");
sipConfig.setMonitorIps(monitorIps);
if (ObjectUtils.isEmpty(sipConfig.getShowIp())){
sipConfig.setShowIp(String.join(",", monitorIps));
diff --git a/docker/wvp/wvpcode/打包/config/config.ini b/docker/wvp/wvpcode/打包/config/config.ini
deleted file mode 100644
index 18b5fac..0000000
--- a/docker/wvp/wvpcode/打包/config/config.ini
+++ /dev/null
@@ -1,199 +0,0 @@
-; auto-generated by mINI class {
-
-[api]
-apiDebug=1
-defaultSnap=./www/logo.png
-downloadRoot=./www
-secret=034523TF8yT83wh5Wvz73f7
-snapRoot=./www/snap/
-
-[cluster]
-origin_url=
-retry_count=3
-timeout_sec=15
-
-[ffmpeg]
-bin=/usr/bin/ffmpeg
-cmd=%s -re -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s
-cmd2=%s -rtsp_transport tcp -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f rtsp %s
-log=./ffmpeg/ffmpeg.log
-restart_sec=0
-snap=%s -rtsp_transport tcp -i %s -y -f mjpeg -frames:v 1 %s
-
-[general]
-check_nvidia_dev=1
-enableVhost=0
-enable_ffmpeg_log=0
-flowThreshold=1024
-maxStreamWaitMS=15000
-mediaServerId=XwFtVZrtZbHJq4UV
-mergeWriteMS=0
-resetWhenRePlay=1
-streamNoneReaderDelayMS=20000
-unready_frame_cache=100
-wait_add_track_ms=3000
-wait_track_ready_ms=10000
-
-[hls]
-broadcastRecordTs=0
-deleteDelaySec=10
-fastRegister=0
-fileBufSize=65536
-segDelay=0
-segDur=2
-segKeep=0
-segNum=3
-segRetain=5
-
-[hook]
-alive_interval=10.0
-enable=1
-on_flow_report=
-on_http_access=
-on_play=http://192.168.1.3:18082/index/hook/on_play
-on_publish=http://192.168.1.3:18082/index/hook/on_publish
-on_record_mp4=http://192.168.1.3:18082/index/hook/on_record_mp4
-on_record_ts=
-on_rtp_server_timeout=http://192.168.1.3:18082/index/hook/on_rtp_server_timeout
-on_rtsp_auth=
-on_rtsp_realm=
-on_send_rtp_stopped=http://192.168.1.3:18082/index/hook/on_send_rtp_stopped
-on_server_exited=
-on_server_keepalive=http://192.168.1.3:18082/index/hook/on_server_keepalive
-on_server_started=http://192.168.1.3:18082/index/hook/on_server_started
-on_shell_login=
-on_stream_changed=http://192.168.1.3:18082/index/hook/on_stream_changed
-on_stream_none_reader=http://192.168.1.3:18082/index/hook/on_stream_none_reader
-on_stream_not_found=http://192.168.1.3:18082/index/hook/on_stream_not_found
-retry=1
-retry_delay=3.000000
-stream_changed_schemas=rtsp/rtmp/fmp4/ts/hls/hls.fmp4
-timeoutSec=20
-
-[http]
-allow_cross_domains=1
-allow_ip_range=
-charSet=utf-8
-dirMenu=1
-forbidCacheSuffix=
-forwarded_ip_header=
-keepAliveSecond=15
-maxReqSize=40960
-notFound=404 Not Found您访问的资源不存在!
ZLMediaKit(git hash:f69f3b3/2023-09-09T10:59:27+08:00,branch:master,build time:2023-09-11T15:03:57)
-port=7082
-rootPath=./www
-sendBufSize=65536
-sslport=11443
-virtualPath=
-
-[multicast]
-addrMax=239.255.255.255
-addrMin=239.0.0.0
-udpTTL=64
-
-[protocol]
-add_mute_audio=1
-auto_close=0
-continue_push_ms=3000
-enable_audio=1
-enable_fmp4=1
-enable_hls=1
-enable_hls_fmp4=0
-enable_mp4=0
-enable_rtmp=1
-enable_rtsp=1
-enable_ts=1
-fmp4_demand=0
-hls_demand=0
-hls_save_path=./www
-modify_stamp=1
-mp4_as_player=0
-mp4_max_second=300
-mp4_save_path=./www
-paced_sender_ms=0
-rtmp_demand=0
-rtsp_demand=0
-ts_demand=0
-
-[record]
-appName=record
-enableFmp4=0
-fastStart=0
-fileBufSize=65536
-fileRepeat=0
-sampleMS=500
-
-[rtc]
-datachannel_echo=1
-externIP=192.168.1.3
-max_bitrate=0
-min_bitrate=0
-port=11340
-preferredCodecA=PCMA,opus,mpeg4-generic
-preferredCodecV=H264,H265,AV1,VP9,VP8
-rembBitRate=0
-start_bitrate=0
-tcpPort=11340
-timeoutSec=15
-
-[rtmp]
-directProxy=1
-enhanced=0
-handshakeSecond=15
-keepAliveSecond=15
-port=11935
-sslport=18350
-
-[rtp]
-audioMtuSize=600
-h264_stap_a=1
-lowLatency=0
-rtpMaxSize=10
-videoMtuSize=1400
-
-[rtp_proxy]
-aac_pt=101
-dumpDir=./dump
-gop_cache=1
-h264_pt=98
-h265_pt=99
-opus_pt=100
-port=11000
-port_range=30000-40000
-ps_pt=96
-rtp_g711_dur_ms=100
-timeoutSec=15
-udp_recv_socket_buffer=4194304
-
-[rtsp]
-authBasic=0
-directProxy=1
-handshakeSecond=15
-keepAliveSecond=15
-lowLatency=0
-port=22554
-rtpTransportType=-1
-sslport=11332
-
-[shell]
-maxReqSize=1024
-port=9900
-
-[srt]
-latencyMul=4
-pktBufSize=8192
-port=9900
-timeoutSec=5
-
-[transcode]
-acodec=mpeg4-generic
-decoder_h264=h264_qsv,h264_videotoolbox,h264_bm,libopenh264
-decoder_h265=hevc_qsv,hevc_videotoolbox,hevc_bm
-enable_ffmpeg_log=0
-encoder_h264=h264_qsv,h264_videotoolbox,h264_bm,libx264,libopenh264
-encoder_h265=hevc_qsv,hevc_videotoolbox,hevc_bm,libx265
-filter=
-suffix=transport
-vcodec=H264
-
-; } ---
diff --git a/docker/wvp/wvpcode/数据库/2.6.9/初始化-mysql-2.6.9.sql b/docker/wvp/wvpcode/数据库/2.6.9/初始化-mysql-2.6.9.sql
deleted file mode 100644
index 8eb8d71..0000000
--- a/docker/wvp/wvpcode/数据库/2.6.9/初始化-mysql-2.6.9.sql
+++ /dev/null
@@ -1,323 +0,0 @@
-/*建表*/
-create table wvp_device (
- id serial primary key ,
- device_id character varying(50) not null ,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50),
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- keepalive_interval_time integer,
- switch_primary_sub_stream bool default false,
- broadcast_push_after_ack bool default false,
- constraint uk_device_device unique (device_id)
-);
-
-create table wvp_device_alarm (
- id serial primary key ,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- alarm_priority character varying(50),
- alarm_method character varying(50),
- alarm_time character varying(50),
- alarm_description character varying(255),
- longitude double precision,
- latitude double precision,
- alarm_type character varying(50),
- create_time character varying(50) not null
-);
-
-create table wvp_device_channel (
- id serial primary key ,
- channel_id character varying(50) not null,
- name character varying(255),
- custom_name character varying(255),
- manufacture character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy character varying(50),
- ip_address character varying(50),
- port integer,
- password character varying(255),
- ptz_type integer,
- custom_ptz_type integer,
- status bool default false,
- longitude double precision,
- custom_longitude double precision,
- latitude double precision,
- custom_latitude double precision,
- stream_id character varying(255),
- device_id character varying(50) not null,
- parental character varying(50),
- has_audio bool default false,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- business_group_id character varying(50),
- gps_time character varying(50),
- constraint uk_wvp_device_channel_unique_device_channel unique (device_id, channel_id)
-);
-
-create table wvp_device_mobile_position (
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- create_time character varying(50)
-);
-
-create table wvp_gb_stream (
- gb_stream_id serial primary key,
- app character varying(255) not null,
- stream character varying(255) not null,
- gb_id character varying(50) not null,
- name character varying(255),
- longitude double precision,
- latitude double precision,
- stream_type character varying(50),
- media_server_id character varying(50),
- create_time character varying(50),
- constraint uk_gb_stream_unique_gb_id unique (gb_id),
- constraint uk_gb_stream_unique_app_stream unique (app, stream)
-);
-
-create table wvp_log (
- id serial primary key ,
- name character varying(50),
- type character varying(50),
- uri character varying(200),
- address character varying(50),
- result character varying(50),
- timing bigint,
- username character varying(50),
- create_time character varying(50)
-);
-
-create table wvp_media_server (
- id character varying(255) primary key ,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port)
-);
-
-create table wvp_platform (
- id serial primary key ,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- character_set character varying(50),
- catalog_id character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- start_offline_push bool default false,
- administrative_division character varying(50),
- catalog_group integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- auto_push_channel bool default false,
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-create table wvp_platform_catalog (
- id character varying(50),
- platform_id character varying(50),
- name character varying(255),
- parent_id character varying(50),
- civil_code character varying(50),
- business_group_id character varying(50),
- constraint uk_platform_catalog_id_platform_id unique (id, platform_id)
-);
-
-create table wvp_platform_gb_channel (
- id serial primary key ,
- platform_id character varying(50),
- catalog_id character varying(50),
- device_channel_id integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, catalog_id, device_channel_id)
-);
-
-create table wvp_platform_gb_stream (
- id serial primary key,
- platform_id character varying(50),
- catalog_id character varying(50),
- gb_stream_id integer,
- constraint uk_platform_gb_stream_platform_id_catalog_id_gb_stream_id unique (platform_id, catalog_id, gb_stream_id)
-);
-
-create table wvp_stream_proxy (
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- url character varying(255),
- src_url character varying(255),
- dst_url character varying(255),
- timeout_ms integer,
- ffmpeg_cmd_key character varying(255),
- rtp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- enable bool default false,
- status boolean,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- enable_disable_none_reader bool default false,
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-create table wvp_stream_push (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- total_reader_count character varying(50),
- origin_type integer,
- origin_type_str character varying(50),
- create_time character varying(50),
- alive_second integer,
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- push_ing bool default false,
- self bool default false,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-create table wvp_cloud_record (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time bigint,
- end_time bigint,
- media_server_id character varying(50),
- file_name character varying(255),
- folder character varying(255),
- file_path character varying(255),
- collect bool default false,
- file_size bigint,
- time_len bigint,
- constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
-);
-
-create table wvp_user (
- id serial primary key,
- username character varying(255),
- password character varying(255),
- role_id integer,
- create_time character varying(50),
- update_time character varying(50),
- push_key character varying(50),
- constraint uk_user_username unique (username)
-);
-
-create table wvp_user_role (
- id serial primary key,
- name character varying(50),
- authority character varying(50),
- create_time character varying(50),
- update_time character varying(50)
-);
-create table wvp_resources_tree (
- id serial primary key ,
- is_catalog bool default true,
- device_channel_id integer ,
- gb_stream_id integer,
- name character varying(255),
- parentId integer,
- path character varying(255)
-);
-
-
-/*初始数据*/
-INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3');
-INSERT INTO wvp_user_role VALUES (1, 'admin','0','2021-04-13 14:14:57','2021-04-13 14:14:57');
-
-
-
diff --git a/docker/wvp/wvpcode/数据库/2.6.9/初始化-postgresql-kingbase-2.6.9.sql b/docker/wvp/wvpcode/数据库/2.6.9/初始化-postgresql-kingbase-2.6.9.sql
deleted file mode 100644
index b48f646..0000000
--- a/docker/wvp/wvpcode/数据库/2.6.9/初始化-postgresql-kingbase-2.6.9.sql
+++ /dev/null
@@ -1,323 +0,0 @@
-/*建表*/
-create table wvp_device (
- id serial primary key ,
- device_id character varying(50) not null ,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50),
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- keepalive_interval_time integer,
- switch_primary_sub_stream bool default false,
- broadcast_push_after_ack bool default false,
- constraint uk_device_device unique (device_id)
-);
-
-create table wvp_device_alarm (
- id serial primary key ,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- alarm_priority character varying(50),
- alarm_method character varying(50),
- alarm_time character varying(50),
- alarm_description character varying(255),
- longitude double precision,
- latitude double precision,
- alarm_type character varying(50),
- create_time character varying(50) not null
-);
-
-create table wvp_device_channel (
- id serial primary key ,
- channel_id character varying(50) not null,
- name character varying(255),
- custom_name character varying(255),
- manufacture character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy character varying(50),
- ip_address character varying(50),
- port integer,
- password character varying(255),
- ptz_type integer,
- custom_ptz_type integer,
- status bool default false,
- longitude double precision,
- custom_longitude double precision,
- latitude double precision,
- custom_latitude double precision,
- stream_id character varying(255),
- device_id character varying(50) not null,
- parental character varying(50),
- has_audio bool default false,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- business_group_id character varying(50),
- gps_time character varying(50),
- constraint uk_wvp_device_channel_unique_device_channel unique (device_id, channel_id)
-);
-
-create table wvp_device_mobile_position (
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- create_time character varying(50)
-);
-
-create table wvp_gb_stream (
- gb_stream_id serial primary key,
- app character varying(255) not null,
- stream character varying(255) not null,
- gb_id character varying(50) not null,
- name character varying(255),
- longitude double precision,
- latitude double precision,
- stream_type character varying(50),
- media_server_id character varying(50),
- create_time character varying(50),
- constraint uk_gb_stream_unique_gb_id unique (gb_id),
- constraint uk_gb_stream_unique_app_stream unique (app, stream)
-);
-
-create table wvp_log (
- id serial primary key ,
- name character varying(50),
- type character varying(50),
- uri character varying(200),
- address character varying(50),
- result character varying(50),
- timing bigint,
- username character varying(50),
- create_time character varying(50)
-);
-
-create table wvp_media_server (
- id character varying(255) primary key ,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port)
-);
-
-create table wvp_platform (
- id serial primary key ,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- character_set character varying(50),
- catalog_id character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- start_offline_push bool default false,
- administrative_division character varying(50),
- catalog_group integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- auto_push_channel bool default false,
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-create table wvp_platform_catalog (
- id character varying(50),
- platform_id character varying(50),
- name character varying(255),
- parent_id character varying(50),
- civil_code character varying(50),
- business_group_id character varying(50),
- constraint uk_platform_catalog_id_platform_id unique (id, platform_id)
-);
-
-create table wvp_platform_gb_channel (
- id serial primary key ,
- platform_id character varying(50),
- catalog_id character varying(50),
- device_channel_id integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, catalog_id, device_channel_id)
-);
-
-create table wvp_platform_gb_stream (
- id serial primary key,
- platform_id character varying(50),
- catalog_id character varying(50),
- gb_stream_id integer,
- constraint uk_platform_gb_stream_platform_id_catalog_id_gb_stream_id unique (platform_id, catalog_id, gb_stream_id)
-);
-
-create table wvp_stream_proxy (
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- url character varying(255),
- src_url character varying(255),
- dst_url character varying(255),
- timeout_ms integer,
- ffmpeg_cmd_key character varying(255),
- rtp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- enable bool default false,
- status boolean,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- enable_disable_none_reader bool default false,
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-create table wvp_stream_push (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- total_reader_count character varying(50),
- origin_type integer,
- origin_type_str character varying(50),
- create_time character varying(50),
- alive_second integer,
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- push_ing bool default false,
- self bool default false,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-create table wvp_cloud_record (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time int8,
- end_time int8,
- media_server_id character varying(50),
- file_name character varying(255),
- folder character varying(255),
- file_path character varying(255),
- collect bool default false,
- file_size int8,
- time_len int8,
- constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
-);
-
-create table wvp_user (
- id serial primary key,
- username character varying(255),
- password character varying(255),
- role_id integer,
- create_time character varying(50),
- update_time character varying(50),
- push_key character varying(50),
- constraint uk_user_username unique (username)
-);
-
-create table wvp_user_role (
- id serial primary key,
- name character varying(50),
- authority character varying(50),
- create_time character varying(50),
- update_time character varying(50)
-);
-create table wvp_resources_tree (
- id serial primary key ,
- is_catalog bool default true,
- device_channel_id integer ,
- gb_stream_id integer,
- name character varying(255),
- parentId integer,
- path character varying(255)
-);
-
-
-/*初始数据*/
-INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3');
-INSERT INTO wvp_user_role VALUES (1, 'admin','0','2021-04-13 14:14:57','2021-04-13 14:14:57');
-
-
-
diff --git a/docker/wvp/wvpcode/数据库/2.6.9/更新-mysql-2.6.9.sql b/docker/wvp/wvpcode/数据库/2.6.9/更新-mysql-2.6.9.sql
deleted file mode 100644
index 735e76d..0000000
--- a/docker/wvp/wvpcode/数据库/2.6.9/更新-mysql-2.6.9.sql
+++ /dev/null
@@ -1,503 +0,0 @@
-
-alter table device
- change deviceId device_id varchar(50) not null;
-
-alter table device
- change streamMode stream_mode varchar(50) null;
-
-alter table device
- change registerTime register_time varchar(50) null;
-
-alter table device
- change keepaliveTime keepalive_time varchar(50) null;
-
-alter table device
- change createTime create_time varchar(50) not null;
-
-alter table device
- change updateTime update_time varchar(50) not null;
-
-alter table device
- change subscribeCycleForCatalog subscribe_cycle_for_catalog bool default false;
-
-alter table device
- change subscribeCycleForMobilePosition subscribe_cycle_for_mobile_position bool default false;
-
-alter table device
- change mobilePositionSubmissionInterval mobile_position_submission_interval int default 5 not null;
-
-alter table device
- change subscribeCycleForAlarm subscribe_cycle_for_alarm bool default false;
-
-alter table device
- change hostAddress host_address varchar(50) null;
-
-alter table device
- change ssrcCheck ssrc_check bool default false;
-
-alter table device
- change geoCoordSys geo_coord_sys varchar(50) not null;
-
-alter table device
-drop column treeType;
-
-alter table device
- change mediaServerId media_server_id varchar(50) default 'auto' null;
-
-alter table device
- change sdpIp sdp_ip varchar(50) null;
-
-alter table device
- change localIp local_ip varchar(50) null;
-
-alter table device
- change asMessageChannel as_message_channel bool default false;
-
-alter table device
- change keepaliveIntervalTime keepalive_interval_time int null;
-
-alter table device
- change online on_line varchar(50) null;
-
-alter table device
- add COLUMN switch_primary_sub_stream bool default false comment '开启主子码流切换的开关(0-不开启,1-开启)现在已知支持设备为 大华、TP——LINK全系设备';
-
-alter table device_alarm
- change deviceId device_id varchar(50) not null;
-
-alter table device_alarm
- change channelId channel_id varchar(50) not null;
-
-alter table device_alarm
- change alarmPriority alarm_priority varchar(50) not null;
-
-alter table device_alarm
- change alarmMethod alarm_method varchar(50) null;
-
-alter table device_alarm
- change alarmTime alarm_time varchar(50) not null;
-
-alter table device_alarm
- change alarmDescription alarm_description varchar(255) null;
-
-alter table device_alarm
- change alarmType alarm_type varchar(50) null;
-
-alter table device_alarm
- change createTime create_time varchar(50) null;
-
-alter table device_channel
- change channelId channel_id varchar(50) not null;
-
-alter table device_channel
- change civilCode civil_code varchar(50) null;
-
-alter table device_channel
- change parentId parent_id varchar(50) null;
-
-alter table device_channel
- change safetyWay safety_way int null;
-
-alter table device_channel
- change registerWay register_way int null;
-
-alter table device_channel
- change certNum cert_num varchar(50) null;
-
-alter table device_channel
- change errCode err_code int null;
-
-alter table device_channel
- change endTime end_time varchar(50) null;
-
-alter table device_channel
- change ipAddress ip_address varchar(50) null;
-
-alter table device_channel
- change PTZType ptz_type int null;
-
-alter table device_channel
- change status status bool default false;
-
-alter table device_channel
- change streamId stream_id varchar(255) null;
-
-alter table device_channel
- change deviceId device_id varchar(50) not null;
-
-
-alter table device_channel
- change hasAudio has_audio bool default false;
-
-alter table device_channel
- change createTime create_time varchar(50) not null;
-
-alter table device_channel
- change updateTime update_time varchar(50) not null;
-
-alter table device_channel
- change subCount sub_count int default 0 null;
-
-alter table device_channel
- change longitudeGcj02 longitude_gcj02 double null;
-
-alter table device_channel
- change latitudeGcj02 latitude_gcj02 double null;
-
-alter table device_channel
- change longitudeWgs84 longitude_wgs84 double null;
-
-alter table device_channel
- change latitudeWgs84 latitude_wgs84 double null;
-
-alter table device_channel
- change businessGroupId business_group_id varchar(50) null;
-
-alter table device_channel
- change gpsTime gps_time varchar(50) null;
-
-alter table device_mobile_position
- change deviceId device_id varchar(50) not null;
-
-alter table device_mobile_position
- change channelId channel_id varchar(50) not null;
-
-alter table device_mobile_position
- change deviceName device_name varchar(255) null;
-
-alter table device_mobile_position
- change reportSource report_source varchar(50) null;
-
-alter table device_mobile_position
- change longitudeGcj02 longitude_gcj02 double null;
-
-alter table device_mobile_position
- change latitudeGcj02 latitude_gcj02 double null;
-
-alter table device_mobile_position
- change longitudeWgs84 longitude_wgs84 double null;
-
-alter table device_mobile_position
- change latitudeWgs84 latitude_wgs84 double null;
-
-alter table device_mobile_position
- change createTime create_time varchar(50) null;
-
-alter table gb_stream
- change gbStreamId gb_stream_id int auto_increment;
-
-alter table gb_stream
- change gbId gb_id varchar(50) not null;
-
-alter table gb_stream
- change streamType stream_type varchar(50) null;
-
-alter table gb_stream
- change mediaServerId media_server_id varchar(50) null;
-
-alter table gb_stream
- change createTime create_time varchar(50) null;
-
-alter table log
- change createTime create_time varchar(50) not null;
-
-alter table media_server
- change hookIp hook_ip varchar(50) not null;
-
-alter table media_server
- add column send_rtp_port_range varchar(50) default null;
-
-alter table media_server
- change sdpIp sdp_ip varchar(50) not null;
-
-alter table media_server
- change streamIp stream_ip varchar(50) not null;
-
-alter table media_server
- change httpPort http_port int not null;
-
-alter table media_server
- change httpSSlPort http_ssl_port int not null;
-
-alter table media_server
- change rtmpPort rtmp_port int not null;
-
-alter table media_server
- change rtmpSSlPort rtmp_ssl_port int not null;
-
-alter table media_server
- change rtpProxyPort rtp_proxy_port int not null;
-
-alter table media_server
- change rtspPort rtsp_port int not null;
-
-alter table media_server
- change rtspSSLPort rtsp_ssl_port int not null;
-
-alter table media_server
- change autoConfig auto_config bool default true;
-
-alter table media_server
- change rtpEnable rtp_enable bool default false;
-
-alter table media_server
- change rtpPortRange rtp_port_range varchar(50) not null;
-
-alter table media_server
- change recordAssistPort record_assist_port int not null;
-
-alter table media_server
- change defaultServer default_server bool default false;
-
-alter table media_server
- change createTime create_time varchar(50) not null;
-
-alter table media_server
- change updateTime update_time varchar(50) not null;
-
-alter table media_server
- change hookAliveInterval hook_alive_interval int not null;
-
-alter table parent_platform
- change serverGBId server_gb_id varchar(50) not null;
-
-alter table parent_platform
- change serverGBDomain server_gb_domain varchar(50) null;
-
-alter table parent_platform
- change serverIP server_ip varchar(50) null;
-
-alter table parent_platform
- change serverPort server_port int null;
-
-alter table parent_platform
- change deviceGBId device_gb_id varchar(50) not null;
-
-alter table parent_platform
- change deviceIp device_ip varchar(50) null;
-
-alter table parent_platform
- change devicePort device_port varchar(50) null;
-
-alter table parent_platform
- change keepTimeout keep_timeout varchar(50) null;
-
-alter table parent_platform
- change characterSet character_set varchar(50) null;
-
-alter table parent_platform
- change catalogId catalog_id varchar(50) not null;
-
-alter table parent_platform
- change startOfflinePush start_offline_push bool default false;
-
-alter table parent_platform
- change administrativeDivision administrative_division varchar(50) not null;
-
-alter table parent_platform
- change catalogGroup catalog_group int default 1 null;
-
-alter table parent_platform
- change createTime create_time varchar(50) null;
-
-alter table parent_platform
- change updateTime update_time varchar(50) null;
-
-alter table parent_platform
-drop column treeType;
-
-alter table parent_platform
- change asMessageChannel as_message_channel bool default false;
-
-alter table parent_platform
- change enable enable bool default false;
-
-alter table parent_platform
- change ptz ptz bool default false;
-
-alter table parent_platform
- change rtcp rtcp bool default false;
-
-alter table parent_platform
- change status status bool default false;
-
-alter table parent_platform
- change status status bool default false;
-
-alter table platform_catalog
- change platformId platform_id varchar(50) not null;
-
-alter table platform_catalog
- change parentId parent_id varchar(50) null;
-
-alter table platform_catalog
- change civilCode civil_code varchar(50) null;
-
-alter table platform_catalog
- change businessGroupId business_group_id varchar(50) null;
-
-alter table platform_gb_channel
- change platformId platform_id varchar(50) not null;
-
-alter table platform_gb_channel
- change catalogId catalog_id varchar(50) not null;
-
-alter table platform_gb_channel
- change deviceChannelId device_channel_id int not null;
-
-alter table platform_gb_stream
- change platformId platform_id varchar(50) not null;
-
-alter table platform_gb_stream
- change catalogId catalog_id varchar(50) not null;
-
-alter table platform_gb_stream
- change gbStreamId gb_stream_id int not null;
-
-alter table stream_proxy
- change mediaServerId media_server_id varchar(50) null;
-
-alter table stream_proxy
- change createTime create_time varchar(50) not null;
-
-alter table stream_proxy
- change updateTime update_time varchar(50) null;
-
-alter table stream_proxy
- change enable_remove_none_reader enable_remove_none_reader bool default false;
-
-alter table stream_proxy
- change enable_disable_none_reader enable_disable_none_reader bool default false;
-
-alter table stream_proxy
- change enable_audio enable_audio bool default false;
-
-alter table stream_proxy
- change enable_mp4 enable_mp4 bool default false;
-
-alter table stream_proxy
- change enable enable bool default false;
-
-alter table stream_push
- change totalReaderCount total_reader_count varchar(50) null;
-
-alter table stream_push
- change originType origin_type int null;
-
-alter table stream_push
- change originTypeStr origin_type_str varchar(50) null;
-
-alter table stream_push
- change createTime create_time varchar(50) null;
-
-alter table stream_push
- change aliveSecond alive_second int null;
-
-alter table stream_push
- change mediaServerId media_server_id varchar(50) null;
-
-alter table stream_push
- change status status bool default false;
-
-alter table stream_push
- change pushTime push_time varchar(50) null;
-
-alter table stream_push
- change updateTime update_time varchar(50) null;
-
-alter table stream_push
- change pushIng push_ing bool default false;
-
-alter table stream_push
- change status status bool default false;
-
-alter table stream_push
- change self self bool default false;
-
-alter table stream_push
-drop column serverId;
-
-
-alter table user
- change roleId role_id int not null;
-
-alter table user
- change createTime create_time varchar(50) not null;
-
-alter table user
- change updateTime update_time varchar(50) not null;
-
-alter table user
- change pushKey push_key varchar(50) null;
-
-alter table user_role
- change createTime create_time varchar(50) not null;
-
-alter table user_role
- change updateTime update_time varchar(50) not null;
-
-rename table device to wvp_device;
-rename table device_alarm to wvp_device_alarm;
-rename table device_channel to wvp_device_channel;
-rename table device_mobile_position to wvp_device_mobile_position;
-rename table gb_stream to wvp_gb_stream;
-rename table log to wvp_log;
-rename table media_server to wvp_media_server;
-rename table parent_platform to wvp_platform;
-rename table platform_catalog to wvp_platform_catalog;
-rename table platform_gb_channel to wvp_platform_gb_channel;
-rename table platform_gb_stream to wvp_platform_gb_stream;
-rename table stream_proxy to wvp_stream_proxy;
-rename table stream_push to wvp_stream_push;
-rename table user to wvp_user;
-rename table user_role to wvp_user_role;
-
-alter table wvp_device add column broadcast_push_after_ack bool default false;
-alter table wvp_device_channel add column custom_name varchar(255) null ;
-alter table wvp_device_channel add column custom_longitude double null ;
-alter table wvp_device_channel add column custom_latitude double null ;
-alter table wvp_device_channel add column custom_ptz_type int null ;
-
-create table wvp_resources_tree (
- id serial primary key ,
- is_catalog bool default true,
- device_channel_id integer ,
- gb_stream_id integer,
- name character varying(255),
- parentId integer,
- path character varying(255)
-);
-
-alter table wvp_platform
- add auto_push_channel bool default false;
-
-alter table wvp_stream_proxy
- add stream_key character varying(255);
-
-create table wvp_cloud_record (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time bigint,
- end_time bigint,
- media_server_id character varying(50),
- file_name character varying(255),
- folder character varying(255),
- file_path character varying(255),
- collect bool default false,
- file_size bigint,
- time_len bigint,
- constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
-);
-
-alter table wvp_media_server
- add record_path character varying(255);
-
-alter table wvp_media_server
- add record_day integer default 7;
-
-alter table wvp_stream_push
- add server_id character varying(50);
-
-
diff --git a/docker/wvp/wvpcode/数据库/2.6.9/更新-postgresql-kingbase-2.6.9.sql b/docker/wvp/wvpcode/数据库/2.6.9/更新-postgresql-kingbase-2.6.9.sql
deleted file mode 100644
index bbee04e..0000000
--- a/docker/wvp/wvpcode/数据库/2.6.9/更新-postgresql-kingbase-2.6.9.sql
+++ /dev/null
@@ -1,505 +0,0 @@
-
-alter table device
- change deviceId device_id varchar(50) not null;
-
-alter table device
- change streamMode stream_mode varchar(50) null;
-
-alter table device
- change registerTime register_time varchar(50) null;
-
-alter table device
- change keepaliveTime keepalive_time varchar(50) null;
-
-alter table device
- change createTime create_time varchar(50) not null;
-
-alter table device
- change updateTime update_time varchar(50) not null;
-
-alter table device
- change subscribeCycleForCatalog subscribe_cycle_for_catalog bool default false;
-
-alter table device
- change subscribeCycleForMobilePosition subscribe_cycle_for_mobile_position bool default false;
-
-alter table device
- change mobilePositionSubmissionInterval mobile_position_submission_interval int default 5 not null;
-
-alter table device
- change subscribeCycleForAlarm subscribe_cycle_for_alarm bool default false;
-
-alter table device
- change hostAddress host_address varchar(50) null;
-
-alter table device
- change ssrcCheck ssrc_check bool default false;
-
-alter table device
- change geoCoordSys geo_coord_sys varchar(50) not null;
-
-alter table device
-drop column treeType;
-
-alter table device
- change mediaServerId media_server_id varchar(50) default 'auto' null;
-
-alter table device
- change sdpIp sdp_ip varchar(50) null;
-
-alter table device
- change localIp local_ip varchar(50) null;
-
-alter table device
- change asMessageChannel as_message_channel bool default false;
-
-alter table device
- change keepaliveIntervalTime keepalive_interval_time int null;
-
-alter table device
- change online on_line varchar(50) null;
-
-alter table device
- add COLUMN switch_primary_sub_stream bool default false comment '开启主子码流切换的开关(0-不开启,1-开启)现在已知支持设备为 大华、TP——LINK全系设备'
-
-
-alter table device_alarm
- change deviceId device_id varchar(50) not null;
-
-alter table device_alarm
- change channelId channel_id varchar(50) not null;
-
-alter table device_alarm
- change alarmPriority alarm_priority varchar(50) not null;
-
-alter table device_alarm
- change alarmMethod alarm_method varchar(50) null;
-
-alter table device_alarm
- change alarmTime alarm_time varchar(50) not null;
-
-alter table device_alarm
- change alarmDescription alarm_description varchar(255) null;
-
-alter table device_alarm
- change alarmType alarm_type varchar(50) null;
-
-alter table device_alarm
- change createTime create_time varchar(50) null;
-
-alter table device_channel
- change channelId channel_id varchar(50) not null;
-
-alter table device_channel
- change civilCode civil_code varchar(50) null;
-
-alter table device_channel
- change parentId parent_id varchar(50) null;
-
-alter table device_channel
- change safetyWay safety_way int null;
-
-alter table device_channel
- change registerWay register_way int null;
-
-alter table device_channel
- change certNum cert_num varchar(50) null;
-
-alter table device_channel
- change errCode err_code int null;
-
-alter table device_channel
- change endTime end_time varchar(50) null;
-
-alter table device_channel
- change ipAddress ip_address varchar(50) null;
-
-alter table device_channel
- change PTZType ptz_type int null;
-
-alter table device_channel
- change status status bool default false;
-
-alter table device_channel
- change streamId stream_id varchar(255) null;
-
-alter table device_channel
- change deviceId device_id varchar(50) not null;
-
-
-alter table device_channel
- change hasAudio has_audio bool default false;
-
-alter table device_channel
- change createTime create_time varchar(50) not null;
-
-alter table device_channel
- change updateTime update_time varchar(50) not null;
-
-alter table device_channel
- change subCount sub_count int default 0 null;
-
-alter table device_channel
- change longitudeGcj02 longitude_gcj02 double null;
-
-alter table device_channel
- change latitudeGcj02 latitude_gcj02 double null;
-
-alter table device_channel
- change longitudeWgs84 longitude_wgs84 double null;
-
-alter table device_channel
- change latitudeWgs84 latitude_wgs84 double null;
-
-alter table device_channel
- change businessGroupId business_group_id varchar(50) null;
-
-alter table device_channel
- change gpsTime gps_time varchar(50) null;
-
-alter table device_mobile_position
- change deviceId device_id varchar(50) not null;
-
-alter table device_mobile_position
- change channelId channel_id varchar(50) not null;
-
-alter table device_mobile_position
- change deviceName device_name varchar(255) null;
-
-alter table device_mobile_position
- change reportSource report_source varchar(50) null;
-
-alter table device_mobile_position
- change longitudeGcj02 longitude_gcj02 double null;
-
-alter table device_mobile_position
- change latitudeGcj02 latitude_gcj02 double null;
-
-alter table device_mobile_position
- change longitudeWgs84 longitude_wgs84 double null;
-
-alter table device_mobile_position
- change latitudeWgs84 latitude_wgs84 double null;
-
-alter table device_mobile_position
- change createTime create_time varchar(50) null;
-
-alter table gb_stream
- change gbStreamId gb_stream_id int auto_increment;
-
-alter table gb_stream
- change gbId gb_id varchar(50) not null;
-
-alter table gb_stream
- change streamType stream_type varchar(50) null;
-
-alter table gb_stream
- change mediaServerId media_server_id varchar(50) null;
-
-alter table gb_stream
- change createTime create_time varchar(50) null;
-
-alter table log
- change createTime create_time varchar(50) not null;
-
-alter table media_server
- change hookIp hook_ip varchar(50) not null;
-
-alter table media_server
- add column send_rtp_port_range varchar(50) default null;
-
-alter table media_server
- change sdpIp sdp_ip varchar(50) not null;
-
-alter table media_server
- change streamIp stream_ip varchar(50) not null;
-
-alter table media_server
- change httpPort http_port int not null;
-
-alter table media_server
- change httpSSlPort http_ssl_port int not null;
-
-alter table media_server
- change rtmpPort rtmp_port int not null;
-
-alter table media_server
- change rtmpSSlPort rtmp_ssl_port int not null;
-
-alter table media_server
- change rtpProxyPort rtp_proxy_port int not null;
-
-alter table media_server
- change rtspPort rtsp_port int not null;
-
-alter table media_server
- change rtspSSLPort rtsp_ssl_port int not null;
-
-alter table media_server
- change autoConfig auto_config bool default true;
-
-alter table media_server
- change rtpEnable rtp_enable bool default false;
-
-alter table media_server
- change rtpPortRange rtp_port_range varchar(50) not null;
-
-alter table media_server
- change recordAssistPort record_assist_port int not null;
-
-alter table media_server
- change defaultServer default_server bool default false;
-
-alter table media_server
- change createTime create_time varchar(50) not null;
-
-alter table media_server
- change updateTime update_time varchar(50) not null;
-
-alter table media_server
- change hookAliveInterval hook_alive_interval int not null;
-
-alter table parent_platform
- change serverGBId server_gb_id varchar(50) not null;
-
-alter table parent_platform
- change serverGBDomain server_gb_domain varchar(50) null;
-
-alter table parent_platform
- change serverIP server_ip varchar(50) null;
-
-alter table parent_platform
- change serverPort server_port int null;
-
-alter table parent_platform
- change deviceGBId device_gb_id varchar(50) not null;
-
-alter table parent_platform
- change deviceIp device_ip varchar(50) null;
-
-alter table parent_platform
- change devicePort device_port varchar(50) null;
-
-alter table parent_platform
- change keepTimeout keep_timeout varchar(50) null;
-
-alter table parent_platform
- change characterSet character_set varchar(50) null;
-
-alter table parent_platform
- change catalogId catalog_id varchar(50) not null;
-
-alter table parent_platform
- change startOfflinePush start_offline_push bool default false;
-
-alter table parent_platform
- change administrativeDivision administrative_division varchar(50) not null;
-
-alter table parent_platform
- change catalogGroup catalog_group int default 1 null;
-
-alter table parent_platform
- change createTime create_time varchar(50) null;
-
-alter table parent_platform
- change updateTime update_time varchar(50) null;
-
-alter table parent_platform
-drop column treeType;
-
-alter table parent_platform
- change asMessageChannel as_message_channel bool default false;
-
-alter table parent_platform
- change enable enable bool default false;
-
-alter table parent_platform
- change ptz ptz bool default false;
-
-alter table parent_platform
- change rtcp rtcp bool default false;
-
-alter table parent_platform
- change status status bool default false;
-
-alter table parent_platform
- change status status bool default false;
-
-alter table platform_catalog
- change platformId platform_id varchar(50) not null;
-
-alter table platform_catalog
- change parentId parent_id varchar(50) null;
-
-alter table platform_catalog
- change civilCode civil_code varchar(50) null;
-
-alter table platform_catalog
- change businessGroupId business_group_id varchar(50) null;
-
-alter table platform_gb_channel
- change platformId platform_id varchar(50) not null;
-
-alter table platform_gb_channel
- change catalogId catalog_id varchar(50) not null;
-
-alter table platform_gb_channel
- change deviceChannelId device_channel_id int not null;
-
-alter table platform_gb_stream
- change platformId platform_id varchar(50) not null;
-
-alter table platform_gb_stream
- change catalogId catalog_id varchar(50) not null;
-
-alter table platform_gb_stream
- change gbStreamId gb_stream_id int not null;
-
-alter table stream_proxy
- change mediaServerId media_server_id varchar(50) null;
-
-alter table stream_proxy
- change createTime create_time varchar(50) not null;
-
-alter table stream_proxy
- change updateTime update_time varchar(50) null;
-
-alter table stream_proxy
- change enable_remove_none_reader enable_remove_none_reader bool default false;
-
-alter table stream_proxy
- change enable_disable_none_reader enable_disable_none_reader bool default false;
-
-alter table stream_proxy
- change enable_audio enable_audio bool default false;
-
-alter table stream_proxy
- change enable_mp4 enable_mp4 bool default false;
-
-alter table stream_proxy
- change enable enable bool default false;
-
-alter table stream_push
- change totalReaderCount total_reader_count varchar(50) null;
-
-alter table stream_push
- change originType origin_type int null;
-
-alter table stream_push
- change originTypeStr origin_type_str varchar(50) null;
-
-alter table stream_push
- change createTime create_time varchar(50) null;
-
-alter table stream_push
- change aliveSecond alive_second int null;
-
-alter table stream_push
- change mediaServerId media_server_id varchar(50) null;
-
-alter table stream_push
- change status status bool default false;
-
-alter table stream_push
- change pushTime push_time varchar(50) null;
-
-alter table stream_push
- change updateTime update_time varchar(50) null;
-
-alter table stream_push
- change pushIng push_ing bool default false;
-
-alter table stream_push
- change status status bool default false;
-
-alter table stream_push
- change self self bool default false;
-
-alter table stream_push
-drop column serverId;
-
-
-alter table user
- change roleId role_id int not null;
-
-alter table user
- change createTime create_time varchar(50) not null;
-
-alter table user
- change updateTime update_time varchar(50) not null;
-
-alter table user
- change pushKey push_key varchar(50) null;
-
-alter table user_role
- change createTime create_time varchar(50) not null;
-
-alter table user_role
- change updateTime update_time varchar(50) not null;
-
-rename table device to wvp_device;
-rename table device_alarm to wvp_device_alarm;
-rename table device_channel to wvp_device_channel;
-rename table device_mobile_position to wvp_device_mobile_position;
-rename table gb_stream to wvp_gb_stream;
-rename table log to wvp_log;
-rename table media_server to wvp_media_server;
-rename table parent_platform to wvp_platform;
-rename table platform_catalog to wvp_platform_catalog;
-rename table platform_gb_channel to wvp_platform_gb_channel;
-rename table platform_gb_stream to wvp_platform_gb_stream;
-rename table stream_proxy to wvp_stream_proxy;
-rename table stream_push to wvp_stream_push;
-rename table user to wvp_user;
-rename table user_role to wvp_user_role;
-
-alter table wvp_device add column broadcast_push_after_ack bool default false;
-alter table wvp_device_channel add column custom_name varchar(255) null ;
-alter table wvp_device_channel add column custom_longitude double null ;
-alter table wvp_device_channel add column custom_latitude double null ;
-alter table wvp_device_channel add column custom_ptz_type int null ;
-
-create table wvp_resources_tree (
- id serial primary key ,
- is_catalog bool default true,
- device_channel_id integer ,
- gb_stream_id integer,
- name character varying(255),
- parentId integer,
- path character varying(255)
-);
-
-alter table wvp_platform
- add auto_push_channel bool default false;
-
-alter table wvp_stream_proxy
- add stream_key character varying(255);
-
-create table wvp_cloud_record (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time int8,
- end_time int8,
- media_server_id character varying(50),
- file_name character varying(255),
- folder character varying(255),
- file_path character varying(255),
- collect bool default false,
- file_size int8,
- time_len int8,
- constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
-);
-
-alter table wvp_media_server
- add record_path character varying(255);
-
-alter table wvp_media_server
- add record_day integer default 7;
-
-alter table wvp_stream_push
- add server_id character varying(50);
-
-
-
diff --git a/docker/wvp/wvpcode/数据库/2.7.0/初始化-mysql-2.7.0.sql b/docker/wvp/wvpcode/数据库/2.7.0/初始化-mysql-2.7.0.sql
deleted file mode 100644
index 147ed63..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.0/初始化-mysql-2.7.0.sql
+++ /dev/null
@@ -1,335 +0,0 @@
-/*建表*/
-create table wvp_device (
- id serial primary key ,
- device_id character varying(50) not null ,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50),
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- keepalive_interval_time integer,
- broadcast_push_after_ack bool default false,
- constraint uk_device_device unique (device_id)
-);
-
-create table wvp_device_alarm (
- id serial primary key ,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- alarm_priority character varying(50),
- alarm_method character varying(50),
- alarm_time character varying(50),
- alarm_description character varying(255),
- longitude double precision,
- latitude double precision,
- alarm_type character varying(50),
- create_time character varying(50) not null
-);
-
-create table wvp_device_channel (
- id serial primary key ,
- channel_id character varying(50) not null,
- name character varying(255),
- custom_name character varying(255),
- manufacture character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy character varying(50),
- ip_address character varying(50),
- port integer,
- password character varying(255),
- ptz_type integer,
- custom_ptz_type integer,
- status bool default false,
- longitude double precision,
- custom_longitude double precision,
- latitude double precision,
- custom_latitude double precision,
- stream_id character varying(255),
- device_id character varying(50) not null,
- parental character varying(50),
- has_audio bool default false,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- business_group_id character varying(50),
- gps_time character varying(50),
- stream_identification character varying(50),
- constraint uk_wvp_device_channel_unique_device_channel unique (device_id, channel_id)
-);
-
-create table wvp_device_mobile_position (
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- create_time character varying(50)
-);
-
-create table wvp_gb_stream (
- gb_stream_id serial primary key,
- app character varying(255) not null,
- stream character varying(255) not null,
- gb_id character varying(50) not null,
- name character varying(255),
- longitude double precision,
- latitude double precision,
- stream_type character varying(50),
- media_server_id character varying(50),
- create_time character varying(50),
- constraint uk_gb_stream_unique_gb_id unique (gb_id),
- constraint uk_gb_stream_unique_app_stream unique (app, stream)
-);
-
-create table wvp_log (
- id serial primary key ,
- name character varying(50),
- type character varying(50),
- uri character varying(200),
- address character varying(50),
- result character varying(50),
- timing bigint,
- username character varying(50),
- create_time character varying(50)
-);
-
-create table wvp_media_server (
- id character varying(255) primary key ,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port)
-);
-
-create table wvp_platform (
- id serial primary key ,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- character_set character varying(50),
- catalog_id character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- start_offline_push bool default false,
- administrative_division character varying(50),
- catalog_group integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- auto_push_channel bool default false,
- send_stream_ip character varying(50),
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-create table wvp_platform_catalog (
- id character varying(50),
- platform_id character varying(50),
- name character varying(255),
- parent_id character varying(50),
- civil_code character varying(50),
- business_group_id character varying(50),
- constraint uk_platform_catalog_id_platform_id unique (id, platform_id)
-);
-
-create table wvp_platform_gb_channel (
- id serial primary key ,
- platform_id character varying(50),
- catalog_id character varying(50),
- device_channel_id integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, catalog_id, device_channel_id)
-);
-
-create table wvp_platform_gb_stream (
- id serial primary key,
- platform_id character varying(50),
- catalog_id character varying(50),
- gb_stream_id integer,
- constraint uk_platform_gb_stream_platform_id_catalog_id_gb_stream_id unique (platform_id, catalog_id, gb_stream_id)
-);
-
-create table wvp_stream_proxy (
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- url character varying(255),
- src_url character varying(255),
- dst_url character varying(255),
- timeout_ms integer,
- ffmpeg_cmd_key character varying(255),
- rtp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- enable bool default false,
- status boolean,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- enable_disable_none_reader bool default false,
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-create table wvp_stream_push (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- total_reader_count character varying(50),
- origin_type integer,
- origin_type_str character varying(50),
- create_time character varying(50),
- alive_second integer,
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- push_ing bool default false,
- self bool default false,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-create table wvp_cloud_record (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time bigint,
- end_time bigint,
- media_server_id character varying(50),
- file_name character varying(255),
- folder character varying(255),
- file_path character varying(255),
- collect bool default false,
- file_size bigint,
- time_len bigint,
- constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
-);
-
-create table wvp_user (
- id serial primary key,
- username character varying(255),
- password character varying(255),
- role_id integer,
- create_time character varying(50),
- update_time character varying(50),
- push_key character varying(50),
- constraint uk_user_username unique (username)
-);
-
-create table wvp_user_role (
- id serial primary key,
- name character varying(50),
- authority character varying(50),
- create_time character varying(50),
- update_time character varying(50)
-);
-create table wvp_resources_tree (
- id serial primary key ,
- is_catalog bool default true,
- device_channel_id integer ,
- gb_stream_id integer,
- name character varying(255),
- parentId integer,
- path character varying(255)
-);
-create table wvp_user_api_key (
- id serial primary key ,
- user_id bigint,
- app character varying(255) ,
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-
-/*初始数据*/
-INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3');
-INSERT INTO wvp_user_role VALUES (1, 'admin','0','2021-04-13 14:14:57','2021-04-13 14:14:57');
-
-
-
diff --git a/docker/wvp/wvpcode/数据库/2.7.0/初始化-postgresql-kingbase-2.7.0.sql b/docker/wvp/wvpcode/数据库/2.7.0/初始化-postgresql-kingbase-2.7.0.sql
deleted file mode 100644
index 790316d..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.0/初始化-postgresql-kingbase-2.7.0.sql
+++ /dev/null
@@ -1,334 +0,0 @@
-/*建表*/
-create table wvp_device (
- id serial primary key ,
- device_id character varying(50) not null ,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50),
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- keepalive_interval_time integer,
- broadcast_push_after_ack bool default false,
- constraint uk_device_device unique (device_id)
-);
-
-create table wvp_device_alarm (
- id serial primary key ,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- alarm_priority character varying(50),
- alarm_method character varying(50),
- alarm_time character varying(50),
- alarm_description character varying(255),
- longitude double precision,
- latitude double precision,
- alarm_type character varying(50),
- create_time character varying(50) not null
-);
-
-create table wvp_device_channel (
- id serial primary key ,
- channel_id character varying(50) not null,
- name character varying(255),
- custom_name character varying(255),
- manufacture character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy character varying(50),
- ip_address character varying(50),
- port integer,
- password character varying(255),
- ptz_type integer,
- custom_ptz_type integer,
- status bool default false,
- longitude double precision,
- custom_longitude double precision,
- latitude double precision,
- custom_latitude double precision,
- stream_id character varying(255),
- device_id character varying(50) not null,
- parental character varying(50),
- has_audio bool default false,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- business_group_id character varying(50),
- gps_time character varying(50),
- stream_identification character varying(50),
- constraint uk_wvp_device_channel_unique_device_channel unique (device_id, channel_id)
-);
-
-create table wvp_device_mobile_position (
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- create_time character varying(50)
-);
-
-create table wvp_gb_stream (
- gb_stream_id serial primary key,
- app character varying(255) not null,
- stream character varying(255) not null,
- gb_id character varying(50) not null,
- name character varying(255),
- longitude double precision,
- latitude double precision,
- stream_type character varying(50),
- media_server_id character varying(50),
- create_time character varying(50),
- constraint uk_gb_stream_unique_gb_id unique (gb_id),
- constraint uk_gb_stream_unique_app_stream unique (app, stream)
-);
-
-create table wvp_log (
- id serial primary key ,
- name character varying(50),
- type character varying(50),
- uri character varying(200),
- address character varying(50),
- result character varying(50),
- timing bigint,
- username character varying(50),
- create_time character varying(50)
-);
-
-create table wvp_media_server (
- id character varying(255) primary key ,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port)
-);
-
-create table wvp_platform (
- id serial primary key ,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- character_set character varying(50),
- catalog_id character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- start_offline_push bool default false,
- administrative_division character varying(50),
- catalog_group integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- auto_push_channel bool default false,
- send_stream_ip character varying(50),
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-create table wvp_platform_catalog (
- id character varying(50),
- platform_id character varying(50),
- name character varying(255),
- parent_id character varying(50),
- civil_code character varying(50),
- business_group_id character varying(50),
- constraint uk_platform_catalog_id_platform_id unique (id, platform_id)
-);
-
-create table wvp_platform_gb_channel (
- id serial primary key ,
- platform_id character varying(50),
- catalog_id character varying(50),
- device_channel_id integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, catalog_id, device_channel_id)
-);
-
-create table wvp_platform_gb_stream (
- id serial primary key,
- platform_id character varying(50),
- catalog_id character varying(50),
- gb_stream_id integer,
- constraint uk_platform_gb_stream_platform_id_catalog_id_gb_stream_id unique (platform_id, catalog_id, gb_stream_id)
-);
-
-create table wvp_stream_proxy (
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- url character varying(255),
- src_url character varying(255),
- dst_url character varying(255),
- timeout_ms integer,
- ffmpeg_cmd_key character varying(255),
- rtp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- enable bool default false,
- status boolean,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- enable_disable_none_reader bool default false,
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-create table wvp_stream_push (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- total_reader_count character varying(50),
- origin_type integer,
- origin_type_str character varying(50),
- create_time character varying(50),
- alive_second integer,
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- push_ing bool default false,
- self bool default false,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-create table wvp_cloud_record (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time int8,
- end_time int8,
- media_server_id character varying(50),
- file_name character varying(255),
- folder character varying(255),
- file_path character varying(255),
- collect bool default false,
- file_size int8,
- time_len int8,
- constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
-);
-
-create table wvp_user (
- id serial primary key,
- username character varying(255),
- password character varying(255),
- role_id integer,
- create_time character varying(50),
- update_time character varying(50),
- push_key character varying(50),
- constraint uk_user_username unique (username)
-);
-
-create table wvp_user_role (
- id serial primary key,
- name character varying(50),
- authority character varying(50),
- create_time character varying(50),
- update_time character varying(50)
-);
-create table wvp_resources_tree (
- id serial primary key ,
- is_catalog bool default true,
- device_channel_id integer ,
- gb_stream_id integer,
- name character varying(255),
- parentId integer,
- path character varying(255)
-);
-create table wvp_user_api_key (
- id serial primary key ,
- user_id bigint,
- app character varying(255) ,
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-/*初始数据*/
-INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3');
-INSERT INTO wvp_user_role VALUES (1, 'admin','0','2021-04-13 14:14:57','2021-04-13 14:14:57');
-
-
-
diff --git a/docker/wvp/wvpcode/数据库/2.7.0/更新-mysql-2.7.0.sql b/docker/wvp/wvpcode/数据库/2.7.0/更新-mysql-2.7.0.sql
deleted file mode 100644
index b14a5c8..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.0/更新-mysql-2.7.0.sql
+++ /dev/null
@@ -1,18 +0,0 @@
-alter table wvp_device_channel
- add stream_identification character varying(50);
-
-alter table wvp_device
- drop switch_primary_sub_stream;
-
-# 第一个补丁包
-alter table wvp_platform
- add send_stream_ip character varying(50);
-
-alter table wvp_device
- change on_line on_line bool default false;
-
-alter table wvp_device
- change id id serial primary key;
-
-alter table wvp_device
- change ssrc_check ssrc_check bool default false;
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/数据库/2.7.0/更新-postgresql-kingbase-2.7.0.sql b/docker/wvp/wvpcode/数据库/2.7.0/更新-postgresql-kingbase-2.7.0.sql
deleted file mode 100644
index b14a5c8..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.0/更新-postgresql-kingbase-2.7.0.sql
+++ /dev/null
@@ -1,18 +0,0 @@
-alter table wvp_device_channel
- add stream_identification character varying(50);
-
-alter table wvp_device
- drop switch_primary_sub_stream;
-
-# 第一个补丁包
-alter table wvp_platform
- add send_stream_ip character varying(50);
-
-alter table wvp_device
- change on_line on_line bool default false;
-
-alter table wvp_device
- change id id serial primary key;
-
-alter table wvp_device
- change ssrc_check ssrc_check bool default false;
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/数据库/2.7.1/初始化-mysql-2.7.1.sql b/docker/wvp/wvpcode/数据库/2.7.1/初始化-mysql-2.7.1.sql
deleted file mode 100644
index 98d4340..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.1/初始化-mysql-2.7.1.sql
+++ /dev/null
@@ -1,342 +0,0 @@
-/*建表*/
-create table wvp_device (
- id serial primary key ,
- device_id character varying(50) not null ,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50),
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- keepalive_interval_time integer,
- broadcast_push_after_ack bool default false,
- constraint uk_device_device unique (device_id)
-);
-
-create table wvp_device_alarm (
- id serial primary key ,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- alarm_priority character varying(50),
- alarm_method character varying(50),
- alarm_time character varying(50),
- alarm_description character varying(255),
- longitude double precision,
- latitude double precision,
- alarm_type character varying(50),
- create_time character varying(50) not null
-);
-
-create table wvp_device_channel (
- id serial primary key ,
- channel_id character varying(50) not null,
- name character varying(255),
- custom_name character varying(255),
- manufacture character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy character varying(50),
- ip_address character varying(50),
- port integer,
- password character varying(255),
- ptz_type integer,
- custom_ptz_type integer,
- status bool default false,
- longitude double precision,
- custom_longitude double precision,
- latitude double precision,
- custom_latitude double precision,
- stream_id character varying(255),
- device_id character varying(50) not null,
- parental character varying(50),
- has_audio bool default false,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- business_group_id character varying(50),
- gps_time character varying(50),
- stream_identification character varying(50),
- constraint uk_wvp_device_channel_unique_device_channel unique (device_id, channel_id)
-);
-
-create table wvp_device_mobile_position (
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- create_time character varying(50)
-);
-
-create table wvp_gb_stream (
- gb_stream_id serial primary key,
- app character varying(255) not null,
- stream character varying(255) not null,
- gb_id character varying(50) not null,
- name character varying(255),
- longitude double precision,
- latitude double precision,
- stream_type character varying(50),
- media_server_id character varying(50),
- create_time character varying(50),
- constraint uk_gb_stream_unique_gb_id unique (gb_id),
- constraint uk_gb_stream_unique_app_stream unique (app, stream)
-);
-
-create table wvp_log (
- id serial primary key ,
- name character varying(50),
- type character varying(50),
- uri character varying(200),
- address character varying(50),
- result character varying(50),
- timing bigint,
- username character varying(50),
- create_time character varying(50)
-);
-
-create table wvp_media_server (
- id character varying(255) primary key ,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- flv_port integer,
- flv_ssl_port integer,
- ws_flv_port integer,
- ws_flv_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- type character varying(50) default 'zlm',
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- transcode_suffix character varying(255),
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port)
-);
-
-create table wvp_platform (
- id serial primary key ,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- character_set character varying(50),
- catalog_id character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- start_offline_push bool default false,
- administrative_division character varying(50),
- catalog_group integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- auto_push_channel bool default false,
- send_stream_ip character varying(50),
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-create table wvp_platform_catalog (
- id character varying(50),
- platform_id character varying(50),
- name character varying(255),
- parent_id character varying(50),
- civil_code character varying(50),
- business_group_id character varying(50),
- constraint uk_platform_catalog_id_platform_id unique (id, platform_id)
-);
-
-create table wvp_platform_gb_channel (
- id serial primary key ,
- platform_id character varying(50),
- catalog_id character varying(50),
- device_channel_id integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, catalog_id, device_channel_id)
-);
-
-create table wvp_platform_gb_stream (
- id serial primary key,
- platform_id character varying(50),
- catalog_id character varying(50),
- gb_stream_id integer,
- constraint uk_platform_gb_stream_platform_id_catalog_id_gb_stream_id unique (platform_id, catalog_id, gb_stream_id)
-);
-
-create table wvp_stream_proxy (
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- url character varying(255),
- src_url character varying(255),
- dst_url character varying(255),
- timeout_ms integer,
- ffmpeg_cmd_key character varying(255),
- rtp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- enable bool default false,
- status boolean,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- enable_disable_none_reader bool default false,
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-create table wvp_stream_push (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- total_reader_count character varying(50),
- origin_type integer,
- origin_type_str character varying(50),
- create_time character varying(50),
- alive_second integer,
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- push_ing bool default false,
- self bool default false,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-create table wvp_cloud_record (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time bigint,
- end_time bigint,
- media_server_id character varying(50),
- file_name character varying(255),
- folder character varying(255),
- file_path character varying(255),
- collect bool default false,
- file_size bigint,
- time_len bigint,
- constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
-);
-
-create table wvp_user (
- id serial primary key,
- username character varying(255),
- password character varying(255),
- role_id integer,
- create_time character varying(50),
- update_time character varying(50),
- push_key character varying(50),
- constraint uk_user_username unique (username)
-);
-
-create table wvp_user_role (
- id serial primary key,
- name character varying(50),
- authority character varying(50),
- create_time character varying(50),
- update_time character varying(50)
-);
-create table wvp_resources_tree (
- id serial primary key ,
- is_catalog bool default true,
- device_channel_id integer ,
- gb_stream_id integer,
- name character varying(255),
- parentId integer,
- path character varying(255)
-);
-
-create table wvp_user_api_key (
- id serial primary key ,
- user_id bigint,
- app character varying(255) ,
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-
-/*初始数据*/
-INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3');
-INSERT INTO wvp_user_role VALUES (1, 'admin','0','2021-04-13 14:14:57','2021-04-13 14:14:57');
-
-
-
diff --git a/docker/wvp/wvpcode/数据库/2.7.1/初始化-postgresql-kingbase-2.7.1.sql b/docker/wvp/wvpcode/数据库/2.7.1/初始化-postgresql-kingbase-2.7.1.sql
deleted file mode 100644
index eb2bc83..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.1/初始化-postgresql-kingbase-2.7.1.sql
+++ /dev/null
@@ -1,342 +0,0 @@
-/*建表*/
-create table wvp_device (
- id serial primary key ,
- device_id character varying(50) not null ,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50),
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- keepalive_interval_time integer,
- broadcast_push_after_ack bool default false,
- constraint uk_device_device unique (device_id)
-);
-
-create table wvp_device_alarm (
- id serial primary key ,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- alarm_priority character varying(50),
- alarm_method character varying(50),
- alarm_time character varying(50),
- alarm_description character varying(255),
- longitude double precision,
- latitude double precision,
- alarm_type character varying(50),
- create_time character varying(50) not null
-);
-
-create table wvp_device_channel (
- id serial primary key ,
- channel_id character varying(50) not null,
- name character varying(255),
- custom_name character varying(255),
- manufacture character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy character varying(50),
- ip_address character varying(50),
- port integer,
- password character varying(255),
- ptz_type integer,
- custom_ptz_type integer,
- status bool default false,
- longitude double precision,
- custom_longitude double precision,
- latitude double precision,
- custom_latitude double precision,
- stream_id character varying(255),
- device_id character varying(50) not null,
- parental character varying(50),
- has_audio bool default false,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- business_group_id character varying(50),
- gps_time character varying(50),
- stream_identification character varying(50),
- constraint uk_wvp_device_channel_unique_device_channel unique (device_id, channel_id)
-);
-
-create table wvp_device_mobile_position (
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- longitude_gcj02 double precision,
- latitude_gcj02 double precision,
- longitude_wgs84 double precision,
- latitude_wgs84 double precision,
- create_time character varying(50)
-);
-
-create table wvp_gb_stream (
- gb_stream_id serial primary key,
- app character varying(255) not null,
- stream character varying(255) not null,
- gb_id character varying(50) not null,
- name character varying(255),
- longitude double precision,
- latitude double precision,
- stream_type character varying(50),
- media_server_id character varying(50),
- create_time character varying(50),
- constraint uk_gb_stream_unique_gb_id unique (gb_id),
- constraint uk_gb_stream_unique_app_stream unique (app, stream)
-);
-
-create table wvp_log (
- id serial primary key ,
- name character varying(50),
- type character varying(50),
- uri character varying(200),
- address character varying(50),
- result character varying(50),
- timing bigint,
- username character varying(50),
- create_time character varying(50)
-);
-
-create table wvp_media_server (
- id character varying(255) primary key ,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- flv_port integer,
- flv_ssl_port integer,
- ws_flv_port integer,
- ws_flv_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- type character varying(50) default 'zlm',
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- transcode_suffix character varying(255),
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port)
-);
-
-create table wvp_platform (
- id serial primary key ,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- character_set character varying(50),
- catalog_id character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- start_offline_push bool default false,
- administrative_division character varying(50),
- catalog_group integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- auto_push_channel bool default false,
- send_stream_ip character varying(50),
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-create table wvp_platform_catalog (
- id character varying(50),
- platform_id character varying(50),
- name character varying(255),
- parent_id character varying(50),
- civil_code character varying(50),
- business_group_id character varying(50),
- constraint uk_platform_catalog_id_platform_id unique (id, platform_id)
-);
-
-create table wvp_platform_gb_channel (
- id serial primary key ,
- platform_id character varying(50),
- catalog_id character varying(50),
- device_channel_id integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, catalog_id, device_channel_id)
-);
-
-create table wvp_platform_gb_stream (
- id serial primary key,
- platform_id character varying(50),
- catalog_id character varying(50),
- gb_stream_id integer,
- constraint uk_platform_gb_stream_platform_id_catalog_id_gb_stream_id unique (platform_id, catalog_id, gb_stream_id)
-);
-
-create table wvp_stream_proxy (
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- url character varying(255),
- src_url character varying(255),
- dst_url character varying(255),
- timeout_ms integer,
- ffmpeg_cmd_key character varying(255),
- rtp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- enable bool default false,
- status boolean,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- enable_disable_none_reader bool default false,
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-create table wvp_stream_push (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- total_reader_count character varying(50),
- origin_type integer,
- origin_type_str character varying(50),
- create_time character varying(50),
- alive_second integer,
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- push_ing bool default false,
- self bool default false,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-create table wvp_cloud_record (
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time int8,
- end_time int8,
- media_server_id character varying(50),
- file_name character varying(255),
- folder character varying(255),
- file_path character varying(255),
- collect bool default false,
- file_size int8,
- time_len int8,
- constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
-);
-
-create table wvp_user (
- id serial primary key,
- username character varying(255),
- password character varying(255),
- role_id integer,
- create_time character varying(50),
- update_time character varying(50),
- push_key character varying(50),
- constraint uk_user_username unique (username)
-);
-
-create table wvp_user_role (
- id serial primary key,
- name character varying(50),
- authority character varying(50),
- create_time character varying(50),
- update_time character varying(50)
-);
-create table wvp_resources_tree (
- id serial primary key ,
- is_catalog bool default true,
- device_channel_id integer ,
- gb_stream_id integer,
- name character varying(255),
- parentId integer,
- path character varying(255)
-);
-
-create table wvp_user_api_key (
- id serial primary key ,
- user_id bigint,
- app character varying(255) ,
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-
-/*初始数据*/
-INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3');
-INSERT INTO wvp_user_role VALUES (1, 'admin','0','2021-04-13 14:14:57','2021-04-13 14:14:57');
-
-
-
diff --git a/docker/wvp/wvpcode/数据库/2.7.1/更新-mysql-2.7.1.sql b/docker/wvp/wvpcode/数据库/2.7.1/更新-mysql-2.7.1.sql
deleted file mode 100644
index dff8570..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.1/更新-mysql-2.7.1.sql
+++ /dev/null
@@ -1,26 +0,0 @@
-alter table wvp_media_server
- add transcode_suffix character varying(255);
-
-alter table wvp_media_server
- add type character varying(50) default 'zlm';
-
-alter table wvp_media_server
- add flv_port integer;
-alter table wvp_media_server
- add flv_ssl_port integer;
-alter table wvp_media_server
- add ws_flv_port integer;
-alter table wvp_media_server
- add ws_flv_ssl_port integer;
-
-create table wvp_user_api_key (
- id serial primary key ,
- user_id bigint,
- app character varying(255) ,
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/数据库/2.7.1/更新-postgresql-kingbase-2.7.1.sql b/docker/wvp/wvpcode/数据库/2.7.1/更新-postgresql-kingbase-2.7.1.sql
deleted file mode 100644
index dff8570..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.1/更新-postgresql-kingbase-2.7.1.sql
+++ /dev/null
@@ -1,26 +0,0 @@
-alter table wvp_media_server
- add transcode_suffix character varying(255);
-
-alter table wvp_media_server
- add type character varying(50) default 'zlm';
-
-alter table wvp_media_server
- add flv_port integer;
-alter table wvp_media_server
- add flv_ssl_port integer;
-alter table wvp_media_server
- add ws_flv_port integer;
-alter table wvp_media_server
- add ws_flv_ssl_port integer;
-
-create table wvp_user_api_key (
- id serial primary key ,
- user_id bigint,
- app character varying(255) ,
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/数据库/2.7.3/初始化-mysql-2.7.3.sql b/docker/wvp/wvpcode/数据库/2.7.3/初始化-mysql-2.7.3.sql
deleted file mode 100644
index 3d25e59..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.3/初始化-mysql-2.7.3.sql
+++ /dev/null
@@ -1,466 +0,0 @@
-/*建表*/
-drop table IF EXISTS wvp_device;
-create table IF NOT EXISTS wvp_device
-(
- id serial primary key,
- device_id character varying(50) not null,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50) default 'auto',
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- heart_beat_interval integer,
- heart_beat_count integer,
- position_capability integer,
- broadcast_push_after_ack bool default false,
- server_id character varying(50),
- constraint uk_device_device unique (device_id)
-);
-
-drop table IF EXISTS wvp_device_alarm;
-create table IF NOT EXISTS wvp_device_alarm
-(
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- alarm_priority character varying(50),
- alarm_method character varying(50),
- alarm_time character varying(50),
- alarm_description character varying(255),
- longitude double precision,
- latitude double precision,
- alarm_type character varying(50),
- create_time character varying(50) not null
-);
-
-drop table IF EXISTS wvp_device_mobile_position;
-create table IF NOT EXISTS wvp_device_mobile_position
-(
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- create_time character varying(50)
-);
-
-drop table IF EXISTS wvp_device_channel;
-create table IF NOT EXISTS wvp_device_channel
-(
- id serial primary key,
- device_id character varying(50),
- name character varying(255),
- manufacturer character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parental integer,
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy integer,
- ip_address character varying(50),
- port integer,
- password character varying(255),
- status character varying(50),
- longitude double precision,
- latitude double precision,
- ptz_type integer,
- position_type integer,
- room_type integer,
- use_type integer,
- supply_light_type integer,
- direction_type integer,
- resolution character varying(255),
- business_group_id character varying(255),
- download_speed character varying(255),
- svc_space_support_mod integer,
- svc_time_support_mode integer,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- stream_id character varying(255),
- has_audio bool default false,
- gps_time character varying(50),
- stream_identification character varying(50),
- channel_type int default 0 not null,
- gb_device_id character varying(50),
- gb_name character varying(255),
- gb_manufacturer character varying(255),
- gb_model character varying(255),
- gb_owner character varying(255),
- gb_civil_code character varying(255),
- gb_block character varying(255),
- gb_address character varying(255),
- gb_parental integer,
- gb_parent_id character varying(255),
- gb_safety_way integer,
- gb_register_way integer,
- gb_cert_num character varying(50),
- gb_certifiable integer,
- gb_err_code integer,
- gb_end_time character varying(50),
- gb_secrecy integer,
- gb_ip_address character varying(50),
- gb_port integer,
- gb_password character varying(50),
- gb_status character varying(50),
- gb_longitude double,
- gb_latitude double,
- gb_business_group_id character varying(50),
- gb_ptz_type integer,
- gb_position_type integer,
- gb_room_type integer,
- gb_use_type integer,
- gb_supply_light_type integer,
- gb_direction_type integer,
- gb_resolution character varying(255),
- gb_download_speed character varying(255),
- gb_svc_space_support_mod integer,
- gb_svc_time_support_mode integer,
- record_plan_id integer,
- data_type integer not null,
- data_device_id integer not null,
- gps_speed double precision,
- gps_altitude double precision,
- gps_direction double precision,
- index (data_type),
- index (data_device_id),
- constraint uk_wvp_unique_channel unique (gb_device_id)
-);
-
-drop table IF EXISTS wvp_media_server;
-create table IF NOT EXISTS wvp_media_server
-(
- id character varying(255) primary key,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- flv_port integer,
- flv_ssl_port integer,
- ws_flv_port integer,
- ws_flv_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- type character varying(50) default 'zlm',
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- transcode_suffix character varying(255),
- server_id character varying(50),
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port, server_id)
-);
-
-drop table IF EXISTS wvp_platform;
-create table IF NOT EXISTS wvp_platform
-(
- id serial primary key,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- civil_code character varying(50),
- manufacturer character varying(255),
- model character varying(255),
- address character varying(255),
- character_set character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- catalog_group integer,
- register_way integer,
- secrecy integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- catalog_with_platform integer default 1,
- catalog_with_group integer default 1,
- catalog_with_region integer default 1,
- auto_push_channel bool default true,
- send_stream_ip character varying(50),
- server_id character varying(50),
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-drop table IF EXISTS wvp_platform_channel;
-create table IF NOT EXISTS wvp_platform_channel
-(
- id serial primary key,
- platform_id integer,
- device_channel_id integer,
- custom_device_id character varying(50),
- custom_name character varying(255),
- custom_manufacturer character varying(50),
- custom_model character varying(50),
- custom_owner character varying(50),
- custom_civil_code character varying(50),
- custom_block character varying(50),
- custom_address character varying(50),
- custom_parental integer,
- custom_parent_id character varying(50),
- custom_safety_way integer,
- custom_register_way integer,
- custom_cert_num character varying(50),
- custom_certifiable integer,
- custom_err_code integer,
- custom_end_time character varying(50),
- custom_secrecy integer,
- custom_ip_address character varying(50),
- custom_port integer,
- custom_password character varying(255),
- custom_status character varying(50),
- custom_longitude double precision,
- custom_latitude double precision,
- custom_ptz_type integer,
- custom_position_type integer,
- custom_room_type integer,
- custom_use_type integer,
- custom_supply_light_type integer,
- custom_direction_type integer,
- custom_resolution character varying(255),
- custom_business_group_id character varying(255),
- custom_download_speed character varying(255),
- custom_svc_space_support_mod integer,
- custom_svc_time_support_mode integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, device_channel_id),
- constraint uk_platform_gb_channel_device_id unique (custom_device_id)
-);
-
-drop table IF EXISTS wvp_platform_group;
-create table IF NOT EXISTS wvp_platform_group
-(
- id serial primary key,
- platform_id integer,
- group_id integer,
- constraint uk_wvp_platform_group_platform_id_group_id unique (platform_id, group_id)
-);
-
-drop table IF EXISTS wvp_platform_region;
-create table IF NOT EXISTS wvp_platform_region
-(
- id serial primary key,
- platform_id integer,
- region_id integer,
- constraint uk_wvp_platform_region_platform_id_group_id unique (platform_id, region_id)
-);
-
-drop table IF EXISTS wvp_stream_proxy;
-create table IF NOT EXISTS wvp_stream_proxy
-(
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- src_url character varying(255),
- timeout integer,
- ffmpeg_cmd_key character varying(255),
- rtsp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- pulling bool default false,
- enable bool default false,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- server_id character varying(50),
- enable_disable_none_reader bool default false,
- relates_media_server_id character varying(50),
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-drop table IF EXISTS wvp_stream_push;
-create table IF NOT EXISTS wvp_stream_push
-(
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- create_time character varying(50),
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- pushing bool default false,
- self bool default false,
- start_offline_push bool default true,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-
-drop table IF EXISTS wvp_cloud_record;
-create table IF NOT EXISTS wvp_cloud_record
-(
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time bigint,
- end_time bigint,
- media_server_id character varying(50),
- server_id character varying(50),
- file_name character varying(255),
- folder character varying(500),
- file_path character varying(500),
- collect bool default false,
- file_size bigint,
- time_len double precision
-);
-
-drop table IF EXISTS wvp_user;
-create table IF NOT EXISTS wvp_user
-(
- id serial primary key,
- username character varying(255),
- password character varying(255),
- role_id integer,
- create_time character varying(50),
- update_time character varying(50),
- push_key character varying(50),
- constraint uk_user_username unique (username)
-);
-
-drop table IF EXISTS wvp_user_role;
-create table IF NOT EXISTS wvp_user_role
-(
- id serial primary key,
- name character varying(50),
- authority character varying(50),
- create_time character varying(50),
- update_time character varying(50)
-);
-
-
-drop table IF EXISTS wvp_user_api_key;
-create table IF NOT EXISTS wvp_user_api_key
-(
- id serial primary key,
- user_id bigint,
- app character varying(255),
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-
-/*初始数据*/
-INSERT INTO wvp_user
-VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 1, '2021-04-13 14:14:57', '2021-04-13 14:14:57',
- '3e80d1762a324d5b0ff636e0bd16f1e3');
-INSERT INTO wvp_user_role
-VALUES (1, 'admin', '0', '2021-04-13 14:14:57', '2021-04-13 14:14:57');
-
-drop table IF EXISTS wvp_common_group;
-create table IF NOT EXISTS wvp_common_group
-(
- id serial primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- business_group varchar(50) NOT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- civil_code varchar(50) default null,
- constraint uk_common_group_device_platform unique (device_id)
-);
-
-drop table IF EXISTS wvp_common_region;
-create table IF NOT EXISTS wvp_common_region
-(
- id serial primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- constraint uk_common_region_device_id unique (device_id)
-);
-
-drop table IF EXISTS wvp_record_plan;
-create table IF NOT EXISTS wvp_record_plan
-(
- id serial primary key,
- snap bool default false,
- name varchar(255) NOT NULL,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-drop table IF EXISTS wvp_record_plan_item;
-create table IF NOT EXISTS wvp_record_plan_item
-(
- id serial primary key,
- start int,
- stop int,
- week_day int,
- plan_id int,
- create_time character varying(50),
- update_time character varying(50)
-);
-
diff --git a/docker/wvp/wvpcode/数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql b/docker/wvp/wvpcode/数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql
deleted file mode 100644
index 524fdbe..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql
+++ /dev/null
@@ -1,467 +0,0 @@
-/*建表*/
-drop table IF EXISTS wvp_device;
-create table IF NOT EXISTS wvp_device
-(
- id serial primary key,
- device_id character varying(50) not null,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50) default 'auto',
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- heart_beat_interval integer,
- heart_beat_count integer,
- position_capability integer,
- broadcast_push_after_ack bool default false,
- server_id character varying(50),
- constraint uk_device_device unique (device_id)
-);
-
-drop table IF EXISTS wvp_device_alarm;
-create table IF NOT EXISTS wvp_device_alarm
-(
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- alarm_priority character varying(50),
- alarm_method character varying(50),
- alarm_time character varying(50),
- alarm_description character varying(255),
- longitude double precision,
- latitude double precision,
- alarm_type character varying(50),
- create_time character varying(50) not null
-);
-
-drop table IF EXISTS wvp_device_mobile_position;
-create table IF NOT EXISTS wvp_device_mobile_position
-(
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- create_time character varying(50)
-);
-
-drop table IF EXISTS wvp_device_channel;
-create table IF NOT EXISTS wvp_device_channel
-(
- id serial primary key,
- device_id character varying(50),
- name character varying(255),
- manufacturer character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parental integer,
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy integer,
- ip_address character varying(50),
- port integer,
- password character varying(255),
- status character varying(50),
- longitude double precision,
- latitude double precision,
- ptz_type integer,
- position_type integer,
- room_type integer,
- use_type integer,
- supply_light_type integer,
- direction_type integer,
- resolution character varying(255),
- business_group_id character varying(255),
- download_speed character varying(255),
- svc_space_support_mod integer,
- svc_time_support_mode integer,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- stream_id character varying(255),
- has_audio bool default false,
- gps_time character varying(50),
- stream_identification character varying(50),
- channel_type int default 0 not null,
- gb_device_id character varying(50),
- gb_name character varying(255),
- gb_manufacturer character varying(255),
- gb_model character varying(255),
- gb_owner character varying(255),
- gb_civil_code character varying(255),
- gb_block character varying(255),
- gb_address character varying(255),
- gb_parental integer,
- gb_parent_id character varying(255),
- gb_safety_way integer,
- gb_register_way integer,
- gb_cert_num character varying(50),
- gb_certifiable integer,
- gb_err_code integer,
- gb_end_time character varying(50),
- gb_secrecy integer,
- gb_ip_address character varying(50),
- gb_port integer,
- gb_password character varying(50),
- gb_status character varying(50),
- gb_longitude double precision,
- gb_latitude double precision,
- gb_business_group_id character varying(50),
- gb_ptz_type integer,
- gb_position_type integer,
- gb_room_type integer,
- gb_use_type integer,
- gb_supply_light_type integer,
- gb_direction_type integer,
- gb_resolution character varying(255),
- gb_download_speed character varying(255),
- gb_svc_space_support_mod integer,
- gb_svc_time_support_mode integer,
- record_plan_id integer,
- data_type integer not null,
- data_device_id integer not null,
- gps_speed double precision,
- gps_altitude double precision,
- gps_direction double precision,
- constraint uk_wvp_unique_channel unique (gb_device_id)
-);
-
-CREATE INDEX idx_data_type ON wvp_device_channel (data_type);
-CREATE INDEX idx_data_device_id ON wvp_device_channel (data_device_id);
-
-drop table IF EXISTS wvp_media_server;
-create table IF NOT EXISTS wvp_media_server
-(
- id character varying(255) primary key,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- flv_port integer,
- flv_ssl_port integer,
- ws_flv_port integer,
- ws_flv_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- type character varying(50) default 'zlm',
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- transcode_suffix character varying(255),
- server_id character varying(50),
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port, server_id)
-);
-
-drop table IF EXISTS wvp_platform;
-create table IF NOT EXISTS wvp_platform
-(
- id serial primary key,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- civil_code character varying(50),
- manufacturer character varying(255),
- model character varying(255),
- address character varying(255),
- character_set character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- catalog_group integer,
- register_way integer,
- secrecy integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- catalog_with_platform integer default 1,
- catalog_with_group integer default 1,
- catalog_with_region integer default 1,
- auto_push_channel bool default true,
- send_stream_ip character varying(50),
- server_id character varying(50),
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-drop table IF EXISTS wvp_platform_channel;
-create table IF NOT EXISTS wvp_platform_channel
-(
- id serial primary key,
- platform_id integer,
- device_channel_id integer,
- custom_device_id character varying(50),
- custom_name character varying(255),
- custom_manufacturer character varying(50),
- custom_model character varying(50),
- custom_owner character varying(50),
- custom_civil_code character varying(50),
- custom_block character varying(50),
- custom_address character varying(50),
- custom_parental integer,
- custom_parent_id character varying(50),
- custom_safety_way integer,
- custom_register_way integer,
- custom_cert_num character varying(50),
- custom_certifiable integer,
- custom_err_code integer,
- custom_end_time character varying(50),
- custom_secrecy integer,
- custom_ip_address character varying(50),
- custom_port integer,
- custom_password character varying(255),
- custom_status character varying(50),
- custom_longitude double precision,
- custom_latitude double precision,
- custom_ptz_type integer,
- custom_position_type integer,
- custom_room_type integer,
- custom_use_type integer,
- custom_supply_light_type integer,
- custom_direction_type integer,
- custom_resolution character varying(255),
- custom_business_group_id character varying(255),
- custom_download_speed character varying(255),
- custom_svc_space_support_mod integer,
- custom_svc_time_support_mode integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, device_channel_id),
- constraint uk_platform_gb_channel_device_id unique (custom_device_id)
-);
-
-drop table IF EXISTS wvp_platform_group;
-create table IF NOT EXISTS wvp_platform_group
-(
- id serial primary key,
- platform_id integer,
- group_id integer,
- constraint uk_wvp_platform_group_platform_id_group_id unique (platform_id, group_id)
-);
-
-drop table IF EXISTS wvp_platform_region;
-create table IF NOT EXISTS wvp_platform_region
-(
- id serial primary key,
- platform_id integer,
- region_id integer,
- constraint uk_wvp_platform_region_platform_id_group_id unique (platform_id, region_id)
-);
-
-drop table IF EXISTS wvp_stream_proxy;
-create table IF NOT EXISTS wvp_stream_proxy
-(
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- src_url character varying(255),
- timeout integer,
- ffmpeg_cmd_key character varying(255),
- rtsp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- pulling bool default false,
- enable bool default false,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- server_id character varying(50),
- enable_disable_none_reader bool default false,
- relates_media_server_id character varying(50),
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-drop table IF EXISTS wvp_stream_push;
-create table IF NOT EXISTS wvp_stream_push
-(
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- create_time character varying(50),
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- pushing bool default false,
- self bool default false,
- start_offline_push bool default true,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-
-drop table IF EXISTS wvp_cloud_record;
-create table IF NOT EXISTS wvp_cloud_record
-(
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time int8,
- end_time int8,
- media_server_id character varying(50),
- server_id character varying(50),
- file_name character varying(255),
- folder character varying(500),
- file_path character varying(500),
- collect bool default false,
- file_size int8,
- time_len double precision
-);
-
-drop table IF EXISTS wvp_user;
-create table IF NOT EXISTS wvp_user
-(
- id serial primary key,
- username character varying(255),
- password character varying(255),
- role_id integer,
- create_time character varying(50),
- update_time character varying(50),
- push_key character varying(50),
- constraint uk_user_username unique (username)
-);
-
-drop table IF EXISTS wvp_user_role;
-create table IF NOT EXISTS wvp_user_role
-(
- id serial primary key,
- name character varying(50),
- authority character varying(50),
- create_time character varying(50),
- update_time character varying(50)
-);
-
-
-drop table IF EXISTS wvp_user_api_key;
-create table IF NOT EXISTS wvp_user_api_key
-(
- id serial primary key,
- user_id int8,
- app character varying(255),
- api_key text,
- expired_at int8,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-
-/*初始数据*/
-INSERT INTO wvp_user
-VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 1, '2021-04-13 14:14:57', '2021-04-13 14:14:57',
- '3e80d1762a324d5b0ff636e0bd16f1e3');
-INSERT INTO wvp_user_role
-VALUES (1, 'admin', '0', '2021-04-13 14:14:57', '2021-04-13 14:14:57');
-
-drop table IF EXISTS wvp_common_group;
-create table IF NOT EXISTS wvp_common_group
-(
- id serial primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- business_group varchar(50) NOT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- civil_code varchar(50) default null,
- constraint uk_common_group_device_platform unique (device_id)
-);
-
-drop table IF EXISTS wvp_common_region;
-create table IF NOT EXISTS wvp_common_region
-(
- id serial primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- constraint uk_common_region_device_id unique (device_id)
-);
-
-drop table IF EXISTS wvp_record_plan;
-create table IF NOT EXISTS wvp_record_plan
-(
- id serial primary key,
- snap bool default false,
- name varchar(255) NOT NULL,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-drop table IF EXISTS wvp_record_plan_item;
-create table IF NOT EXISTS wvp_record_plan_item
-(
- id serial primary key,
- "start" int,
- stop int,
- week_day int,
- plan_id int,
- create_time character varying(50),
- update_time character varying(50)
-);
-
diff --git a/docker/wvp/wvpcode/数据库/2.7.3/更新-mysql-2.7.1升级到2.7.3.sql b/docker/wvp/wvpcode/数据库/2.7.3/更新-mysql-2.7.1升级到2.7.3.sql
deleted file mode 100644
index 410914e..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.3/更新-mysql-2.7.1升级到2.7.3.sql
+++ /dev/null
@@ -1,432 +0,0 @@
-
-drop table if exists wvp_resources_tree;
-drop table if exists wvp_platform_catalog;
-drop table if exists wvp_platform_gb_stream;
-drop table if exists wvp_platform_gb_channel;
-drop table if exists wvp_gb_stream;
-drop table if exists wvp_log;
-drop table IF EXISTS wvp_device;
-drop table IF EXISTS wvp_platform;
-drop table IF EXISTS wvp_media_server;
-drop table IF EXISTS wvp_device_mobile_position;
-drop table IF EXISTS wvp_device_channel;
-drop table IF EXISTS wvp_stream_proxy;
-drop table IF EXISTS wvp_stream_push;
-
-create table IF NOT EXISTS wvp_device
-(
- id serial primary key,
- device_id character varying(50) not null,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50) default 'auto',
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- heart_beat_interval integer,
- heart_beat_count integer,
- position_capability integer,
- broadcast_push_after_ack bool default false,
- server_id character varying(50),
- constraint uk_device_device unique (device_id)
-);
-
-create table if not exists wvp_common_group
-(
- id bigint unsigned auto_increment primary key,
- device_id varchar(50) not null,
- name varchar(255) not null,
- parent_id int null,
- parent_device_id varchar(50) null,
- business_group varchar(50) not null,
- create_time varchar(50) not null,
- update_time varchar(50) not null,
- civil_code varchar(50) null,
- constraint id
- unique (id),
- constraint uk_common_group_device_platform
- unique (device_id)
-);
-
-create table if not exists wvp_common_region
-(
- id bigint unsigned auto_increment
- primary key,
- device_id varchar(50) not null,
- name varchar(255) not null,
- parent_id int null,
- parent_device_id varchar(50) null,
- create_time varchar(50) not null,
- update_time varchar(50) not null,
- constraint id
- unique (id),
- constraint uk_common_region_device_id
- unique (device_id)
-);
-
-create table IF NOT EXISTS wvp_device_channel
-(
- id serial primary key,
- device_id character varying(50),
- name character varying(255),
- manufacturer character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parental integer,
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy integer,
- ip_address character varying(50),
- port integer,
- password character varying(255),
- status character varying(50),
- longitude double precision,
- latitude double precision,
- ptz_type integer,
- position_type integer,
- room_type integer,
- use_type integer,
- supply_light_type integer,
- direction_type integer,
- resolution character varying(255),
- business_group_id character varying(255),
- download_speed character varying(255),
- svc_space_support_mod integer,
- svc_time_support_mode integer,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- stream_id character varying(255),
- has_audio bool default false,
- gps_time character varying(50),
- stream_identification character varying(50),
- channel_type int default 0 not null,
- gb_device_id character varying(50),
- gb_name character varying(255),
- gb_manufacturer character varying(255),
- gb_model character varying(255),
- gb_owner character varying(255),
- gb_civil_code character varying(255),
- gb_block character varying(255),
- gb_address character varying(255),
- gb_parental integer,
- gb_parent_id character varying(255),
- gb_safety_way integer,
- gb_register_way integer,
- gb_cert_num character varying(50),
- gb_certifiable integer,
- gb_err_code integer,
- gb_end_time character varying(50),
- gb_secrecy integer,
- gb_ip_address character varying(50),
- gb_port integer,
- gb_password character varying(50),
- gb_status character varying(50),
- gb_longitude double,
- gb_latitude double,
- gb_business_group_id character varying(50),
- gb_ptz_type integer,
- gb_position_type integer,
- gb_room_type integer,
- gb_use_type integer,
- gb_supply_light_type integer,
- gb_direction_type integer,
- gb_resolution character varying(255),
- gb_download_speed character varying(255),
- gb_svc_space_support_mod integer,
- gb_svc_time_support_mode integer,
- record_plan_id integer,
- data_type integer not null,
- data_device_id integer not null,
- gps_speed double precision,
- gps_altitude double precision,
- gps_direction double precision,
- index (data_type),
- index (data_device_id),
- constraint uk_wvp_unique_channel unique (gb_device_id)
-);
-
-create table IF NOT EXISTS wvp_device_mobile_position
-(
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- create_time character varying(50)
-);
-
-create table IF NOT EXISTS wvp_media_server
-(
- id character varying(255) primary key,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- flv_port integer,
- flv_ssl_port integer,
- ws_flv_port integer,
- ws_flv_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- type character varying(50) default 'zlm',
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- transcode_suffix character varying(255),
- server_id character varying(50),
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port, server_id)
-);
-
-create table IF NOT EXISTS wvp_platform
-(
- id serial primary key,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- civil_code character varying(50),
- manufacturer character varying(255),
- model character varying(255),
- address character varying(255),
- character_set character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- catalog_group integer,
- register_way integer,
- secrecy integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- catalog_with_platform integer default 1,
- catalog_with_group integer default 1,
- catalog_with_region integer default 1,
- auto_push_channel bool default true,
- send_stream_ip character varying(50),
- server_id character varying(50),
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-create table IF NOT EXISTS wvp_stream_proxy
-(
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- src_url character varying(255),
- timeout integer,
- ffmpeg_cmd_key character varying(255),
- rtsp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- pulling bool default false,
- enable bool default false,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- server_id character varying(50),
- enable_disable_none_reader bool default false,
- relates_media_server_id character varying(50),
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-create table IF NOT EXISTS wvp_stream_push
-(
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- create_time character varying(50),
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- pushing bool default false,
- self bool default false,
- start_offline_push bool default true,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-
-create table IF NOT EXISTS wvp_platform_channel
-(
- id serial primary key,
- platform_id integer,
- device_channel_id integer,
- custom_device_id character varying(50),
- custom_name character varying(255),
- custom_manufacturer character varying(50),
- custom_model character varying(50),
- custom_owner character varying(50),
- custom_civil_code character varying(50),
- custom_block character varying(50),
- custom_address character varying(50),
- custom_parental integer,
- custom_parent_id character varying(50),
- custom_safety_way integer,
- custom_register_way integer,
- custom_cert_num character varying(50),
- custom_certifiable integer,
- custom_err_code integer,
- custom_end_time character varying(50),
- custom_secrecy integer,
- custom_ip_address character varying(50),
- custom_port integer,
- custom_password character varying(255),
- custom_status character varying(50),
- custom_longitude double precision,
- custom_latitude double precision,
- custom_ptz_type integer,
- custom_position_type integer,
- custom_room_type integer,
- custom_use_type integer,
- custom_supply_light_type integer,
- custom_direction_type integer,
- custom_resolution character varying(255),
- custom_business_group_id character varying(255),
- custom_download_speed character varying(255),
- custom_svc_space_support_mod integer,
- custom_svc_time_support_mode integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, device_channel_id),
- constraint uk_platform_gb_channel_device_id unique (custom_device_id)
-);
-
-create table IF NOT EXISTS wvp_platform_group
-(
- id serial primary key,
- platform_id integer,
- group_id integer,
- constraint uk_wvp_platform_group_platform_id_group_id unique (platform_id, group_id)
-);
-
-create table IF NOT EXISTS wvp_platform_region
-(
- id serial primary key,
- platform_id integer,
- region_id integer,
- constraint uk_wvp_platform_region_platform_id_group_id unique (platform_id, region_id)
-);
-
-create table IF NOT EXISTS wvp_record_plan
-(
- id serial primary key,
- snap bool default false,
- name varchar(255) NOT NULL,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-create table IF NOT EXISTS wvp_record_plan_item
-(
- id serial primary key,
- start int,
- stop int,
- week_day int,
- plan_id int,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250111`()
-BEGIN
-
- DECLARE serverId VARCHAR(32) DEFAULT '你的服务ID';
-
- IF EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and INDEX_NAME = 'uk_stream_push_app_stream_path')
- THEN
- alter table wvp_cloud_record drop index uk_stream_push_app_stream_path ;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and column_name = 'folder')
- THEN
- alter table wvp_cloud_record modify folder varchar(500) null;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and column_name = 'file_path')
- THEN
- alter table wvp_cloud_record modify file_path varchar(500) null;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and column_name = 'server_id')
- THEN
- alter table wvp_cloud_record add server_id character varying(50);
- update wvp_cloud_record set server_id = serverId;
- END IF;
-END;//
-call wvp_20250111();
-DROP PROCEDURE wvp_20250111;
-DELIMITER ;
-
-/**
-* 20250414
-*/
-alter table wvp_cloud_record modify time_len double precision;
diff --git a/docker/wvp/wvpcode/数据库/2.7.3/更新-mysql-2.7.3.sql b/docker/wvp/wvpcode/数据库/2.7.3/更新-mysql-2.7.3.sql
deleted file mode 100644
index 49c79a6..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.3/更新-mysql-2.7.3.sql
+++ /dev/null
@@ -1,303 +0,0 @@
-/*
-* 20240528
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20240528`()
-BEGIN
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'transcode_suffix')
- THEN
- ALTER TABLE wvp_media_server ADD transcode_suffix character varying(255);
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'type')
- THEN
- alter table wvp_media_server
- add type character varying(50) default 'zlm';
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'flv_port')
- THEN
- alter table wvp_media_server add flv_port integer;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'flv_ssl_port')
- THEN
- alter table wvp_media_server add flv_ssl_port integer;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'ws_flv_port')
- THEN
- alter table wvp_media_server add ws_flv_port integer;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'ws_flv_ssl_port')
- THEN
- alter table wvp_media_server add ws_flv_ssl_port integer;
- END IF;
-END; //
-call wvp_20240528();
-DROP PROCEDURE wvp_20240528;
-DELIMITER ;
-
-create table IF NOT EXISTS wvp_user_api_key (
- id serial primary key ,
- user_id bigint,
- app character varying(255) ,
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-/*
-* 20241222
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20241222`()
-BEGIN
- IF EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and INDEX_NAME = 'uk_wvp_device_channel_unique_device_channel')
- THEN
- alter table wvp_device_channel drop index uk_wvp_device_channel_unique_device_channel;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and INDEX_NAME = 'uk_wvp_unique_stream_push_id')
- THEN
- alter table wvp_device_channel drop index uk_wvp_unique_stream_push_id;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and INDEX_NAME = 'uk_wvp_unique_stream_proxy_id')
- THEN
- alter table wvp_device_channel drop index uk_wvp_unique_stream_proxy_id;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'data_type')
- THEN
- alter table wvp_device_channel add data_type integer not null;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'data_device_id')
- THEN
- alter table wvp_device_channel add data_device_id integer not null;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'device_db_id')
- THEN
- update wvp_device_channel wdc INNER JOIN
- (SELECT id, device_db_id from wvp_device_channel where device_db_id is not null ) ct on ct.id = wdc.id
- set wdc.data_type = 1, wdc.data_device_id = ct.device_db_id where wdc.device_db_id is not null;
- alter table wvp_device_channel drop device_db_id;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'stream_push_id')
- THEN
- update wvp_device_channel wdc INNER JOIN
- (SELECT id, stream_push_id from wvp_device_channel where stream_push_id is not null ) ct on ct.id = wdc.id
- set wdc.data_type = 2, wdc.data_device_id = ct.stream_push_id where wdc.stream_push_id is not null;
- alter table wvp_device_channel drop stream_push_id;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'stream_proxy_id')
- THEN
- update wvp_device_channel wdc INNER JOIN
- (SELECT id, stream_proxy_id from wvp_device_channel where stream_proxy_id is not null ) ct on ct.id = wdc.id
- set wdc.data_type = 3, wdc.data_device_id = ct.stream_proxy_id where wdc.stream_proxy_id is not null;
- alter table wvp_device_channel drop stream_proxy_id;
- END IF;
-END; //
-call wvp_20241222();
-DROP PROCEDURE wvp_20241222;
-DELIMITER ;
-/*
-* 20241231
-*/
-DELIMITER //
-CREATE PROCEDURE `wvp_20241231`()
-BEGIN
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_stream_proxy' and column_name = 'relates_media_server_id')
- THEN
- alter table wvp_stream_proxy add relates_media_server_id character varying(50);
- END IF;
-END; //
-call wvp_20241231();
-DROP PROCEDURE wvp_20241231;
-DELIMITER ;
-/*
-* 20250111
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250111`()
-BEGIN
- IF EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and INDEX_NAME = 'uk_stream_push_app_stream_path')
- THEN
- alter table wvp_cloud_record drop index uk_stream_push_app_stream_path ;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and column_name = 'folder')
- THEN
- alter table wvp_cloud_record modify folder varchar(500) null;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and column_name = 'file_path')
- THEN
- alter table wvp_cloud_record modify file_path varchar(500) null;
- END IF;
-END; //
-call wvp_20250111();
-DROP PROCEDURE wvp_20250111;
-DELIMITER ;
-
-/*
-* 20250211
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250211`()
-BEGIN
- IF EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device' and column_name = 'keepalive_interval_time')
- THEN
- alter table wvp_device change keepalive_interval_time heart_beat_interval integer after as_message_channel;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device' and column_name = 'heart_beat_count')
- THEN
- alter table wvp_device add heart_beat_count integer;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device' and column_name = 'position_capability')
- THEN
- alter table wvp_device add position_capability integer;
- END IF;
-END; //
-call wvp_20250211();
-DROP PROCEDURE wvp_20250211;
-DELIMITER ;
-
-/**
- * 20250312
- */
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250312`()
-BEGIN
- DECLARE serverId VARCHAR(32) DEFAULT '你的服务ID';
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device' and column_name = 'server_id')
- THEN
- alter table wvp_device add server_id character varying(50);
- update wvp_device set server_id = serverId;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'server_id')
- THEN
- alter table wvp_media_server add server_id character varying(50);
- update wvp_media_server set server_id = serverId;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_stream_proxy' and column_name = 'server_id')
- THEN
- alter table wvp_stream_proxy add server_id character varying(50);
- update wvp_stream_proxy set server_id = serverId;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_cloud_record' and column_name = 'server_id')
- THEN
- alter table wvp_cloud_record add server_id character varying(50);
- update wvp_cloud_record set server_id = serverId;
- END IF;
-
- IF not EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_platform' and column_name = 'server_id')
- THEN
- alter table wvp_platform add server_id character varying(50);
- END IF;
-END; //
-call wvp_20250312();
-DROP PROCEDURE wvp_20250312;
-DELIMITER ;
-
-/*
-* 20250319
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250319`()
-BEGIN
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'gps_speed')
- THEN
- alter table wvp_device_channel add gps_speed double precision;
- END IF;
-
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'gps_altitude')
- THEN
- alter table wvp_device_channel add gps_altitude double precision;
- END IF;
-
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'gps_direction')
- THEN
- alter table wvp_device_channel add gps_direction double precision;
- END IF;
-END; //
-call wvp_20250319();
-DROP PROCEDURE wvp_20250319;
-DELIMITER ;
-
-/*
-* 20250319
-*/
-update wvp_record_plan_item set start = start * 30, stop = (stop + 1) * 30
-
-/*
-* 20250402
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250402`()
-BEGIN
- IF NOT EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and INDEX_NAME = 'data_type')
- THEN
- create index data_type on wvp_device_channel (data_type);
- END IF;
- IF NOT EXISTS (SELECT column_name FROM information_schema.STATISTICS
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and INDEX_NAME = 'data_device_id')
- THEN
- create index data_device_id on wvp_device_channel (data_device_id);
- END IF;
-
-END; //
-call wvp_20250402();
-DROP PROCEDURE wvp_20250402;
-DELIMITER ;
-
-/**
-* 20250414
-*/
-alter table wvp_cloud_record modify time_len double precision;
-
-
-
diff --git a/docker/wvp/wvpcode/数据库/2.7.3/更新-postgresql-kingbase-2.7.1升级到2.7.3.sql b/docker/wvp/wvpcode/数据库/2.7.3/更新-postgresql-kingbase-2.7.1升级到2.7.3.sql
deleted file mode 100644
index b0c42c6..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.3/更新-postgresql-kingbase-2.7.1升级到2.7.3.sql
+++ /dev/null
@@ -1,394 +0,0 @@
-drop table if exists wvp_resources_tree;
-drop table if exists wvp_platform_catalog;
-drop table if exists wvp_platform_gb_stream;
-drop table if exists wvp_platform_gb_channel;
-drop table if exists wvp_gb_stream;
-drop table if exists wvp_log;
-drop table IF EXISTS wvp_device;
-drop table IF EXISTS wvp_platform;
-drop table IF EXISTS wvp_media_server;
-drop table IF EXISTS wvp_device_mobile_position;
-drop table IF EXISTS wvp_device_channel;
-drop table IF EXISTS wvp_stream_proxy;
-drop table IF EXISTS wvp_stream_push;
-
-create table IF NOT EXISTS wvp_device
-(
- id serial primary key,
- device_id character varying(50) not null,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50) default 'auto',
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- heart_beat_interval integer,
- heart_beat_count integer,
- position_capability integer,
- broadcast_push_after_ack bool default false,
- server_id character varying(50),
- constraint uk_device_device unique (device_id)
-);
-
-create table IF NOT EXISTS wvp_device_channel
-(
- id serial primary key,
- device_id character varying(50),
- name character varying(255),
- manufacturer character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parental integer,
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy integer,
- ip_address character varying(50),
- port integer,
- password character varying(255),
- status character varying(50),
- longitude double precision,
- latitude double precision,
- ptz_type integer,
- position_type integer,
- room_type integer,
- use_type integer,
- supply_light_type integer,
- direction_type integer,
- resolution character varying(255),
- business_group_id character varying(255),
- download_speed character varying(255),
- svc_space_support_mod integer,
- svc_time_support_mode integer,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- stream_id character varying(255),
- has_audio bool default false,
- gps_time character varying(50),
- stream_identification character varying(50),
- channel_type int default 0 not null,
- gb_device_id character varying(50),
- gb_name character varying(255),
- gb_manufacturer character varying(255),
- gb_model character varying(255),
- gb_owner character varying(255),
- gb_civil_code character varying(255),
- gb_block character varying(255),
- gb_address character varying(255),
- gb_parental integer,
- gb_parent_id character varying(255),
- gb_safety_way integer,
- gb_register_way integer,
- gb_cert_num character varying(50),
- gb_certifiable integer,
- gb_err_code integer,
- gb_end_time character varying(50),
- gb_secrecy integer,
- gb_ip_address character varying(50),
- gb_port integer,
- gb_password character varying(50),
- gb_status character varying(50),
- gb_longitude double precision,
- gb_latitude double precision,
- gb_business_group_id character varying(50),
- gb_ptz_type integer,
- gb_position_type integer,
- gb_room_type integer,
- gb_use_type integer,
- gb_supply_light_type integer,
- gb_direction_type integer,
- gb_resolution character varying(255),
- gb_download_speed character varying(255),
- gb_svc_space_support_mod integer,
- gb_svc_time_support_mode integer,
- record_plan_id integer,
- data_type integer not null,
- data_device_id integer not null,
- gps_speed double precision,
- gps_altitude double precision,
- gps_direction double precision,
- constraint uk_wvp_unique_channel unique (gb_device_id)
-);
-
-create index if not exists data_type on wvp_device_channel (data_type);
-create index if not exists data_device_id on wvp_device_channel (data_device_id);
-
-create table IF NOT EXISTS wvp_device_mobile_position
-(
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- create_time character varying(50)
-);
-
-create table IF NOT EXISTS wvp_media_server
-(
- id character varying(255) primary key,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- flv_port integer,
- flv_ssl_port integer,
- ws_flv_port integer,
- ws_flv_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- type character varying(50) default 'zlm',
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- transcode_suffix character varying(255),
- server_id character varying(50),
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port, server_id)
-);
-
-create table IF NOT EXISTS wvp_common_group
-(
- id serial primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- business_group varchar(50) NOT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- civil_code varchar(50) default null,
- constraint uk_common_group_device_platform unique (device_id)
-);
-
-create table IF NOT EXISTS wvp_common_region
-(
- id serial primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- constraint uk_common_region_device_id unique (device_id)
-);
-
-create table IF NOT EXISTS wvp_record_plan
-(
- id serial primary key,
- snap bool default false,
- name varchar(255) NOT NULL,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-create table IF NOT EXISTS wvp_record_plan_item
-(
- id serial primary key,
- "start" int,
- stop int,
- week_day int,
- plan_id int,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-create table IF NOT EXISTS wvp_platform
-(
- id serial primary key,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- civil_code character varying(50),
- manufacturer character varying(255),
- model character varying(255),
- address character varying(255),
- character_set character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- catalog_group integer,
- register_way integer,
- secrecy integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- catalog_with_platform integer default 1,
- catalog_with_group integer default 1,
- catalog_with_region integer default 1,
- auto_push_channel bool default true,
- send_stream_ip character varying(50),
- server_id character varying(50),
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-create table IF NOT EXISTS wvp_platform_channel
-(
- id serial primary key,
- platform_id integer,
- device_channel_id integer,
- custom_device_id character varying(50),
- custom_name character varying(255),
- custom_manufacturer character varying(50),
- custom_model character varying(50),
- custom_owner character varying(50),
- custom_civil_code character varying(50),
- custom_block character varying(50),
- custom_address character varying(50),
- custom_parental integer,
- custom_parent_id character varying(50),
- custom_safety_way integer,
- custom_register_way integer,
- custom_cert_num character varying(50),
- custom_certifiable integer,
- custom_err_code integer,
- custom_end_time character varying(50),
- custom_secrecy integer,
- custom_ip_address character varying(50),
- custom_port integer,
- custom_password character varying(255),
- custom_status character varying(50),
- custom_longitude double precision,
- custom_latitude double precision,
- custom_ptz_type integer,
- custom_position_type integer,
- custom_room_type integer,
- custom_use_type integer,
- custom_supply_light_type integer,
- custom_direction_type integer,
- custom_resolution character varying(255),
- custom_business_group_id character varying(255),
- custom_download_speed character varying(255),
- custom_svc_space_support_mod integer,
- custom_svc_time_support_mode integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, device_channel_id),
- constraint uk_platform_gb_channel_device_id unique (custom_device_id)
-);
-
-create table IF NOT EXISTS wvp_platform_group
-(
- id serial primary key,
- platform_id integer,
- group_id integer,
- constraint uk_wvp_platform_group_platform_id_group_id unique (platform_id, group_id)
-);
-
-create table IF NOT EXISTS wvp_platform_region
-(
- id serial primary key,
- platform_id integer,
- region_id integer,
- constraint uk_wvp_platform_region_platform_id_group_id unique (platform_id, region_id)
-);
-
-create table IF NOT EXISTS wvp_stream_proxy
-(
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- src_url character varying(255),
- timeout integer,
- ffmpeg_cmd_key character varying(255),
- rtsp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- pulling bool default false,
- enable bool default false,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- server_id character varying(50),
- enable_disable_none_reader bool default false,
- relates_media_server_id character varying(50),
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-create table IF NOT EXISTS wvp_stream_push
-(
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- create_time character varying(50),
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- pushing bool default false,
- self bool default false,
- start_offline_push bool default true,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-alter table wvp_cloud_record add column if not exists server_id character varying(50);
-ALTER TABLE wvp_cloud_record DROP CONSTRAINT IF EXISTS uk_stream_push_app_stream_path;
-alter table wvp_cloud_record alter folder type varchar(500);
-alter table wvp_cloud_record alter file_path type varchar(500);
-update wvp_cloud_record set server_id = '你的服务ID';
-
-/**
-* 20250414
-*/
-alter table wvp_cloud_record modify time_len double precision;
diff --git a/docker/wvp/wvpcode/数据库/2.7.3/更新-postgresql-kingbase-2.7.3.sql b/docker/wvp/wvpcode/数据库/2.7.3/更新-postgresql-kingbase-2.7.3.sql
deleted file mode 100644
index b665882..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.3/更新-postgresql-kingbase-2.7.3.sql
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
-* 20240528
-*/
-ALTER TABLE wvp_media_server ADD COLUMN IF NOT EXISTS transcode_suffix character varying(255);
-ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS type character varying(50) default 'zlm';
-ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS flv_port integer;
-ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS flv_ssl_port integer;
-ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS ws_flv_port integer;
-ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS ws_flv_ssl_port integer;
-
-
-create table IF NOT EXISTS wvp_user_api_key (
- id serial primary key ,
- user_id bigint,
- app character varying(255) ,
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-/*
-* 20241222
-*/
-ALTER TABLE wvp_device_channel drop CONSTRAINT IF EXISTS uk_wvp_device_channel_unique_device_channel;
-ALTER TABLE wvp_device_channel DROP CONSTRAINT IF EXISTS uk_wvp_unique_stream_push_id;
-ALTER TABLE wvp_device_channel DROP CONSTRAINT IF EXISTS uk_wvp_unique_stream_proxy_id;
-
-ALTER TABLE wvp_device_channel ADD COLUMN IF NOT EXISTS data_type integer not null;
-ALTER TABLE wvp_device_channel ADD COLUMN IF NOT EXISTS data_device_id integer not null;
-
-DO $$
- BEGIN
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT current_schema()) and table_name = 'wvp_device_channel' and column_name = 'device_db_id')
- THEN
- update wvp_device_channel wdc set data_type = 1, data_device_id =
- (SELECT device_db_id from wvp_device_channel where device_db_id is not null and id = wdc.id )
- where device_db_id is not null;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT current_schema()) and table_name = 'wvp_device_channel' and column_name = 'stream_push_id')
- THEN
- update wvp_device_channel wdc set data_type = 2, data_device_id =
- (SELECT stream_push_id from wvp_device_channel where stream_push_id is not null and id = wdc.id )
- where stream_push_id is not null;
- END IF;
-
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT current_schema()) and table_name = 'wvp_device_channel' and column_name = 'stream_proxy_id')
- THEN
- update wvp_device_channel wdc set data_type = 3, data_device_id = (SELECT stream_proxy_id from wvp_device_channel where stream_proxy_id is not null and id = wdc.id )
- where stream_proxy_id is not null;
- END IF;
- END $$;
-
-
-alter table wvp_device_channel drop column IF EXISTS device_db_id;
-alter table wvp_device_channel drop column IF EXISTS stream_push_id;
-alter table wvp_device_channel drop column IF EXISTS stream_proxy_id;
-
-/*
-* 20241231
-*/
-alter table wvp_stream_proxy add column IF NOT EXISTS relates_media_server_id character varying(50);
-
-/*
-* 20250111
-*/
-ALTER TABLE wvp_cloud_record DROP CONSTRAINT IF EXISTS uk_stream_push_app_stream_path;
-alter table wvp_cloud_record alter folder type varchar(500);
-alter table wvp_cloud_record alter file_path type varchar(500);
-
-/*
-* 20250211
-*/
-alter table wvp_device rename keepalive_interval_time to heart_beat_interval;
-alter table wvp_device add column if not exists heart_beat_count integer;
-alter table wvp_device add column if not exists position_capability integer;
-
-/**
- * 20250312
- */
-alter table wvp_device add column if not exists server_id character varying(50);
-alter table wvp_media_server add column if not exists server_id character varying(50);
-alter table wvp_stream_proxy add column if not exists server_id character varying(50);
-alter table wvp_cloud_record add column if not exists server_id character varying(50);
-alter table wvp_platform add column if not exists server_id character varying(50);
-
-update wvp_device set server_id = '你的服务ID';
-update wvp_media_server set server_id = '你的服务ID';
-update wvp_stream_proxy set server_id = '你的服务ID';
-update wvp_cloud_record set server_id = '你的服务ID';
-
-/*
-* 20250319
-*/
-alter table wvp_device_channel add column if not exists gps_speed double precision;
-alter table wvp_device_channel add column if not exists gps_altitude double precision;
-alter table wvp_device_channel add column if not exists gps_direction double precision;
-
-/*
-* 20250319
-*/
-update wvp_record_plan_item set start = start * 30, stop = (stop + 1) * 30
-/*
-* 20250402
-*/
-create index if not exists data_type on wvp_device_channel (data_type);
-create index if not exists data_device_id on wvp_device_channel (data_device_id);
-
-/**
-* 20250414
-*/
-alter table wvp_cloud_record modify time_len double precision;
-
diff --git a/docker/wvp/wvpcode/数据库/2.7.4-h2/h2-data.sql b/docker/wvp/wvpcode/数据库/2.7.4-h2/h2-data.sql
deleted file mode 100644
index 17cb00f..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.4-h2/h2-data.sql
+++ /dev/null
@@ -1,7 +0,0 @@
-
-/*初始数据*/
-INSERT INTO wvp_user
-VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 1, '2021-04-13 14:14:57', '2021-04-13 14:14:57',
- '3e80d1762a324d5b0ff636e0bd16f1e3');
-INSERT INTO wvp_user_role
-VALUES (1, 'admin', '0', '2021-04-13 14:14:57', '2021-04-13 14:14:57');
diff --git a/docker/wvp/wvpcode/数据库/2.7.4-h2/h2-schema.sql b/docker/wvp/wvpcode/数据库/2.7.4-h2/h2-schema.sql
deleted file mode 100644
index f1bef6d..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.4-h2/h2-schema.sql
+++ /dev/null
@@ -1,435 +0,0 @@
-/*建表*/
-create table IF NOT EXISTS wvp_device
-(
- id bigint primary key,
- device_id character varying(50) not null,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50) default 'auto',
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- heart_beat_interval integer,
- heart_beat_count integer,
- position_capability integer,
- broadcast_push_after_ack bool default false,
- server_id character varying(50),
- constraint uk_device_device unique (device_id)
-);
-
-create table IF NOT EXISTS wvp_device_alarm
-(
- id bigint primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- alarm_priority character varying(50),
- alarm_method character varying(50),
- alarm_time character varying(50),
- alarm_description character varying(255),
- longitude double precision,
- latitude double precision,
- alarm_type character varying(50),
- create_time character varying(50) not null
-);
-
-create table IF NOT EXISTS wvp_device_mobile_position
-(
- id bigint primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- create_time character varying(50)
-);
-
-create table IF NOT EXISTS wvp_device_channel
-(
- id bigint primary key,
- device_id character varying(50),
- name character varying(255),
- manufacturer character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parental integer,
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy integer,
- ip_address character varying(50),
- port integer,
- password character varying(255),
- status character varying(50),
- longitude double precision,
- latitude double precision,
- ptz_type integer,
- position_type integer,
- room_type integer,
- use_type integer,
- supply_light_type integer,
- direction_type integer,
- resolution character varying(255),
- business_group_id character varying(255),
- download_speed character varying(255),
- svc_space_support_mod integer,
- svc_time_support_mode integer,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- stream_id character varying(255),
- has_audio bool default false,
- gps_time character varying(50),
- stream_identification character varying(50),
- channel_type int default 0 not null,
- gb_device_id character varying(50),
- gb_name character varying(255),
- gb_manufacturer character varying(255),
- gb_model character varying(255),
- gb_owner character varying(255),
- gb_civil_code character varying(255),
- gb_block character varying(255),
- gb_address character varying(255),
- gb_parental integer,
- gb_parent_id character varying(255),
- gb_safety_way integer,
- gb_register_way integer,
- gb_cert_num character varying(50),
- gb_certifiable integer,
- gb_err_code integer,
- gb_end_time character varying(50),
- gb_secrecy integer,
- gb_ip_address character varying(50),
- gb_port integer,
- gb_password character varying(50),
- gb_status character varying(50),
- gb_longitude double,
- gb_latitude double,
- gb_business_group_id character varying(50),
- gb_ptz_type integer,
- gb_position_type integer,
- gb_room_type integer,
- gb_use_type integer,
- gb_supply_light_type integer,
- gb_direction_type integer,
- gb_resolution character varying(255),
- gb_download_speed character varying(255),
- gb_svc_space_support_mod integer,
- gb_svc_time_support_mode integer,
- record_plan_id integer,
- data_type integer not null,
- data_device_id integer not null,
- gps_speed double precision,
- gps_altitude double precision,
- gps_direction double precision,
- constraint uk_wvp_unique_channel unique (gb_device_id)
-);
-
-create table IF NOT EXISTS wvp_media_server
-(
- id character varying(255) primary key,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- flv_port integer,
- flv_ssl_port integer,
- ws_flv_port integer,
- ws_flv_ssl_port integer,
- auto_config bool default false,
- secret character varying(50),
- type character varying(50) default 'zlm',
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- transcode_suffix character varying(255),
- server_id character varying(50),
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port, server_id)
-);
-
-create table IF NOT EXISTS wvp_platform
-(
- id bigint primary key,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- civil_code character varying(50),
- manufacturer character varying(255),
- model character varying(255),
- address character varying(255),
- character_set character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- catalog_group integer,
- register_way integer,
- secrecy integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- catalog_with_platform integer default 1,
- catalog_with_group integer default 1,
- catalog_with_region integer default 1,
- auto_push_channel bool default true,
- send_stream_ip character varying(50),
- server_id character varying(50),
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
-create table IF NOT EXISTS wvp_platform_channel
-(
- id bigint primary key,
- platform_id integer,
- device_channel_id integer,
- custom_device_id character varying(50),
- custom_name character varying(255),
- custom_manufacturer character varying(50),
- custom_model character varying(50),
- custom_owner character varying(50),
- custom_civil_code character varying(50),
- custom_block character varying(50),
- custom_address character varying(50),
- custom_parental integer,
- custom_parent_id character varying(50),
- custom_safety_way integer,
- custom_register_way integer,
- custom_cert_num character varying(50),
- custom_certifiable integer,
- custom_err_code integer,
- custom_end_time character varying(50),
- custom_secrecy integer,
- custom_ip_address character varying(50),
- custom_port integer,
- custom_password character varying(255),
- custom_status character varying(50),
- custom_longitude double precision,
- custom_latitude double precision,
- custom_ptz_type integer,
- custom_position_type integer,
- custom_room_type integer,
- custom_use_type integer,
- custom_supply_light_type integer,
- custom_direction_type integer,
- custom_resolution character varying(255),
- custom_business_group_id character varying(255),
- custom_download_speed character varying(255),
- custom_svc_space_support_mod integer,
- custom_svc_time_support_mode integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, device_channel_id),
- constraint uk_platform_gb_channel_device_id unique (custom_device_id)
-);
-
-create table IF NOT EXISTS wvp_platform_group
-(
- id bigint primary key,
- platform_id integer,
- group_id integer,
- constraint uk_wvp_platform_group_platform_id_group_id unique (platform_id, group_id)
-);
-
-create table IF NOT EXISTS wvp_platform_region
-(
- id bigint primary key,
- platform_id integer,
- region_id integer,
- constraint uk_wvp_platform_region_platform_id_group_id unique (platform_id, region_id)
-);
-
-create table IF NOT EXISTS wvp_stream_proxy
-(
- id bigint primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- src_url character varying(255),
- timeout integer,
- ffmpeg_cmd_key character varying(255),
- rtsp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- pulling bool default false,
- enable bool default false,
- enable_remove_none_reader bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- server_id character varying(50),
- enable_disable_none_reader bool default false,
- relates_media_server_id character varying(50),
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
-create table IF NOT EXISTS wvp_stream_push
-(
- id bigint primary key,
- app character varying(255),
- stream character varying(255),
- create_time character varying(50),
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- pushing bool default false,
- self bool default false,
- start_offline_push bool default true,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-
-create table IF NOT EXISTS wvp_cloud_record
-(
- id bigint primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time bigint,
- end_time bigint,
- media_server_id character varying(50),
- server_id character varying(50),
- file_name character varying(255),
- folder character varying(500),
- file_path character varying(500),
- collect bool default false,
- file_size bigint,
- time_len double precision
-);
-
-create table IF NOT EXISTS wvp_user
-(
- id bigint primary key,
- username character varying(255),
- password character varying(255),
- role_id integer,
- create_time character varying(50),
- update_time character varying(50),
- push_key character varying(50),
- constraint uk_user_username unique (username)
-);
-
-create table IF NOT EXISTS wvp_user_role
-(
- id bigint primary key,
- name character varying(50),
- authority character varying(50),
- create_time character varying(50),
- update_time character varying(50)
-);
-
-create table IF NOT EXISTS wvp_user_api_key
-(
- id bigint primary key,
- user_id bigint,
- app character varying(255),
- api_key text,
- expired_at bigint,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-create table IF NOT EXISTS wvp_common_group
-(
- id bigint primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- business_group varchar(50) NOT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- civil_code varchar(50) default null,
- constraint uk_common_group_device_platform unique (device_id)
-);
-
-create table IF NOT EXISTS wvp_common_region
-(
- id bigint primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- constraint uk_common_region_device_id unique (device_id)
-);
-
-create table IF NOT EXISTS wvp_record_plan
-(
- id bigint primary key,
- snap bool default false,
- name varchar(255) NOT NULL,
- create_time character varying(50),
- update_time character varying(50)
-);
-
-create table IF NOT EXISTS wvp_record_plan_item
-(
- id bigint primary key,
- start int,
- stop int,
- week_day int,
- plan_id int,
- create_time character varying(50),
- update_time character varying(50)
-);
diff --git a/docker/wvp/wvpcode/数据库/2.7.4/初始化-mysql-2.7.4.sql b/docker/wvp/wvpcode/数据库/2.7.4/初始化-mysql-2.7.4.sql
deleted file mode 100644
index 4a233da..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.4/初始化-mysql-2.7.4.sql
+++ /dev/null
@@ -1,529 +0,0 @@
-/*建表*/
--- 存储国标设备的基础信息及在线状态
-drop table IF EXISTS wvp_device;
-create table IF NOT EXISTS wvp_device
-(
- id serial primary key COMMENT '主键ID',
- device_id character varying(50) not null COMMENT '国标设备编号',
- name character varying(255) COMMENT '设备名称',
- manufacturer character varying(255) COMMENT '设备厂商',
- model character varying(255) COMMENT '设备型号',
- firmware character varying(255) COMMENT '固件版本号',
- transport character varying(50) COMMENT '信令传输协议(TCP/UDP)',
- stream_mode character varying(50) COMMENT '拉流方式(主动/被动)',
- on_line bool default false COMMENT '在线状态',
- register_time character varying(50) COMMENT '注册时间',
- keepalive_time character varying(50) COMMENT '最近心跳时间',
- ip character varying(50) COMMENT '设备IP地址',
- create_time character varying(50) COMMENT '创建时间',
- update_time character varying(50) COMMENT '更新时间',
- port integer COMMENT '信令端口',
- expires integer COMMENT '注册有效期',
- subscribe_cycle_for_catalog integer DEFAULT 0 COMMENT '目录订阅周期',
- subscribe_cycle_for_mobile_position integer DEFAULT 0 COMMENT '移动位置订阅周期',
- mobile_position_submission_interval integer DEFAULT 5 COMMENT '移动位置上报间隔',
- subscribe_cycle_for_alarm integer DEFAULT 0 COMMENT '报警订阅周期',
- host_address character varying(50) COMMENT '设备域名/主机地址',
- charset character varying(50) COMMENT '信令字符集',
- ssrc_check bool default false COMMENT '是否校验SSRC',
- geo_coord_sys character varying(50) COMMENT '坐标系类型',
- media_server_id character varying(50) default 'auto' COMMENT '绑定的流媒体服务ID',
- custom_name character varying(255) COMMENT '自定义显示名称',
- sdp_ip character varying(50) COMMENT 'SDP中携带的IP',
- local_ip character varying(50) COMMENT '本地局域网IP',
- password character varying(255) COMMENT '设备鉴权密码',
- as_message_channel bool default false COMMENT '是否作为消息通道',
- heart_beat_interval integer COMMENT '心跳间隔',
- heart_beat_count integer COMMENT '心跳失败次数',
- position_capability integer COMMENT '定位能力标识',
- broadcast_push_after_ack bool default false COMMENT 'ACK后是否自动推流',
- server_id character varying(50) COMMENT '所属信令服务器ID',
- constraint uk_device_device unique (device_id)
-);
-
--- 记录各设备上报的报警信息
-drop table IF EXISTS wvp_device_alarm;
-create table IF NOT EXISTS wvp_device_alarm
-(
- id serial primary key COMMENT '主键ID',
- device_id character varying(50) not null COMMENT '国标设备ID',
- channel_id character varying(50) not null COMMENT '报警关联的通道ID',
- alarm_priority character varying(50) COMMENT '报警级别',
- alarm_method character varying(50) COMMENT '报警方式(视频/语音等)',
- alarm_time character varying(50) COMMENT '报警发生时间',
- alarm_description character varying(255) COMMENT '报警描述',
- longitude double precision COMMENT '报警经度',
- latitude double precision COMMENT '报警纬度',
- alarm_type character varying(50) COMMENT '报警类型',
- create_time character varying(50) not null COMMENT '数据入库时间'
-);
-
--- 存储移动位置订阅上报的数据
-drop table IF EXISTS wvp_device_mobile_position;
-create table IF NOT EXISTS wvp_device_mobile_position
-(
- id serial primary key COMMENT '主键ID',
- device_id character varying(50) not null COMMENT '设备ID',
- channel_id character varying(50) not null COMMENT '通道ID',
- device_name character varying(255) COMMENT '设备名称',
- time character varying(50) COMMENT '上报时间',
- longitude double precision COMMENT '经度',
- latitude double precision COMMENT '纬度',
- altitude double precision COMMENT '海拔',
- speed double precision COMMENT '速度',
- direction double precision COMMENT '方向角',
- report_source character varying(50) COMMENT '上报来源',
- create_time character varying(50) COMMENT '入库时间'
-);
-
--- 保存设备下的通道信息以及扩展属性
-drop table IF EXISTS wvp_device_channel;
-create table IF NOT EXISTS wvp_device_channel
-(
- id serial primary key COMMENT '主键ID',
- device_id character varying(50) COMMENT '所属设备ID',
- name character varying(255) COMMENT '通道名称',
- manufacturer character varying(50) COMMENT '厂商',
- model character varying(50) COMMENT '型号',
- owner character varying(50) COMMENT '归属单位',
- civil_code character varying(50) COMMENT '行政区划代码',
- block character varying(50) COMMENT '区域/小区编号',
- address character varying(50) COMMENT '安装地址',
- parental integer COMMENT '是否有子节点',
- parent_id character varying(50) COMMENT '父级通道ID',
- safety_way integer COMMENT '安全防范等级',
- register_way integer COMMENT '注册方式',
- cert_num character varying(50) COMMENT '证书编号',
- certifiable integer COMMENT '是否可认证',
- err_code integer COMMENT '故障状态码',
- end_time character varying(50) COMMENT '服务截止时间',
- secrecy integer COMMENT '保密级别',
- ip_address character varying(50) COMMENT '设备IP地址',
- port integer COMMENT '设备端口',
- password character varying(255) COMMENT '访问密码',
- status character varying(50) COMMENT '在线状态',
- longitude double precision COMMENT '经度',
- latitude double precision COMMENT '纬度',
- ptz_type integer COMMENT '云台类型',
- position_type integer COMMENT '点位类型',
- room_type integer COMMENT '房间类型',
- use_type integer COMMENT '使用性质',
- supply_light_type integer COMMENT '补光方式',
- direction_type integer COMMENT '朝向',
- resolution character varying(255) COMMENT '分辨率',
- business_group_id character varying(255) COMMENT '业务分组ID',
- download_speed character varying(255) COMMENT '下载/码流速率',
- svc_space_support_mod integer COMMENT '空域SVC能力',
- svc_time_support_mode integer COMMENT '时域SVC能力',
- create_time character varying(50) not null COMMENT '创建时间',
- update_time character varying(50) not null COMMENT '更新时间',
- sub_count integer COMMENT '子节点数量',
- stream_id character varying(255) COMMENT '绑定的流ID',
- has_audio bool default false COMMENT '是否有音频',
- gps_time character varying(50) COMMENT 'GPS定位时间',
- stream_identification character varying(50) COMMENT '流标识',
- channel_type int default 0 not null COMMENT '通道类型',
- map_level int default 0 COMMENT '地图层级',
- gb_device_id character varying(50) COMMENT 'GB内的设备ID',
- gb_name character varying(255) COMMENT 'GB上报的名称',
- gb_manufacturer character varying(255) COMMENT 'GB厂商',
- gb_model character varying(255) COMMENT 'GB型号',
- gb_owner character varying(255) COMMENT 'GB归属',
- gb_civil_code character varying(255) COMMENT 'GB行政区划',
- gb_block character varying(255) COMMENT 'GB区域',
- gb_address character varying(255) COMMENT 'GB地址',
- gb_parental integer COMMENT 'GB子节点标识',
- gb_parent_id character varying(255) COMMENT 'GB父通道',
- gb_safety_way integer COMMENT 'GB安全防范',
- gb_register_way integer COMMENT 'GB注册方式',
- gb_cert_num character varying(50) COMMENT 'GB证书编号',
- gb_certifiable integer COMMENT 'GB认证标志',
- gb_err_code integer COMMENT 'GB错误码',
- gb_end_time character varying(50) COMMENT 'GB截止时间',
- gb_secrecy integer COMMENT 'GB保密级别',
- gb_ip_address character varying(50) COMMENT 'GB IP',
- gb_port integer COMMENT 'GB端口',
- gb_password character varying(50) COMMENT 'GB接入密码',
- gb_status character varying(50) COMMENT 'GB状态',
- gb_longitude double COMMENT 'GB经度',
- gb_latitude double COMMENT 'GB纬度',
- gb_business_group_id character varying(50) COMMENT 'GB业务分组',
- gb_ptz_type integer COMMENT 'GB云台类型',
- gb_position_type integer COMMENT 'GB点位类型',
- gb_room_type integer COMMENT 'GB房间类型',
- gb_use_type integer COMMENT 'GB用途',
- gb_supply_light_type integer COMMENT 'GB补光',
- gb_direction_type integer COMMENT 'GB朝向',
- gb_resolution character varying(255) COMMENT 'GB分辨率',
- gb_download_speed character varying(255) COMMENT 'GB码流速率',
- gb_svc_space_support_mod integer COMMENT 'GB空域SVC',
- gb_svc_time_support_mode integer COMMENT 'GB时域SVC',
- record_plan_id integer COMMENT '绑定的录像计划ID',
- data_type integer not null COMMENT '数据类型标识',
- data_device_id integer not null COMMENT '数据来源设备主键',
- gps_speed double precision COMMENT 'GPS速度',
- gps_altitude double precision COMMENT 'GPS海拔',
- gps_direction double precision COMMENT 'GPS方向',
- enable_broadcast integer default 0 COMMENT '是否支持广播',
- index (data_type),
- index (data_device_id),
- constraint uk_wvp_unique_channel unique (gb_device_id)
-);
-
--- 媒体服务器(如 ZLM)节点信息
-drop table IF EXISTS wvp_media_server;
-create table IF NOT EXISTS wvp_media_server
-(
- id character varying(255) primary key COMMENT '媒体服务器ID',
- ip character varying(50) COMMENT '服务器IP',
- hook_ip character varying(50) COMMENT 'hook回调IP',
- sdp_ip character varying(50) COMMENT 'SDP中使用的IP',
- stream_ip character varying(50) COMMENT '推流使用的IP',
- http_port integer COMMENT 'HTTP端口',
- http_ssl_port integer COMMENT 'HTTPS端口',
- rtmp_port integer COMMENT 'RTMP端口',
- rtmp_ssl_port integer COMMENT 'RTMPS端口',
- rtp_proxy_port integer COMMENT 'RTP代理端口',
- rtsp_port integer COMMENT 'RTSP端口',
- rtsp_ssl_port integer COMMENT 'RTSPS端口',
- flv_port integer COMMENT 'FLV端口',
- flv_ssl_port integer COMMENT 'FLV HTTPS端口',
- mp4_port integer COMMENT 'MP4点播端口',
- mp4_ssl_port integer COMMENT 'MP4 HTTPS端口',
- ws_flv_port integer COMMENT 'WS-FLV端口',
- ws_flv_ssl_port integer COMMENT 'WS-FLV HTTPS端口',
- jtt_proxy_port integer COMMENT 'JT/T代理端口',
- auto_config bool default false COMMENT '是否自动配置',
- secret character varying(50) COMMENT 'ZLM校验密钥',
- type character varying(50) default 'zlm' COMMENT '节点类型',
- rtp_enable bool default false COMMENT '是否开启RTP',
- rtp_port_range character varying(50) COMMENT 'RTP端口范围',
- send_rtp_port_range character varying(50) COMMENT '发送RTP端口范围',
- record_assist_port integer COMMENT '录像辅助端口',
- default_server bool default false COMMENT '是否默认节点',
- create_time character varying(50) COMMENT '创建时间',
- update_time character varying(50) COMMENT '更新时间',
- hook_alive_interval integer COMMENT 'hook心跳间隔',
- record_path character varying(255) COMMENT '录像目录',
- record_day integer default 7 COMMENT '录像保留天数',
- transcode_suffix character varying(255) COMMENT '转码指令后缀',
- server_id character varying(50) COMMENT '对应信令服务器ID',
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port, server_id)
-);
-
--- 上级国标平台注册信息
-drop table IF EXISTS wvp_platform;
-create table IF NOT EXISTS wvp_platform
-(
- id serial primary key COMMENT '主键ID',
- enable bool default false COMMENT '是否启用该平台注册',
- name character varying(255) COMMENT '平台名称',
- server_gb_id character varying(50) COMMENT '上级平台国标编码',
- server_gb_domain character varying(50) COMMENT '上级平台域编码',
- server_ip character varying(50) COMMENT '上级平台IP',
- server_port integer COMMENT '上级平台注册端口',
- device_gb_id character varying(50) COMMENT '本平台向上注册的国标编码',
- device_ip character varying(50) COMMENT '本平台信令IP',
- device_port character varying(50) COMMENT '本平台信令端口',
- username character varying(255) COMMENT '注册用户名',
- password character varying(50) COMMENT '注册密码',
- expires character varying(50) COMMENT '注册有效期',
- keep_timeout character varying(50) COMMENT '心跳超时时间',
- transport character varying(50) COMMENT '传输协议(UDP/TCP)',
- civil_code character varying(50) COMMENT '行政区划代码',
- manufacturer character varying(255) COMMENT '厂商',
- model character varying(255) COMMENT '型号',
- address character varying(255) COMMENT '地址',
- character_set character varying(50) COMMENT '字符集',
- ptz bool default false COMMENT '是否支持PTZ',
- rtcp bool default false COMMENT '是否开启RTCP',
- status bool default false COMMENT '注册状态',
- catalog_group integer COMMENT '目录分组方式',
- register_way integer COMMENT '注册方式',
- secrecy integer COMMENT '保密级别',
- create_time character varying(50) COMMENT '创建时间',
- update_time character varying(50) COMMENT '更新时间',
- as_message_channel bool default false COMMENT '是否作为消息通道',
- catalog_with_platform integer default 1 COMMENT '是否推送平台目录',
- catalog_with_group integer default 1 COMMENT '是否推送分组目录',
- catalog_with_region integer default 1 COMMENT '是否推送区域目录',
- auto_push_channel bool default true COMMENT '是否自动推送通道',
- send_stream_ip character varying(50) COMMENT '推流时使用的IP',
- server_id character varying(50) COMMENT '对应信令服务器ID',
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-
--- 国标平台下发的通道映射关系
-drop table IF EXISTS wvp_platform_channel;
-create table IF NOT EXISTS wvp_platform_channel
-(
- id serial primary key COMMENT '主键ID',
- platform_id integer COMMENT '平台ID',
- device_channel_id integer COMMENT '本地通道表主键',
- custom_device_id character varying(50) COMMENT '自定义国标编码',
- custom_name character varying(255) COMMENT '自定义名称',
- custom_manufacturer character varying(50) COMMENT '自定义厂商',
- custom_model character varying(50) COMMENT '自定义型号',
- custom_owner character varying(50) COMMENT '自定义归属',
- custom_civil_code character varying(50) COMMENT '自定义行政区划',
- custom_block character varying(50) COMMENT '自定义区域',
- custom_address character varying(50) COMMENT '自定义地址',
- custom_parental integer COMMENT '自定义父/子标识',
- custom_parent_id character varying(50) COMMENT '自定义父节点',
- custom_safety_way integer COMMENT '自定义安全防范',
- custom_register_way integer COMMENT '自定义注册方式',
- custom_cert_num character varying(50) COMMENT '自定义证书编号',
- custom_certifiable integer COMMENT '自定义可认证标志',
- custom_err_code integer COMMENT '自定义错误码',
- custom_end_time character varying(50) COMMENT '自定义截止时间',
- custom_secrecy integer COMMENT '自定义保密级别',
- custom_ip_address character varying(50) COMMENT '自定义IP',
- custom_port integer COMMENT '自定义端口',
- custom_password character varying(255) COMMENT '自定义密码',
- custom_status character varying(50) COMMENT '自定义状态',
- custom_longitude double precision COMMENT '自定义经度',
- custom_latitude double precision COMMENT '自定义纬度',
- custom_ptz_type integer COMMENT '自定义云台类型',
- custom_position_type integer COMMENT '自定义点位类型',
- custom_room_type integer COMMENT '自定义房间类型',
- custom_use_type integer COMMENT '自定义用途',
- custom_supply_light_type integer COMMENT '自定义补光',
- custom_direction_type integer COMMENT '自定义朝向',
- custom_resolution character varying(255) COMMENT '自定义分辨率',
- custom_business_group_id character varying(255) COMMENT '自定义业务分组',
- custom_download_speed character varying(255) COMMENT '自定义码流速率',
- custom_svc_space_support_mod integer COMMENT '自定义空域SVC',
- custom_svc_time_support_mode integer COMMENT '自定义时域SVC',
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, device_channel_id),
- constraint uk_platform_gb_channel_device_id unique (custom_device_id)
-);
-
--- 平台与分组(行政区划/组织)关系
-drop table IF EXISTS wvp_platform_group;
-create table IF NOT EXISTS wvp_platform_group
-(
- id serial primary key COMMENT '主键ID',
- platform_id integer COMMENT '平台ID',
- group_id integer COMMENT '分组ID',
- constraint uk_wvp_platform_group_platform_id_group_id unique (platform_id, group_id)
-);
-
--- 平台与区域关系
-drop table IF EXISTS wvp_platform_region;
-create table IF NOT EXISTS wvp_platform_region
-(
- id serial primary key COMMENT '主键ID',
- platform_id integer COMMENT '平台ID',
- region_id integer COMMENT '区域ID',
- constraint uk_wvp_platform_region_platform_id_group_id unique (platform_id, region_id)
-);
-
--- 拉流代理/转推配置
-drop table IF EXISTS wvp_stream_proxy;
-create table IF NOT EXISTS wvp_stream_proxy
-(
- id serial primary key COMMENT '主键ID',
- type character varying(50) COMMENT '代理类型(拉流/推流)',
- app character varying(255) COMMENT '应用名',
- stream character varying(255) COMMENT '流ID',
- src_url character varying(255) COMMENT '源地址',
- timeout integer COMMENT '拉流超时时间',
- ffmpeg_cmd_key character varying(255) COMMENT 'FFmpeg命令模板键',
- rtsp_type character varying(50) COMMENT 'RTSP拉流方式',
- media_server_id character varying(50) COMMENT '指定媒体服务器ID',
- enable_audio bool default false COMMENT '是否启用音频',
- enable_mp4 bool default false COMMENT '是否录制MP4',
- pulling bool default false COMMENT '当前是否在拉流',
- enable bool default false COMMENT '是否启用该代理',
- create_time character varying(50) COMMENT '创建时间',
- name character varying(255) COMMENT '代理名称',
- update_time character varying(50) COMMENT '更新时间',
- stream_key character varying(255) COMMENT '唯一流标识',
- server_id character varying(50) COMMENT '信令服务器ID',
- enable_disable_none_reader bool default false COMMENT '是否无人观看时自动停流',
- relates_media_server_id character varying(50) COMMENT '关联的媒体服务器ID',
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-
--- 推流会话记录
-drop table IF EXISTS wvp_stream_push;
-create table IF NOT EXISTS wvp_stream_push
-(
- id serial primary key COMMENT '主键ID',
- app character varying(255) COMMENT '应用名',
- stream character varying(255) COMMENT '流ID',
- create_time character varying(50) COMMENT '创建时间',
- media_server_id character varying(50) COMMENT '推流所在媒体服务器',
- server_id character varying(50) COMMENT '信令服务器ID',
- push_time character varying(50) COMMENT '推流开始时间',
- status bool default false COMMENT '推流状态',
- update_time character varying(50) COMMENT '更新时间',
- pushing bool default false COMMENT '是否正在推流',
- self bool default false COMMENT '是否本地发起',
- start_offline_push bool default true COMMENT '是否离线后自动重推',
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-
--- 云端录像记录
-drop table IF EXISTS wvp_cloud_record;
-create table IF NOT EXISTS wvp_cloud_record
-(
- id serial primary key COMMENT '主键ID',
- app character varying(255) COMMENT '应用名',
- stream character varying(255) COMMENT '流ID',
- call_id character varying(255) COMMENT '会话ID',
- start_time bigint COMMENT '录像开始时间',
- end_time bigint COMMENT '录像结束时间',
- media_server_id character varying(50) COMMENT '媒体服务器ID',
- server_id character varying(50) COMMENT '信令服务器ID',
- file_name character varying(255) COMMENT '文件名',
- folder character varying(500) COMMENT '目录',
- file_path character varying(500) COMMENT '完整路径',
- collect bool default false COMMENT '是否收藏',
- file_size bigint COMMENT '文件大小',
- time_len double precision COMMENT '时长'
-);
-
--- 平台用户信息
-drop table IF EXISTS wvp_user;
-create table IF NOT EXISTS wvp_user
-(
- id serial primary key COMMENT '主键ID',
- username character varying(255) COMMENT '用户名',
- password character varying(255) COMMENT '密码(MD5)',
- role_id integer COMMENT '角色ID',
- create_time character varying(50) COMMENT '创建时间',
- update_time character varying(50) COMMENT '更新时间',
- push_key character varying(50) COMMENT '推送密钥',
- constraint uk_user_username unique (username)
-);
-
--- 用户角色信息
-drop table IF EXISTS wvp_user_role;
-create table IF NOT EXISTS wvp_user_role
-(
- id serial primary key COMMENT '主键ID',
- name character varying(50) COMMENT '角色名称',
- authority character varying(50) COMMENT '权限标识',
- create_time character varying(50) COMMENT '创建时间',
- update_time character varying(50) COMMENT '更新时间'
-);
-
-
-drop table IF EXISTS wvp_user_api_key;
-create table IF NOT EXISTS wvp_user_api_key
-(
- id serial primary key COMMENT '主键ID',
- user_id bigint COMMENT '关联用户ID',
- app character varying(255) COMMENT '应用标识',
- api_key text COMMENT 'API Key',
- expired_at bigint COMMENT '过期时间戳',
- remark character varying(255) COMMENT '备注',
- enable bool default true COMMENT '是否启用',
- create_time character varying(50) COMMENT '创建时间',
- update_time character varying(50) COMMENT '更新时间'
-);
-
-
-/*初始数据*/
--- 初始化管理员账号,账号admin 密码admin(MD5加密后)
-INSERT INTO wvp_user
-VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 1, '2021-04-13 14:14:57', '2021-04-13 14:14:57',
- '3e80d1762a324d5b0ff636e0bd16f1e3');
--- 初始化管理员角色
-INSERT INTO wvp_user_role
-VALUES (1, 'admin', '0', '2021-04-13 14:14:57', '2021-04-13 14:14:57');
-
--- 通用分组表,存储行业或组织结构
-drop table IF EXISTS wvp_common_group;
-create table IF NOT EXISTS wvp_common_group
-(
- id serial primary key COMMENT '主键ID',
- device_id varchar(50) NOT NULL COMMENT '分组对应的平台或设备ID',
- name varchar(255) NOT NULL COMMENT '分组名称',
- parent_id int COMMENT '父级分组ID',
- parent_device_id varchar(50) DEFAULT NULL COMMENT '父级分组对应的设备ID',
- business_group varchar(50) NOT NULL COMMENT '业务分组编码',
- create_time varchar(50) NOT NULL COMMENT '创建时间',
- update_time varchar(50) NOT NULL COMMENT '更新时间',
- civil_code varchar(50) default null COMMENT '行政区划代码',
- alias varchar(255) default null COMMENT '别名',
- constraint uk_common_group_device_platform unique (device_id)
-);
-
--- 通用行政区域表
-drop table IF EXISTS wvp_common_region;
-create table IF NOT EXISTS wvp_common_region
-(
- id serial primary key COMMENT '主键ID',
- device_id varchar(50) NOT NULL COMMENT '区域对应的平台或设备ID',
- name varchar(255) NOT NULL COMMENT '区域名称',
- parent_id int COMMENT '父级区域ID',
- parent_device_id varchar(50) DEFAULT NULL COMMENT '父级区域的设备ID',
- create_time varchar(50) NOT NULL COMMENT '创建时间',
- update_time varchar(50) NOT NULL COMMENT '更新时间',
- constraint uk_common_region_device_id unique (device_id)
-);
-
--- 录像计划基础信息
-drop table IF EXISTS wvp_record_plan;
-create table IF NOT EXISTS wvp_record_plan
-(
- id serial primary key COMMENT '主键ID',
- snap bool default false COMMENT '是否抓图计划',
- name varchar(255) NOT NULL COMMENT '计划名称',
- create_time character varying(50) COMMENT '创建时间',
- update_time character varying(50) COMMENT '更新时间'
-);
-
--- 录像计划条目表
-drop table IF EXISTS wvp_record_plan_item;
-create table IF NOT EXISTS wvp_record_plan_item
-(
- id serial primary key COMMENT '主键ID',
- start int COMMENT '开始时间(分钟)',
- stop int COMMENT '结束时间(分钟)',
- week_day int COMMENT '星期(0-6)',
- plan_id int COMMENT '所属录像计划ID',
- create_time character varying(50) COMMENT '创建时间',
- update_time character varying(50) COMMENT '更新时间'
-);
-
--- 交通部 JT/T 1076 终端信息
-drop table IF EXISTS wvp_jt_terminal;
-create table IF NOT EXISTS wvp_jt_terminal (
- id serial primary key COMMENT '主键ID',
- phone_number character varying(50) COMMENT '终端SIM卡号',
- terminal_id character varying(50) COMMENT '终端设备ID',
- province_id character varying(50) COMMENT '所在省份ID',
- province_text character varying(100) COMMENT '所在省份名称',
- city_id character varying(50) COMMENT '所在城市ID',
- city_text character varying(100) COMMENT '所在城市名称',
- maker_id character varying(50) COMMENT '厂商ID',
- model character varying(50) COMMENT '终端型号',
- plate_color character varying(50) COMMENT '车牌颜色',
- plate_no character varying(50) COMMENT '车牌号码',
- longitude double precision COMMENT '经度',
- latitude double precision COMMENT '纬度',
- status bool default false COMMENT '在线状态',
- register_time character varying(50) default null COMMENT '注册时间',
- update_time character varying(50) not null COMMENT '更新时间',
- create_time character varying(50) not null COMMENT '创建时间',
- geo_coord_sys character varying(50) COMMENT '坐标系',
- media_server_id character varying(50) default 'auto' COMMENT '媒体服务器ID',
- sdp_ip character varying(50) COMMENT 'SDP IP',
- constraint uk_jt_device_id_device_id unique (id, phone_number)
-);
-
--- 交通部 JT/T 1076 通道信息
-drop table IF EXISTS wvp_jt_channel;
-create table IF NOT EXISTS wvp_jt_channel (
- id serial primary key COMMENT '主键ID',
- terminal_db_id integer COMMENT '所属终端记录ID',
- channel_id integer COMMENT '通道号',
- has_audio bool default false COMMENT '是否有音频',
- name character varying(255) COMMENT '通道名称',
- update_time character varying(50) not null COMMENT '更新时间',
- create_time character varying(50) not null COMMENT '创建时间',
- constraint uk_jt_channel_id_device_id unique (terminal_db_id, channel_id)
-);
diff --git a/docker/wvp/wvpcode/数据库/2.7.4/初始化-postgresql-kingbase-2.7.4.sql b/docker/wvp/wvpcode/数据库/2.7.4/初始化-postgresql-kingbase-2.7.4.sql
deleted file mode 100644
index 8128c1b..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.4/初始化-postgresql-kingbase-2.7.4.sql
+++ /dev/null
@@ -1,925 +0,0 @@
-/*建表*/
-drop table IF EXISTS wvp_device;
-create table IF NOT EXISTS wvp_device
-(
- id serial primary key,
- device_id character varying(50) not null,
- name character varying(255),
- manufacturer character varying(255),
- model character varying(255),
- firmware character varying(255),
- transport character varying(50),
- stream_mode character varying(50),
- on_line bool default false,
- register_time character varying(50),
- keepalive_time character varying(50),
- ip character varying(50),
- create_time character varying(50),
- update_time character varying(50),
- port integer,
- expires integer,
- subscribe_cycle_for_catalog integer DEFAULT 0,
- subscribe_cycle_for_mobile_position integer DEFAULT 0,
- mobile_position_submission_interval integer DEFAULT 5,
- subscribe_cycle_for_alarm integer DEFAULT 0,
- host_address character varying(50),
- charset character varying(50),
- ssrc_check bool default false,
- geo_coord_sys character varying(50),
- media_server_id character varying(50) default 'auto',
- custom_name character varying(255),
- sdp_ip character varying(50),
- local_ip character varying(50),
- password character varying(255),
- as_message_channel bool default false,
- heart_beat_interval integer,
- heart_beat_count integer,
- position_capability integer,
- broadcast_push_after_ack bool default false,
- server_id character varying(50),
- constraint uk_device_device unique (device_id)
-);
-COMMENT ON TABLE wvp_device IS '存储国标设备的基础信息及在线状态';
-COMMENT ON COLUMN wvp_device.id IS '主键ID';
-COMMENT ON COLUMN wvp_device.device_id IS '国标设备编号';
-COMMENT ON COLUMN wvp_device.name IS '设备名称';
-COMMENT ON COLUMN wvp_device.manufacturer IS '设备厂商';
-COMMENT ON COLUMN wvp_device.model IS '设备型号';
-COMMENT ON COLUMN wvp_device.firmware IS '固件版本号';
-COMMENT ON COLUMN wvp_device.transport IS '信令传输协议(TCP/UDP)';
-COMMENT ON COLUMN wvp_device.stream_mode IS '拉流方式(主动/被动)';
-COMMENT ON COLUMN wvp_device.on_line IS '在线状态';
-COMMENT ON COLUMN wvp_device.register_time IS '注册时间';
-COMMENT ON COLUMN wvp_device.keepalive_time IS '最近心跳时间';
-COMMENT ON COLUMN wvp_device.ip IS '设备IP地址';
-COMMENT ON COLUMN wvp_device.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_device.update_time IS '更新时间';
-COMMENT ON COLUMN wvp_device.port IS '信令端口';
-COMMENT ON COLUMN wvp_device.expires IS '注册有效期';
-COMMENT ON COLUMN wvp_device.subscribe_cycle_for_catalog IS '目录订阅周期';
-COMMENT ON COLUMN wvp_device.subscribe_cycle_for_mobile_position IS '移动位置订阅周期';
-COMMENT ON COLUMN wvp_device.mobile_position_submission_interval IS '移动位置上报间隔';
-COMMENT ON COLUMN wvp_device.subscribe_cycle_for_alarm IS '报警订阅周期';
-COMMENT ON COLUMN wvp_device.host_address IS '设备域名/主机地址';
-COMMENT ON COLUMN wvp_device.charset IS '信令字符集';
-COMMENT ON COLUMN wvp_device.ssrc_check IS '是否校验SSRC';
-COMMENT ON COLUMN wvp_device.geo_coord_sys IS '坐标系类型';
-COMMENT ON COLUMN wvp_device.media_server_id IS '绑定的流媒体服务ID';
-COMMENT ON COLUMN wvp_device.custom_name IS '自定义显示名称';
-COMMENT ON COLUMN wvp_device.sdp_ip IS 'SDP中携带的IP';
-COMMENT ON COLUMN wvp_device.local_ip IS '本地局域网IP';
-COMMENT ON COLUMN wvp_device.password IS '设备鉴权密码';
-COMMENT ON COLUMN wvp_device.as_message_channel IS '是否作为消息通道';
-COMMENT ON COLUMN wvp_device.heart_beat_interval IS '心跳间隔';
-COMMENT ON COLUMN wvp_device.heart_beat_count IS '心跳失败次数';
-COMMENT ON COLUMN wvp_device.position_capability IS '定位能力标识';
-COMMENT ON COLUMN wvp_device.broadcast_push_after_ack IS 'ACK后是否自动推流';
-COMMENT ON COLUMN wvp_device.server_id IS '所属信令服务器ID';
-
-
-drop table IF EXISTS wvp_device_alarm;
-create table IF NOT EXISTS wvp_device_alarm
-(
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- alarm_priority character varying(50),
- alarm_method character varying(50),
- alarm_time character varying(50),
- alarm_description character varying(255),
- longitude double precision,
- latitude double precision,
- alarm_type character varying(50),
- create_time character varying(50) not null
-);
-COMMENT ON TABLE wvp_device_alarm IS '记录各设备上报的报警信息';
-COMMENT ON COLUMN wvp_device_alarm.id IS '主键ID';
-COMMENT ON COLUMN wvp_device_alarm.device_id IS '国标设备ID';
-COMMENT ON COLUMN wvp_device_alarm.channel_id IS '报警关联的通道ID';
-COMMENT ON COLUMN wvp_device_alarm.alarm_priority IS '报警级别';
-COMMENT ON COLUMN wvp_device_alarm.alarm_method IS '报警方式(视频/语音等)';
-COMMENT ON COLUMN wvp_device_alarm.alarm_time IS '报警发生时间';
-COMMENT ON COLUMN wvp_device_alarm.alarm_description IS '报警描述';
-COMMENT ON COLUMN wvp_device_alarm.longitude IS '报警经度';
-COMMENT ON COLUMN wvp_device_alarm.latitude IS '报警纬度';
-COMMENT ON COLUMN wvp_device_alarm.alarm_type IS '报警类型';
-COMMENT ON COLUMN wvp_device_alarm.create_time IS '数据入库时间';
-
-
-drop table IF EXISTS wvp_device_mobile_position;
-create table IF NOT EXISTS wvp_device_mobile_position
-(
- id serial primary key,
- device_id character varying(50) not null,
- channel_id character varying(50) not null,
- device_name character varying(255),
- time character varying(50),
- longitude double precision,
- latitude double precision,
- altitude double precision,
- speed double precision,
- direction double precision,
- report_source character varying(50),
- create_time character varying(50)
-);
-COMMENT ON TABLE wvp_device_mobile_position IS '存储移动位置订阅上报的数据';
-COMMENT ON COLUMN wvp_device_mobile_position.id IS '主键ID';
-COMMENT ON COLUMN wvp_device_mobile_position.device_id IS '设备ID';
-COMMENT ON COLUMN wvp_device_mobile_position.channel_id IS '通道ID';
-COMMENT ON COLUMN wvp_device_mobile_position.device_name IS '设备名称';
-COMMENT ON COLUMN wvp_device_mobile_position.time IS '上报时间';
-COMMENT ON COLUMN wvp_device_mobile_position.longitude IS '经度';
-COMMENT ON COLUMN wvp_device_mobile_position.latitude IS '纬度';
-COMMENT ON COLUMN wvp_device_mobile_position.altitude IS '海拔';
-COMMENT ON COLUMN wvp_device_mobile_position.speed IS '速度';
-COMMENT ON COLUMN wvp_device_mobile_position.direction IS '方向角';
-COMMENT ON COLUMN wvp_device_mobile_position.report_source IS '上报来源';
-COMMENT ON COLUMN wvp_device_mobile_position.create_time IS '入库时间';
-
-
-drop table IF EXISTS wvp_device_channel;
-create table IF NOT EXISTS wvp_device_channel
-(
- id serial primary key,
- device_id character varying(50),
- name character varying(255),
- manufacturer character varying(50),
- model character varying(50),
- owner character varying(50),
- civil_code character varying(50),
- block character varying(50),
- address character varying(50),
- parental integer,
- parent_id character varying(50),
- safety_way integer,
- register_way integer,
- cert_num character varying(50),
- certifiable integer,
- err_code integer,
- end_time character varying(50),
- secrecy integer,
- ip_address character varying(50),
- port integer,
- password character varying(255),
- status character varying(50),
- longitude double precision,
- latitude double precision,
- ptz_type integer,
- position_type integer,
- room_type integer,
- use_type integer,
- supply_light_type integer,
- direction_type integer,
- resolution character varying(255),
- business_group_id character varying(255),
- download_speed character varying(255),
- svc_space_support_mod integer,
- svc_time_support_mode integer,
- create_time character varying(50) not null,
- update_time character varying(50) not null,
- sub_count integer,
- stream_id character varying(255),
- has_audio bool default false,
- gps_time character varying(50),
- stream_identification character varying(50),
- channel_type int default 0 not null,
- map_level int default 0,
- gb_device_id character varying(50),
- gb_name character varying(255),
- gb_manufacturer character varying(255),
- gb_model character varying(255),
- gb_owner character varying(255),
- gb_civil_code character varying(255),
- gb_block character varying(255),
- gb_address character varying(255),
- gb_parental integer,
- gb_parent_id character varying(255),
- gb_safety_way integer,
- gb_register_way integer,
- gb_cert_num character varying(50),
- gb_certifiable integer,
- gb_err_code integer,
- gb_end_time character varying(50),
- gb_secrecy integer,
- gb_ip_address character varying(50),
- gb_port integer,
- gb_password character varying(50),
- gb_status character varying(50),
- gb_longitude double precision,
- gb_latitude double precision,
- gb_business_group_id character varying(50),
- gb_ptz_type integer,
- gb_position_type integer,
- gb_room_type integer,
- gb_use_type integer,
- gb_supply_light_type integer,
- gb_direction_type integer,
- gb_resolution character varying(255),
- gb_download_speed character varying(255),
- gb_svc_space_support_mod integer,
- gb_svc_time_support_mode integer,
- record_plan_id integer,
- data_type integer not null,
- data_device_id integer not null,
- gps_speed double precision,
- gps_altitude double precision,
- gps_direction double precision,
- enable_broadcast integer default 0,
- constraint uk_wvp_unique_channel unique (gb_device_id)
-);
-COMMENT ON TABLE wvp_device_channel IS '保存设备下的通道信息以及扩展属性';
-COMMENT ON COLUMN wvp_device_channel.id IS '主键ID';
-COMMENT ON COLUMN wvp_device_channel.device_id IS '所属设备ID';
-COMMENT ON COLUMN wvp_device_channel.name IS '通道名称';
-COMMENT ON COLUMN wvp_device_channel.manufacturer IS '厂商';
-COMMENT ON COLUMN wvp_device_channel.model IS '型号';
-COMMENT ON COLUMN wvp_device_channel.owner IS '归属单位';
-COMMENT ON COLUMN wvp_device_channel.civil_code IS '行政区划代码';
-COMMENT ON COLUMN wvp_device_channel.block IS '区域/小区编号';
-COMMENT ON COLUMN wvp_device_channel.address IS '安装地址';
-COMMENT ON COLUMN wvp_device_channel.parental IS '是否有子节点';
-COMMENT ON COLUMN wvp_device_channel.parent_id IS '父级通道ID';
-COMMENT ON COLUMN wvp_device_channel.safety_way IS '安全防范等级';
-COMMENT ON COLUMN wvp_device_channel.register_way IS '注册方式';
-COMMENT ON COLUMN wvp_device_channel.cert_num IS '证书编号';
-COMMENT ON COLUMN wvp_device_channel.certifiable IS '是否可认证';
-COMMENT ON COLUMN wvp_device_channel.err_code IS '故障状态码';
-COMMENT ON COLUMN wvp_device_channel.end_time IS '服务截止时间';
-COMMENT ON COLUMN wvp_device_channel.secrecy IS '保密级别';
-COMMENT ON COLUMN wvp_device_channel.ip_address IS '设备IP地址';
-COMMENT ON COLUMN wvp_device_channel.port IS '设备端口';
-COMMENT ON COLUMN wvp_device_channel.password IS '访问密码';
-COMMENT ON COLUMN wvp_device_channel.status IS '在线状态';
-COMMENT ON COLUMN wvp_device_channel.longitude IS '经度';
-COMMENT ON COLUMN wvp_device_channel.latitude IS '纬度';
-COMMENT ON COLUMN wvp_device_channel.ptz_type IS '云台类型';
-COMMENT ON COLUMN wvp_device_channel.position_type IS '点位类型';
-COMMENT ON COLUMN wvp_device_channel.room_type IS '房间类型';
-COMMENT ON COLUMN wvp_device_channel.use_type IS '使用性质';
-COMMENT ON COLUMN wvp_device_channel.supply_light_type IS '补光方式';
-COMMENT ON COLUMN wvp_device_channel.direction_type IS '朝向';
-COMMENT ON COLUMN wvp_device_channel.resolution IS '分辨率';
-COMMENT ON COLUMN wvp_device_channel.business_group_id IS '业务分组ID';
-COMMENT ON COLUMN wvp_device_channel.download_speed IS '下载/码流速率';
-COMMENT ON COLUMN wvp_device_channel.svc_space_support_mod IS '空域SVC能力';
-COMMENT ON COLUMN wvp_device_channel.svc_time_support_mode IS '时域SVC能力';
-COMMENT ON COLUMN wvp_device_channel.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_device_channel.update_time IS '更新时间';
-COMMENT ON COLUMN wvp_device_channel.sub_count IS '子节点数量';
-COMMENT ON COLUMN wvp_device_channel.stream_id IS '绑定的流ID';
-COMMENT ON COLUMN wvp_device_channel.has_audio IS '是否有音频';
-COMMENT ON COLUMN wvp_device_channel.gps_time IS 'GPS定位时间';
-COMMENT ON COLUMN wvp_device_channel.stream_identification IS '流标识';
-COMMENT ON COLUMN wvp_device_channel.channel_type IS '通道类型';
-COMMENT ON COLUMN wvp_device_channel.map_level IS '地图层级';
-COMMENT ON COLUMN wvp_device_channel.gb_device_id IS 'GB内的设备ID';
-COMMENT ON COLUMN wvp_device_channel.gb_name IS 'GB上报的名称';
-COMMENT ON COLUMN wvp_device_channel.gb_manufacturer IS 'GB厂商';
-COMMENT ON COLUMN wvp_device_channel.gb_model IS 'GB型号';
-COMMENT ON COLUMN wvp_device_channel.gb_owner IS 'GB归属';
-COMMENT ON COLUMN wvp_device_channel.gb_civil_code IS 'GB行政区划';
-COMMENT ON COLUMN wvp_device_channel.gb_block IS 'GB区域';
-COMMENT ON COLUMN wvp_device_channel.gb_address IS 'GB地址';
-COMMENT ON COLUMN wvp_device_channel.gb_parental IS 'GB子节点标识';
-COMMENT ON COLUMN wvp_device_channel.gb_parent_id IS 'GB父通道';
-COMMENT ON COLUMN wvp_device_channel.gb_safety_way IS 'GB安全防范';
-COMMENT ON COLUMN wvp_device_channel.gb_register_way IS 'GB注册方式';
-COMMENT ON COLUMN wvp_device_channel.gb_cert_num IS 'GB证书编号';
-COMMENT ON COLUMN wvp_device_channel.gb_certifiable IS 'GB认证标志';
-COMMENT ON COLUMN wvp_device_channel.gb_err_code IS 'GB错误码';
-COMMENT ON COLUMN wvp_device_channel.gb_end_time IS 'GB截止时间';
-COMMENT ON COLUMN wvp_device_channel.gb_secrecy IS 'GB保密级别';
-COMMENT ON COLUMN wvp_device_channel.gb_ip_address IS 'GB IP';
-COMMENT ON COLUMN wvp_device_channel.gb_port IS 'GB端口';
-COMMENT ON COLUMN wvp_device_channel.gb_password IS 'GB接入密码';
-COMMENT ON COLUMN wvp_device_channel.gb_status IS 'GB状态';
-COMMENT ON COLUMN wvp_device_channel.gb_longitude IS 'GB经度';
-COMMENT ON COLUMN wvp_device_channel.gb_latitude IS 'GB纬度';
-COMMENT ON COLUMN wvp_device_channel.gb_business_group_id IS 'GB业务分组';
-COMMENT ON COLUMN wvp_device_channel.gb_ptz_type IS 'GB云台类型';
-COMMENT ON COLUMN wvp_device_channel.gb_position_type IS 'GB点位类型';
-COMMENT ON COLUMN wvp_device_channel.gb_room_type IS 'GB房间类型';
-COMMENT ON COLUMN wvp_device_channel.gb_use_type IS 'GB用途';
-COMMENT ON COLUMN wvp_device_channel.gb_supply_light_type IS 'GB补光';
-COMMENT ON COLUMN wvp_device_channel.gb_direction_type IS 'GB朝向';
-COMMENT ON COLUMN wvp_device_channel.gb_resolution IS 'GB分辨率';
-COMMENT ON COLUMN wvp_device_channel.gb_download_speed IS 'GB码流速率';
-COMMENT ON COLUMN wvp_device_channel.gb_svc_space_support_mod IS 'GB空域SVC';
-COMMENT ON COLUMN wvp_device_channel.gb_svc_time_support_mode IS 'GB时域SVC';
-COMMENT ON COLUMN wvp_device_channel.record_plan_id IS '绑定的录像计划ID';
-COMMENT ON COLUMN wvp_device_channel.data_type IS '数据类型标识';
-COMMENT ON COLUMN wvp_device_channel.data_device_id IS '数据来源设备主键';
-COMMENT ON COLUMN wvp_device_channel.gps_speed IS 'GPS速度';
-COMMENT ON COLUMN wvp_device_channel.gps_altitude IS 'GPS海拔';
-COMMENT ON COLUMN wvp_device_channel.gps_direction IS 'GPS方向';
-COMMENT ON COLUMN wvp_device_channel.enable_broadcast IS '是否支持广播';
-
-
-CREATE INDEX idx_data_type ON wvp_device_channel (data_type);
-CREATE INDEX idx_data_device_id ON wvp_device_channel (data_device_id);
-
-drop table IF EXISTS wvp_media_server;
-create table IF NOT EXISTS wvp_media_server
-(
- id character varying(255) primary key,
- ip character varying(50),
- hook_ip character varying(50),
- sdp_ip character varying(50),
- stream_ip character varying(50),
- http_port integer,
- http_ssl_port integer,
- rtmp_port integer,
- rtmp_ssl_port integer,
- rtp_proxy_port integer,
- rtsp_port integer,
- rtsp_ssl_port integer,
- flv_port integer,
- flv_ssl_port integer,
- mp4_port integer,
- mp4_ssl_port integer,
- ws_flv_port integer,
- ws_flv_ssl_port integer,
- jtt_proxy_port integer,
- auto_config bool default false,
- secret character varying(50),
- type character varying(50) default 'zlm',
- rtp_enable bool default false,
- rtp_port_range character varying(50),
- send_rtp_port_range character varying(50),
- record_assist_port integer,
- default_server bool default false,
- create_time character varying(50),
- update_time character varying(50),
- hook_alive_interval integer,
- record_path character varying(255),
- record_day integer default 7,
- transcode_suffix character varying(255),
- server_id character varying(50),
- constraint uk_media_server_unique_ip_http_port unique (ip, http_port, server_id)
-);
-COMMENT ON TABLE wvp_media_server IS '媒体服务器(如 ZLM)节点信息';
-COMMENT ON COLUMN wvp_media_server.id IS '媒体服务器ID';
-COMMENT ON COLUMN wvp_media_server.ip IS '服务器IP';
-COMMENT ON COLUMN wvp_media_server.hook_ip IS 'hook回调IP';
-COMMENT ON COLUMN wvp_media_server.sdp_ip IS 'SDP中使用的IP';
-COMMENT ON COLUMN wvp_media_server.stream_ip IS '推流使用的IP';
-COMMENT ON COLUMN wvp_media_server.http_port IS 'HTTP端口';
-COMMENT ON COLUMN wvp_media_server.http_ssl_port IS 'HTTPS端口';
-COMMENT ON COLUMN wvp_media_server.rtmp_port IS 'RTMP端口';
-COMMENT ON COLUMN wvp_media_server.rtmp_ssl_port IS 'RTMPS端口';
-COMMENT ON COLUMN wvp_media_server.rtp_proxy_port IS 'RTP代理端口';
-COMMENT ON COLUMN wvp_media_server.rtsp_port IS 'RTSP端口';
-COMMENT ON COLUMN wvp_media_server.rtsp_ssl_port IS 'RTSPS端口';
-COMMENT ON COLUMN wvp_media_server.flv_port IS 'FLV端口';
-COMMENT ON COLUMN wvp_media_server.flv_ssl_port IS 'FLV HTTPS端口';
-COMMENT ON COLUMN wvp_media_server.mp4_port IS 'MP4点播端口';
-COMMENT ON COLUMN wvp_media_server.mp4_ssl_port IS 'MP4 HTTPS端口';
-COMMENT ON COLUMN wvp_media_server.ws_flv_port IS 'WS-FLV端口';
-COMMENT ON COLUMN wvp_media_server.ws_flv_ssl_port IS 'WS-FLV HTTPS端口';
-COMMENT ON COLUMN wvp_media_server.jtt_proxy_port IS 'JT/T代理端口';
-COMMENT ON COLUMN wvp_media_server.auto_config IS '是否自动配置';
-COMMENT ON COLUMN wvp_media_server.secret IS 'ZLM校验密钥';
-COMMENT ON COLUMN wvp_media_server.type IS '节点类型';
-COMMENT ON COLUMN wvp_media_server.rtp_enable IS '是否开启RTP';
-COMMENT ON COLUMN wvp_media_server.rtp_port_range IS 'RTP端口范围';
-COMMENT ON COLUMN wvp_media_server.send_rtp_port_range IS '发送RTP端口范围';
-COMMENT ON COLUMN wvp_media_server.record_assist_port IS '录像辅助端口';
-COMMENT ON COLUMN wvp_media_server.default_server IS '是否默认节点';
-COMMENT ON COLUMN wvp_media_server.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_media_server.update_time IS '更新时间';
-COMMENT ON COLUMN wvp_media_server.hook_alive_interval IS 'hook心跳间隔';
-COMMENT ON COLUMN wvp_media_server.record_path IS '录像目录';
-COMMENT ON COLUMN wvp_media_server.record_day IS '录像保留天数';
-COMMENT ON COLUMN wvp_media_server.transcode_suffix IS '转码指令后缀';
-COMMENT ON COLUMN wvp_media_server.server_id IS '对应信令服务器ID';
-
-
-drop table IF EXISTS wvp_platform;
-create table IF NOT EXISTS wvp_platform
-(
- id serial primary key,
- enable bool default false,
- name character varying(255),
- server_gb_id character varying(50),
- server_gb_domain character varying(50),
- server_ip character varying(50),
- server_port integer,
- device_gb_id character varying(50),
- device_ip character varying(50),
- device_port character varying(50),
- username character varying(255),
- password character varying(50),
- expires character varying(50),
- keep_timeout character varying(50),
- transport character varying(50),
- civil_code character varying(50),
- manufacturer character varying(255),
- model character varying(255),
- address character varying(255),
- character_set character varying(50),
- ptz bool default false,
- rtcp bool default false,
- status bool default false,
- catalog_group integer,
- register_way integer,
- secrecy integer,
- create_time character varying(50),
- update_time character varying(50),
- as_message_channel bool default false,
- catalog_with_platform integer default 1,
- catalog_with_group integer default 1,
- catalog_with_region integer default 1,
- auto_push_channel bool default true,
- send_stream_ip character varying(50),
- server_id character varying(50),
- constraint uk_platform_unique_server_gb_id unique (server_gb_id)
-);
-COMMENT ON TABLE wvp_platform IS '上级国标平台注册信息';
-COMMENT ON COLUMN wvp_platform.id IS '主键ID';
-COMMENT ON COLUMN wvp_platform.enable IS '是否启用该平台注册';
-COMMENT ON COLUMN wvp_platform.name IS '平台名称';
-COMMENT ON COLUMN wvp_platform.server_gb_id IS '上级平台国标编码';
-COMMENT ON COLUMN wvp_platform.server_gb_domain IS '上级平台域编码';
-COMMENT ON COLUMN wvp_platform.server_ip IS '上级平台IP';
-COMMENT ON COLUMN wvp_platform.server_port IS '上级平台注册端口';
-COMMENT ON COLUMN wvp_platform.device_gb_id IS '本平台向上注册的国标编码';
-COMMENT ON COLUMN wvp_platform.device_ip IS '本平台信令IP';
-COMMENT ON COLUMN wvp_platform.device_port IS '本平台信令端口';
-COMMENT ON COLUMN wvp_platform.username IS '注册用户名';
-COMMENT ON COLUMN wvp_platform.password IS '注册密码';
-COMMENT ON COLUMN wvp_platform.expires IS '注册有效期';
-COMMENT ON COLUMN wvp_platform.keep_timeout IS '心跳超时时间';
-COMMENT ON COLUMN wvp_platform.transport IS '传输协议(UDP/TCP)';
-COMMENT ON COLUMN wvp_platform.civil_code IS '行政区划代码';
-COMMENT ON COLUMN wvp_platform.manufacturer IS '厂商';
-COMMENT ON COLUMN wvp_platform.model IS '型号';
-COMMENT ON COLUMN wvp_platform.address IS '地址';
-COMMENT ON COLUMN wvp_platform.character_set IS '字符集';
-COMMENT ON COLUMN wvp_platform.ptz IS '是否支持PTZ';
-COMMENT ON COLUMN wvp_platform.rtcp IS '是否开启RTCP';
-COMMENT ON COLUMN wvp_platform.status IS '注册状态';
-COMMENT ON COLUMN wvp_platform.catalog_group IS '目录分组方式';
-COMMENT ON COLUMN wvp_platform.register_way IS '注册方式';
-COMMENT ON COLUMN wvp_platform.secrecy IS '保密级别';
-COMMENT ON COLUMN wvp_platform.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_platform.update_time IS '更新时间';
-COMMENT ON COLUMN wvp_platform.as_message_channel IS '是否作为消息通道';
-COMMENT ON COLUMN wvp_platform.catalog_with_platform IS '是否推送平台目录';
-COMMENT ON COLUMN wvp_platform.catalog_with_group IS '是否推送分组目录';
-COMMENT ON COLUMN wvp_platform.catalog_with_region IS '是否推送区域目录';
-COMMENT ON COLUMN wvp_platform.auto_push_channel IS '是否自动推送通道';
-COMMENT ON COLUMN wvp_platform.send_stream_ip IS '推流时使用的IP';
-COMMENT ON COLUMN wvp_platform.server_id IS '对应信令服务器ID';
-
-
-drop table IF EXISTS wvp_platform_channel;
-create table IF NOT EXISTS wvp_platform_channel
-(
- id serial primary key,
- platform_id integer,
- device_channel_id integer,
- custom_device_id character varying(50),
- custom_name character varying(255),
- custom_manufacturer character varying(50),
- custom_model character varying(50),
- custom_owner character varying(50),
- custom_civil_code character varying(50),
- custom_block character varying(50),
- custom_address character varying(50),
- custom_parental integer,
- custom_parent_id character varying(50),
- custom_safety_way integer,
- custom_register_way integer,
- custom_cert_num character varying(50),
- custom_certifiable integer,
- custom_err_code integer,
- custom_end_time character varying(50),
- custom_secrecy integer,
- custom_ip_address character varying(50),
- custom_port integer,
- custom_password character varying(255),
- custom_status character varying(50),
- custom_longitude double precision,
- custom_latitude double precision,
- custom_ptz_type integer,
- custom_position_type integer,
- custom_room_type integer,
- custom_use_type integer,
- custom_supply_light_type integer,
- custom_direction_type integer,
- custom_resolution character varying(255),
- custom_business_group_id character varying(255),
- custom_download_speed character varying(255),
- custom_svc_space_support_mod integer,
- custom_svc_time_support_mode integer,
- constraint uk_platform_gb_channel_platform_id_catalog_id_device_channel_id unique (platform_id, device_channel_id),
- constraint uk_platform_gb_channel_device_id unique (custom_device_id)
-);
-COMMENT ON TABLE wvp_platform_channel IS '国标平台下发的通道映射关系';
-COMMENT ON COLUMN wvp_platform_channel.id IS '主键ID';
-COMMENT ON COLUMN wvp_platform_channel.platform_id IS '平台ID';
-COMMENT ON COLUMN wvp_platform_channel.device_channel_id IS '本地通道表主键';
-COMMENT ON COLUMN wvp_platform_channel.custom_device_id IS '自定义国标编码';
-COMMENT ON COLUMN wvp_platform_channel.custom_name IS '自定义名称';
-COMMENT ON COLUMN wvp_platform_channel.custom_manufacturer IS '自定义厂商';
-COMMENT ON COLUMN wvp_platform_channel.custom_model IS '自定义型号';
-COMMENT ON COLUMN wvp_platform_channel.custom_owner IS '自定义归属';
-COMMENT ON COLUMN wvp_platform_channel.custom_civil_code IS '自定义行政区划';
-COMMENT ON COLUMN wvp_platform_channel.custom_block IS '自定义区域';
-COMMENT ON COLUMN wvp_platform_channel.custom_address IS '自定义地址';
-COMMENT ON COLUMN wvp_platform_channel.custom_parental IS '自定义父/子标识';
-COMMENT ON COLUMN wvp_platform_channel.custom_parent_id IS '自定义父节点';
-COMMENT ON COLUMN wvp_platform_channel.custom_safety_way IS '自定义安全防范';
-COMMENT ON COLUMN wvp_platform_channel.custom_register_way IS '自定义注册方式';
-COMMENT ON COLUMN wvp_platform_channel.custom_cert_num IS '自定义证书编号';
-COMMENT ON COLUMN wvp_platform_channel.custom_certifiable IS '自定义可认证标志';
-COMMENT ON COLUMN wvp_platform_channel.custom_err_code IS '自定义错误码';
-COMMENT ON COLUMN wvp_platform_channel.custom_end_time IS '自定义截止时间';
-COMMENT ON COLUMN wvp_platform_channel.custom_secrecy IS '自定义保密级别';
-COMMENT ON COLUMN wvp_platform_channel.custom_ip_address IS '自定义IP';
-COMMENT ON COLUMN wvp_platform_channel.custom_port IS '自定义端口';
-COMMENT ON COLUMN wvp_platform_channel.custom_password IS '自定义密码';
-COMMENT ON COLUMN wvp_platform_channel.custom_status IS '自定义状态';
-COMMENT ON COLUMN wvp_platform_channel.custom_longitude IS '自定义经度';
-COMMENT ON COLUMN wvp_platform_channel.custom_latitude IS '自定义纬度';
-COMMENT ON COLUMN wvp_platform_channel.custom_ptz_type IS '自定义云台类型';
-COMMENT ON COLUMN wvp_platform_channel.custom_position_type IS '自定义点位类型';
-COMMENT ON COLUMN wvp_platform_channel.custom_room_type IS '自定义房间类型';
-COMMENT ON COLUMN wvp_platform_channel.custom_use_type IS '自定义用途';
-COMMENT ON COLUMN wvp_platform_channel.custom_supply_light_type IS '自定义补光';
-COMMENT ON COLUMN wvp_platform_channel.custom_direction_type IS '自定义朝向';
-COMMENT ON COLUMN wvp_platform_channel.custom_resolution IS '自定义分辨率';
-COMMENT ON COLUMN wvp_platform_channel.custom_business_group_id IS '自定义业务分组';
-COMMENT ON COLUMN wvp_platform_channel.custom_download_speed IS '自定义码流速率';
-COMMENT ON COLUMN wvp_platform_channel.custom_svc_space_support_mod IS '自定义空域SVC';
-COMMENT ON COLUMN wvp_platform_channel.custom_svc_time_support_mode IS '自定义时域SVC';
-
-
-drop table IF EXISTS wvp_platform_group;
-create table IF NOT EXISTS wvp_platform_group
-(
- id serial primary key,
- platform_id integer,
- group_id integer,
- constraint uk_wvp_platform_group_platform_id_group_id unique (platform_id, group_id)
-);
-COMMENT ON TABLE wvp_platform_group IS '平台与分组(行政区划/组织)关系';
-COMMENT ON COLUMN wvp_platform_group.id IS '主键ID';
-COMMENT ON COLUMN wvp_platform_group.platform_id IS '平台ID';
-COMMENT ON COLUMN wvp_platform_group.group_id IS '分组ID';
-
-
-drop table IF EXISTS wvp_platform_region;
-create table IF NOT EXISTS wvp_platform_region
-(
- id serial primary key,
- platform_id integer,
- region_id integer,
- constraint uk_wvp_platform_region_platform_id_group_id unique (platform_id, region_id)
-);
-COMMENT ON TABLE wvp_platform_region IS '平台与区域关系';
-COMMENT ON COLUMN wvp_platform_region.id IS '主键ID';
-COMMENT ON COLUMN wvp_platform_region.platform_id IS '平台ID';
-COMMENT ON COLUMN wvp_platform_region.region_id IS '区域ID';
-
-
-drop table IF EXISTS wvp_stream_proxy;
-create table IF NOT EXISTS wvp_stream_proxy
-(
- id serial primary key,
- type character varying(50),
- app character varying(255),
- stream character varying(255),
- src_url character varying(255),
- timeout integer,
- ffmpeg_cmd_key character varying(255),
- rtsp_type character varying(50),
- media_server_id character varying(50),
- enable_audio bool default false,
- enable_mp4 bool default false,
- pulling bool default false,
- enable bool default false,
- create_time character varying(50),
- name character varying(255),
- update_time character varying(50),
- stream_key character varying(255),
- server_id character varying(50),
- enable_disable_none_reader bool default false,
- relates_media_server_id character varying(50),
- constraint uk_stream_proxy_app_stream unique (app, stream)
-);
-COMMENT ON TABLE wvp_stream_proxy IS '拉流代理/转推配置';
-COMMENT ON COLUMN wvp_stream_proxy.id IS '主键ID';
-COMMENT ON COLUMN wvp_stream_proxy.type IS '代理类型(拉流/推流)';
-COMMENT ON COLUMN wvp_stream_proxy.app IS '应用名';
-COMMENT ON COLUMN wvp_stream_proxy.stream IS '流ID';
-COMMENT ON COLUMN wvp_stream_proxy.src_url IS '源地址';
-COMMENT ON COLUMN wvp_stream_proxy.timeout IS '拉流超时时间';
-COMMENT ON COLUMN wvp_stream_proxy.ffmpeg_cmd_key IS 'FFmpeg命令模板键';
-COMMENT ON COLUMN wvp_stream_proxy.rtsp_type IS 'RTSP拉流方式';
-COMMENT ON COLUMN wvp_stream_proxy.media_server_id IS '指定媒体服务器ID';
-COMMENT ON COLUMN wvp_stream_proxy.enable_audio IS '是否启用音频';
-COMMENT ON COLUMN wvp_stream_proxy.enable_mp4 IS '是否录制MP4';
-COMMENT ON COLUMN wvp_stream_proxy.pulling IS '当前是否在拉流';
-COMMENT ON COLUMN wvp_stream_proxy.enable IS '是否启用该代理';
-COMMENT ON COLUMN wvp_stream_proxy.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_stream_proxy.name IS '代理名称';
-COMMENT ON COLUMN wvp_stream_proxy.update_time IS '更新时间';
-COMMENT ON COLUMN wvp_stream_proxy.stream_key IS '唯一流标识';
-COMMENT ON COLUMN wvp_stream_proxy.server_id IS '信令服务器ID';
-COMMENT ON COLUMN wvp_stream_proxy.enable_disable_none_reader IS '是否无人观看时自动停流';
-COMMENT ON COLUMN wvp_stream_proxy.relates_media_server_id IS '关联的媒体服务器ID';
-
-
-drop table IF EXISTS wvp_stream_push;
-create table IF NOT EXISTS wvp_stream_push
-(
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- create_time character varying(50),
- media_server_id character varying(50),
- server_id character varying(50),
- push_time character varying(50),
- status bool default false,
- update_time character varying(50),
- pushing bool default false,
- self bool default false,
- start_offline_push bool default true,
- constraint uk_stream_push_app_stream unique (app, stream)
-);
-COMMENT ON TABLE wvp_stream_push IS '推流会话记录';
-COMMENT ON COLUMN wvp_stream_push.id IS '主键ID';
-COMMENT ON COLUMN wvp_stream_push.app IS '应用名';
-COMMENT ON COLUMN wvp_stream_push.stream IS '流ID';
-COMMENT ON COLUMN wvp_stream_push.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_stream_push.media_server_id IS '推流所在媒体服务器';
-COMMENT ON COLUMN wvp_stream_push.server_id IS '信令服务器ID';
-COMMENT ON COLUMN wvp_stream_push.push_time IS '推流开始时间';
-COMMENT ON COLUMN wvp_stream_push.status IS '推流状态';
-COMMENT ON COLUMN wvp_stream_push.update_time IS '更新时间';
-COMMENT ON COLUMN wvp_stream_push.pushing IS '是否正在推流';
-COMMENT ON COLUMN wvp_stream_push.self IS '是否本地发起';
-COMMENT ON COLUMN wvp_stream_push.start_offline_push IS '是否离线后自动重推';
-
-
-drop table IF EXISTS wvp_cloud_record;
-create table IF NOT EXISTS wvp_cloud_record
-(
- id serial primary key,
- app character varying(255),
- stream character varying(255),
- call_id character varying(255),
- start_time int8,
- end_time int8,
- media_server_id character varying(50),
- server_id character varying(50),
- file_name character varying(255),
- folder character varying(500),
- file_path character varying(500),
- collect bool default false,
- file_size int8,
- time_len double precision
-);
-COMMENT ON TABLE wvp_cloud_record IS '云端录像记录';
-COMMENT ON COLUMN wvp_cloud_record.id IS '主键ID';
-COMMENT ON COLUMN wvp_cloud_record.app IS '应用名';
-COMMENT ON COLUMN wvp_cloud_record.stream IS '流ID';
-COMMENT ON COLUMN wvp_cloud_record.call_id IS '会话ID';
-COMMENT ON COLUMN wvp_cloud_record.start_time IS '录像开始时间';
-COMMENT ON COLUMN wvp_cloud_record.end_time IS '录像结束时间';
-COMMENT ON COLUMN wvp_cloud_record.media_server_id IS '媒体服务器ID';
-COMMENT ON COLUMN wvp_cloud_record.server_id IS '信令服务器ID';
-COMMENT ON COLUMN wvp_cloud_record.file_name IS '文件名';
-COMMENT ON COLUMN wvp_cloud_record.folder IS '目录';
-COMMENT ON COLUMN wvp_cloud_record.file_path IS '完整路径';
-COMMENT ON COLUMN wvp_cloud_record.collect IS '是否收藏';
-COMMENT ON COLUMN wvp_cloud_record.file_size IS '文件大小';
-COMMENT ON COLUMN wvp_cloud_record.time_len IS '时长';
-
-
-drop table IF EXISTS wvp_user;
-create table IF NOT EXISTS wvp_user
-(
- id serial primary key,
- username character varying(255),
- password character varying(255),
- role_id integer,
- create_time character varying(50),
- update_time character varying(50),
- push_key character varying(50),
- constraint uk_user_username unique (username)
-);
-COMMENT ON TABLE wvp_user IS '平台用户信息';
-COMMENT ON COLUMN wvp_user.id IS '主键ID';
-COMMENT ON COLUMN wvp_user.username IS '用户名';
-COMMENT ON COLUMN wvp_user.password IS '密码(MD5)';
-COMMENT ON COLUMN wvp_user.role_id IS '角色ID';
-COMMENT ON COLUMN wvp_user.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_user.update_time IS '更新时间';
-COMMENT ON COLUMN wvp_user.push_key IS '推送密钥';
-
-
-drop table IF EXISTS wvp_user_role;
-create table IF NOT EXISTS wvp_user_role
-(
- id serial primary key,
- name character varying(50),
- authority character varying(50),
- create_time character varying(50),
- update_time character varying(50)
-);
-COMMENT ON TABLE wvp_user_role IS '用户角色信息';
-COMMENT ON COLUMN wvp_user_role.id IS '主键ID';
-COMMENT ON COLUMN wvp_user_role.name IS '角色名称';
-COMMENT ON COLUMN wvp_user_role.authority IS '权限标识';
-COMMENT ON COLUMN wvp_user_role.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_user_role.update_time IS '更新时间';
-
-
-
-drop table IF EXISTS wvp_user_api_key;
-create table IF NOT EXISTS wvp_user_api_key
-(
- id serial primary key,
- user_id int8,
- app character varying(255),
- api_key text,
- expired_at int8,
- remark character varying(255),
- enable bool default true,
- create_time character varying(50),
- update_time character varying(50)
-);
-COMMENT ON COLUMN wvp_user_api_key.id IS '主键ID';
-COMMENT ON COLUMN wvp_user_api_key.user_id IS '关联用户ID';
-COMMENT ON COLUMN wvp_user_api_key.app IS '应用标识';
-COMMENT ON COLUMN wvp_user_api_key.api_key IS 'API Key';
-COMMENT ON COLUMN wvp_user_api_key.expired_at IS '过期时间戳';
-COMMENT ON COLUMN wvp_user_api_key.remark IS '备注';
-COMMENT ON COLUMN wvp_user_api_key.enable IS '是否启用';
-COMMENT ON COLUMN wvp_user_api_key.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_user_api_key.update_time IS '更新时间';
-
-
-
-/*初始数据*/
-INSERT INTO wvp_user
-VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 1, '2021-04-13 14:14:57', '2021-04-13 14:14:57',
- '3e80d1762a324d5b0ff636e0bd16f1e3');
-INSERT INTO wvp_user_role
-VALUES (1, 'admin', '0', '2021-04-13 14:14:57', '2021-04-13 14:14:57');
-
-drop table IF EXISTS wvp_common_group;
-create table IF NOT EXISTS wvp_common_group
-(
- id serial primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- business_group varchar(50) NOT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- civil_code varchar(50) default null,
- alias varchar(255) default null,
- constraint uk_common_group_device_platform unique (device_id)
-);
-COMMENT ON TABLE wvp_common_group IS '通用分组表,存储行业或组织结构';
-COMMENT ON COLUMN wvp_common_group.id IS '主键ID';
-COMMENT ON COLUMN wvp_common_group.device_id IS '分组对应的平台或设备ID';
-COMMENT ON COLUMN wvp_common_group.name IS '分组名称';
-COMMENT ON COLUMN wvp_common_group.parent_id IS '父级分组ID';
-COMMENT ON COLUMN wvp_common_group.parent_device_id IS '父级分组对应的设备ID';
-COMMENT ON COLUMN wvp_common_group.business_group IS '业务分组编码';
-COMMENT ON COLUMN wvp_common_group.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_common_group.update_time IS '更新时间';
-COMMENT ON COLUMN wvp_common_group.civil_code IS '行政区划代码';
-COMMENT ON COLUMN wvp_common_group.alias IS '别名';
-
-
-drop table IF EXISTS wvp_common_region;
-create table IF NOT EXISTS wvp_common_region
-(
- id serial primary key,
- device_id varchar(50) NOT NULL,
- name varchar(255) NOT NULL,
- parent_id int,
- parent_device_id varchar(50) DEFAULT NULL,
- create_time varchar(50) NOT NULL,
- update_time varchar(50) NOT NULL,
- constraint uk_common_region_device_id unique (device_id)
-);
-COMMENT ON TABLE wvp_common_region IS '通用行政区域表';
-COMMENT ON COLUMN wvp_common_region.id IS '主键ID';
-COMMENT ON COLUMN wvp_common_region.device_id IS '区域对应的平台或设备ID';
-COMMENT ON COLUMN wvp_common_region.name IS '区域名称';
-COMMENT ON COLUMN wvp_common_region.parent_id IS '父级区域ID';
-COMMENT ON COLUMN wvp_common_region.parent_device_id IS '父级区域的设备ID';
-COMMENT ON COLUMN wvp_common_region.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_common_region.update_time IS '更新时间';
-
-
-drop table IF EXISTS wvp_record_plan;
-create table IF NOT EXISTS wvp_record_plan
-(
- id serial primary key,
- snap bool default false,
- name varchar(255) NOT NULL,
- create_time character varying(50),
- update_time character varying(50)
-);
-COMMENT ON TABLE wvp_record_plan IS '录像计划基础信息';
-COMMENT ON COLUMN wvp_record_plan.id IS '主键ID';
-COMMENT ON COLUMN wvp_record_plan.snap IS '是否抓图计划';
-COMMENT ON COLUMN wvp_record_plan.name IS '计划名称';
-COMMENT ON COLUMN wvp_record_plan.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_record_plan.update_time IS '更新时间';
-
-
-drop table IF EXISTS wvp_record_plan_item;
-create table IF NOT EXISTS wvp_record_plan_item
-(
- id serial primary key,
- "start" int,
- stop int,
- week_day int,
- plan_id int,
- create_time character varying(50),
- update_time character varying(50)
-);
-COMMENT ON TABLE wvp_record_plan_item IS '录像计划条目表';
-COMMENT ON COLUMN wvp_record_plan_item.id IS '主键ID';
-COMMENT ON COLUMN wvp_record_plan_item."start" IS '开始时间(分钟)';
-COMMENT ON COLUMN wvp_record_plan_item.stop IS '结束时间(分钟)';
-COMMENT ON COLUMN wvp_record_plan_item.week_day IS '星期(0-6)';
-COMMENT ON COLUMN wvp_record_plan_item.plan_id IS '所属录像计划ID';
-COMMENT ON COLUMN wvp_record_plan_item.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_record_plan_item.update_time IS '更新时间';
-
-
-drop table IF EXISTS wvp_jt_terminal;
-create table IF NOT EXISTS wvp_jt_terminal (
- id serial primary key,
- phone_number character varying(50),
- terminal_id character varying(50),
- province_id character varying(50),
- province_text character varying(100),
- city_id character varying(50),
- city_text character varying(100),
- maker_id character varying(50),
- model character varying(50),
- plate_color character varying(50),
- plate_no character varying(50),
- longitude double precision,
- latitude double precision,
- status bool default false,
- register_time character varying(50) default null,
- update_time character varying(50) not null,
- create_time character varying(50) not null,
- geo_coord_sys character varying(50),
- media_server_id character varying(50) default 'auto',
- sdp_ip character varying(50),
- constraint uk_jt_device_id_device_id unique (id, phone_number)
-);
-COMMENT ON TABLE wvp_jt_terminal IS '交通部 JT/T 1076 终端信息';
-COMMENT ON COLUMN wvp_jt_terminal.id IS '主键ID';
-COMMENT ON COLUMN wvp_jt_terminal.phone_number IS '终端SIM卡号';
-COMMENT ON COLUMN wvp_jt_terminal.terminal_id IS '终端设备ID';
-COMMENT ON COLUMN wvp_jt_terminal.province_id IS '所在省份ID';
-COMMENT ON COLUMN wvp_jt_terminal.province_text IS '所在省份名称';
-COMMENT ON COLUMN wvp_jt_terminal.city_id IS '所在城市ID';
-COMMENT ON COLUMN wvp_jt_terminal.city_text IS '所在城市名称';
-COMMENT ON COLUMN wvp_jt_terminal.maker_id IS '厂商ID';
-COMMENT ON COLUMN wvp_jt_terminal.model IS '终端型号';
-COMMENT ON COLUMN wvp_jt_terminal.plate_color IS '车牌颜色';
-COMMENT ON COLUMN wvp_jt_terminal.plate_no IS '车牌号码';
-COMMENT ON COLUMN wvp_jt_terminal.longitude IS '经度';
-COMMENT ON COLUMN wvp_jt_terminal.latitude IS '纬度';
-COMMENT ON COLUMN wvp_jt_terminal.status IS '在线状态';
-COMMENT ON COLUMN wvp_jt_terminal.register_time IS '注册时间';
-COMMENT ON COLUMN wvp_jt_terminal.update_time IS '更新时间';
-COMMENT ON COLUMN wvp_jt_terminal.create_time IS '创建时间';
-COMMENT ON COLUMN wvp_jt_terminal.geo_coord_sys IS '坐标系';
-COMMENT ON COLUMN wvp_jt_terminal.media_server_id IS '媒体服务器ID';
-COMMENT ON COLUMN wvp_jt_terminal.sdp_ip IS 'SDP IP';
-
-drop table IF EXISTS wvp_jt_channel;
-create table IF NOT EXISTS wvp_jt_channel (
- id serial primary key,
- terminal_db_id integer,
- channel_id integer,
- has_audio bool default false,
- name character varying(255),
- update_time character varying(50) not null,
- create_time character varying(50) not null,
- constraint uk_jt_channel_id_device_id unique (terminal_db_id, channel_id)
-);
-COMMENT ON TABLE wvp_jt_channel IS '交通部 JT/T 1076 通道信息';
-COMMENT ON COLUMN wvp_jt_channel.id IS '主键ID';
-COMMENT ON COLUMN wvp_jt_channel.terminal_db_id IS '所属终端记录ID';
-COMMENT ON COLUMN wvp_jt_channel.channel_id IS '通道号';
-COMMENT ON COLUMN wvp_jt_channel.has_audio IS '是否有音频';
-COMMENT ON COLUMN wvp_jt_channel.name IS '通道名称';
-COMMENT ON COLUMN wvp_jt_channel.update_time IS '更新时间';
-COMMENT ON COLUMN wvp_jt_channel.create_time IS '创建时间';
diff --git a/docker/wvp/wvpcode/数据库/2.7.4/更新-mysql-2.7.4.sql b/docker/wvp/wvpcode/数据库/2.7.4/更新-mysql-2.7.4.sql
deleted file mode 100644
index 7cca80e..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.4/更新-mysql-2.7.4.sql
+++ /dev/null
@@ -1,127 +0,0 @@
-drop table IF EXISTS wvp_jt_terminal;
-create table IF NOT EXISTS wvp_jt_terminal (
- id serial primary key,
- phone_number character varying(50),
- terminal_id character varying(50),
- province_id character varying(50),
- province_text character varying(100),
- city_id character varying(50),
- city_text character varying(100),
- maker_id character varying(50),
- model character varying(50),
- plate_color character varying(50),
- plate_no character varying(50),
- longitude double precision,
- latitude double precision,
- status bool default false,
- register_time character varying(50) default null,
- update_time character varying(50) not null,
- create_time character varying(50) not null,
- geo_coord_sys character varying(50),
- media_server_id character varying(50) default 'auto',
- sdp_ip character varying(50),
- constraint uk_jt_device_id_device_id unique (id, phone_number)
-);
-
-drop table IF EXISTS wvp_jt_channel;
-create table IF NOT EXISTS wvp_jt_channel (
- id serial primary key,
- terminal_db_id integer,
- channel_id integer,
- has_audio bool default false,
- name character varying(255),
- update_time character varying(50) not null,
- create_time character varying(50) not null,
- constraint uk_jt_channel_id_device_id unique (terminal_db_id, channel_id)
-);
-
-/*
-* 20250708
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250708`()
-BEGIN
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'jtt_proxy_port')
- THEN
- ALTER TABLE wvp_media_server ADD jtt_proxy_port integer;
- END IF;
-END; //
-call wvp_20250708();
-DROP PROCEDURE wvp_20250708;
-DELIMITER ;
-
-/*
-* 20250917
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250917`()
-BEGIN
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'mp4_port')
- THEN
- ALTER TABLE wvp_media_server ADD mp4_port integer;
- END IF;
-
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_media_server' and column_name = 'mp4_ssl_port')
- THEN
- ALTER TABLE wvp_media_server ADD mp4_ssl_port integer;
- END IF;
-END; //
-call wvp_20250917();
-DROP PROCEDURE wvp_20250917;
-DELIMITER ;
-
-/*
-* 20250924
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20250924`()
-BEGIN
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'enable_broadcast')
- THEN
- ALTER TABLE wvp_device_channel ADD enable_broadcast integer default 0;
- END IF;
-
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'map_level')
- THEN
- ALTER TABLE wvp_device_channel ADD map_level integer default 0;
- END IF;
-
- IF NOT EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_common_group' and column_name = 'alias')
- THEN
- ALTER TABLE wvp_common_group ADD alias varchar(255) default null;
- END IF;
-END; //
-call wvp_20250924();
-DROP PROCEDURE wvp_20250924;
-DELIMITER ;
-
-
-/*
-* 20251027
-*/
-DELIMITER // -- 重定义分隔符避免分号冲突
-CREATE PROCEDURE `wvp_20251027`()
-BEGIN
- IF EXISTS (SELECT column_name FROM information_schema.columns
- WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_stream_proxy' and column_name = 'enable_remove_none_reader')
- THEN
- ALTER TABLE wvp_stream_proxy DROP enable_remove_none_reader;
- END IF;
-END; //
-call wvp_20251027();
-DROP PROCEDURE wvp_20251027;
-DELIMITER ;
-
-
-
-
-
-
-
-
diff --git a/docker/wvp/wvpcode/数据库/2.7.4/更新-postgresql-kingbase-2.7.4.sql b/docker/wvp/wvpcode/数据库/2.7.4/更新-postgresql-kingbase-2.7.4.sql
deleted file mode 100644
index 5cc34f9..0000000
--- a/docker/wvp/wvpcode/数据库/2.7.4/更新-postgresql-kingbase-2.7.4.sql
+++ /dev/null
@@ -1,44 +0,0 @@
-drop table IF EXISTS wvp_jt_terminal;
-create table IF NOT EXISTS wvp_jt_terminal (
- id serial primary key,
- phone_number character varying(50),
- terminal_id character varying(50),
- province_id character varying(50),
- province_text character varying(100),
- city_id character varying(50),
- city_text character varying(100),
- maker_id character varying(50),
- model character varying(50),
- plate_color character varying(50),
- plate_no character varying(50),
- longitude double precision,
- latitude double precision,
- status bool default false,
- register_time character varying(50) default null,
- update_time character varying(50) not null,
- create_time character varying(50) not null,
- geo_coord_sys character varying(50),
- media_server_id character varying(50) default 'auto',
- sdp_ip character varying(50),
- constraint uk_jt_device_id_device_id unique (id, phone_number)
-);
-drop table IF EXISTS wvp_jt_channel;
-create table IF NOT EXISTS wvp_jt_channel (
- id serial primary key,
- terminal_db_id integer,
- channel_id integer,
- has_audio bool default false,
- name character varying(255),
- update_time character varying(50) not null,
- create_time character varying(50) not null,
- constraint uk_jt_channel_id_device_id unique (terminal_db_id, channel_id)
-);
-
-ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS jtt_proxy_port integer;
-ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS mp4_port integer;
-ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS mp4_ssl_port integer;
-
-ALTER table wvp_device_channel ADD COLUMN IF NOT EXISTS enable_broadcast integer default 0;
-ALTER table wvp_device_channel ADD COLUMN IF NOT EXISTS map_level integer default 0;
-ALTER table wvp_common_group ADD COLUMN IF NOT EXISTS alias varchar(255) default null;
-ALTER table wvp_stream_proxy DROP COLUMN IF EXISTS enable_remove_none_reader;
diff --git a/docker/wvp/wvpcode/数据库/old/2.6.6-2.6.7更新.sql b/docker/wvp/wvpcode/数据库/old/2.6.6-2.6.7更新.sql
deleted file mode 100755
index 285d573..0000000
--- a/docker/wvp/wvpcode/数据库/old/2.6.6-2.6.7更新.sql
+++ /dev/null
@@ -1,13 +0,0 @@
-alter table device
- add asMessageChannel int default 0;
-
-alter table parent_platform
- add asMessageChannel int default 0;
-
-alter table device
- add mediaServerId varchar(50) default null;
-
-ALTER TABLE device
- ADD COLUMN `switchPrimarySubStream` bit(1) NOT NULL DEFAULT b'0' COMMENT '开启主子码流切换的开关(0-不开启,1-开启)现在已知支持设备为 大华、TP——LINK全系设备' AFTER `keepalive_interval_time`
-
-
diff --git a/docker/wvp/wvpcode/数据库/old/2.6.8升级2.6.9.sql b/docker/wvp/wvpcode/数据库/old/2.6.8升级2.6.9.sql
deleted file mode 100644
index 49436ce..0000000
--- a/docker/wvp/wvpcode/数据库/old/2.6.8升级2.6.9.sql
+++ /dev/null
@@ -1,502 +0,0 @@
-alter table device
- change deviceId device_id varchar(50) not null;
-
-alter table device
- change streamMode stream_mode varchar(50) null;
-
-alter table device
- change registerTime register_time varchar(50) null;
-
-alter table device
- change keepaliveTime keepalive_time varchar(50) null;
-
-alter table device
- change createTime create_time varchar(50) not null;
-
-alter table device
- change updateTime update_time varchar(50) not null;
-
-alter table device
- change subscribeCycleForCatalog subscribe_cycle_for_catalog bool default false;
-
-alter table device
- change subscribeCycleForMobilePosition subscribe_cycle_for_mobile_position bool default false;
-
-alter table device
- change mobilePositionSubmissionInterval mobile_position_submission_interval int default 5 not null;
-
-alter table device
- change subscribeCycleForAlarm subscribe_cycle_for_alarm bool default false;
-
-alter table device
- change hostAddress host_address varchar(50) null;
-
-alter table device
- change ssrcCheck ssrc_check bool default false;
-
-alter table device
- change geoCoordSys geo_coord_sys varchar(50) not null;
-
-alter table device
- drop column treeType;
-
-alter table device
- change mediaServerId media_server_id varchar(50) default 'auto' null;
-
-alter table device
- change sdpIp sdp_ip varchar(50) null;
-
-alter table device
- change localIp local_ip varchar(50) null;
-
-alter table device
- change asMessageChannel as_message_channel bool default false;
-
-alter table device
- change keepaliveIntervalTime keepalive_interval_time int null;
-
-alter table device
- change online on_line varchar(50) null;
-
-alter table device
- add COLUMN switch_primary_sub_stream bool default false comment '开启主子码流切换的开关(0-不开启,1-开启)现在已知支持设备为 大华、TP——LINK全系设备'
-
-
-alter table device_alarm
- change deviceId device_id varchar(50) not null;
-
-alter table device_alarm
- change channelId channel_id varchar(50) not null;
-
-alter table device_alarm
- change alarmPriority alarm_priority varchar(50) not null;
-
-alter table device_alarm
- change alarmMethod alarm_method varchar(50) null;
-
-alter table device_alarm
- change alarmTime alarm_time varchar(50) not null;
-
-alter table device_alarm
- change alarmDescription alarm_description varchar(255) null;
-
-alter table device_alarm
- change alarmType alarm_type varchar(50) null;
-
-alter table device_alarm
- change createTime create_time varchar(50) null;
-
-alter table device_channel
- change channelId channel_id varchar(50) not null;
-
-alter table device_channel
- change civilCode civil_code varchar(50) null;
-
-alter table device_channel
- change parentId parent_id varchar(50) null;
-
-alter table device_channel
- change safetyWay safety_way int null;
-
-alter table device_channel
- change registerWay register_way int null;
-
-alter table device_channel
- change certNum cert_num varchar(50) null;
-
-alter table device_channel
- change errCode err_code int null;
-
-alter table device_channel
- change endTime end_time varchar(50) null;
-
-alter table device_channel
- change ipAddress ip_address varchar(50) null;
-
-alter table device_channel
- change PTZType ptz_type int null;
-
-alter table device_channel
- change status status bool default false;
-
-alter table device_channel
- change streamId stream_id varchar(255) null;
-
-alter table device_channel
- change deviceId device_id varchar(50) not null;
-
-
-alter table device_channel
- change hasAudio has_audio bool default false;
-
-alter table device_channel
- change createTime create_time varchar(50) not null;
-
-alter table device_channel
- change updateTime update_time varchar(50) not null;
-
-alter table device_channel
- change subCount sub_count int default 0 null;
-
-alter table device_channel
- change longitudeGcj02 longitude_gcj02 double null;
-
-alter table device_channel
- change latitudeGcj02 latitude_gcj02 double null;
-
-alter table device_channel
- change longitudeWgs84 longitude_wgs84 double null;
-
-alter table device_channel
- change latitudeWgs84 latitude_wgs84 double null;
-
-alter table device_channel
- change businessGroupId business_group_id varchar(50) null;
-
-alter table device_channel
- change gpsTime gps_time varchar(50) null;
-
-alter table device_mobile_position
- change deviceId device_id varchar(50) not null;
-
-alter table device_mobile_position
- change channelId channel_id varchar(50) not null;
-
-alter table device_mobile_position
- change deviceName device_name varchar(255) null;
-
-alter table device_mobile_position
- change reportSource report_source varchar(50) null;
-
-alter table device_mobile_position
- change longitudeGcj02 longitude_gcj02 double null;
-
-alter table device_mobile_position
- change latitudeGcj02 latitude_gcj02 double null;
-
-alter table device_mobile_position
- change longitudeWgs84 longitude_wgs84 double null;
-
-alter table device_mobile_position
- change latitudeWgs84 latitude_wgs84 double null;
-
-alter table device_mobile_position
- change createTime create_time varchar(50) null;
-
-alter table gb_stream
- change gbStreamId gb_stream_id int auto_increment;
-
-alter table gb_stream
- change gbId gb_id varchar(50) not null;
-
-alter table gb_stream
- change streamType stream_type varchar(50) null;
-
-alter table gb_stream
- change mediaServerId media_server_id varchar(50) null;
-
-alter table gb_stream
- change createTime create_time varchar(50) null;
-
-alter table log
- change createTime create_time varchar(50) not null;
-
-alter table media_server
- change hookIp hook_ip varchar(50) not null;
-
-alter table media_server
- add send_rtp_port_range varchar(50) not null;
-
-alter table media_server
- add column send_rtp_port_range varchar(50) default null;
-
-alter table media_server
- change sdpIp sdp_ip varchar(50) not null;
-
-alter table media_server
- change streamIp stream_ip varchar(50) not null;
-
-alter table media_server
- change httpPort http_port int not null;
-
-alter table media_server
- change httpSSlPort http_ssl_port int not null;
-
-alter table media_server
- change rtmpPort rtmp_port int not null;
-
-alter table media_server
- change rtmpSSlPort rtmp_ssl_port int not null;
-
-alter table media_server
- change rtpProxyPort rtp_proxy_port int not null;
-
-alter table media_server
- change rtspPort rtsp_port int not null;
-
-alter table media_server
- change rtspSSLPort rtsp_ssl_port int not null;
-
-alter table media_server
- change autoConfig auto_config bool default true;
-
-alter table media_server
- change rtpEnable rtp_enable bool default false;
-
-alter table media_server
- change rtpPortRange rtp_port_range varchar(50) not null;
-
-alter table media_server
- change recordAssistPort record_assist_port int not null;
-
-alter table media_server
- change defaultServer default_server bool default false;
-
-alter table media_server
- change createTime create_time varchar(50) not null;
-
-alter table media_server
- change updateTime update_time varchar(50) not null;
-
-alter table media_server
- change hookAliveInterval hook_alive_interval int not null;
-
-alter table parent_platform
- change serverGBId server_gb_id varchar(50) not null;
-
-alter table parent_platform
- change serverGBDomain server_gb_domain varchar(50) null;
-
-alter table parent_platform
- change serverIP server_ip varchar(50) null;
-
-alter table parent_platform
- change serverPort server_port int null;
-
-alter table parent_platform
- change deviceGBId device_gb_id varchar(50) not null;
-
-alter table parent_platform
- change deviceIp device_ip varchar(50) null;
-
-alter table parent_platform
- change devicePort device_port varchar(50) null;
-
-alter table parent_platform
- change keepTimeout keep_timeout varchar(50) null;
-
-alter table parent_platform
- change characterSet character_set varchar(50) null;
-
-alter table parent_platform
- change catalogId catalog_id varchar(50) not null;
-
-alter table parent_platform
- change startOfflinePush start_offline_push bool default false;
-
-alter table parent_platform
- change administrativeDivision administrative_division varchar(50) not null;
-
-alter table parent_platform
- change catalogGroup catalog_group int default 1 null;
-
-alter table parent_platform
- change createTime create_time varchar(50) null;
-
-alter table parent_platform
- change updateTime update_time varchar(50) null;
-
-alter table parent_platform
- drop column treeType;
-
-alter table parent_platform
- change asMessageChannel as_message_channel bool default false;
-
-alter table parent_platform
- change enable enable bool default false;
-
-alter table parent_platform
- change ptz ptz bool default false;
-
-alter table parent_platform
- change rtcp rtcp bool default false;
-
-alter table parent_platform
- change status status bool default false;
-
-alter table parent_platform
- change status status bool default false;
-
-alter table platform_catalog
- change platformId platform_id varchar(50) not null;
-
-alter table platform_catalog
- change parentId parent_id varchar(50) null;
-
-alter table platform_catalog
- change civilCode civil_code varchar(50) null;
-
-alter table platform_catalog
- change businessGroupId business_group_id varchar(50) null;
-
-alter table platform_gb_channel
- change platformId platform_id varchar(50) not null;
-
-alter table platform_gb_channel
- change catalogId catalog_id varchar(50) not null;
-
-alter table platform_gb_channel
- change deviceChannelId device_channel_id int not null;
-
-alter table platform_gb_stream
- change platformId platform_id varchar(50) not null;
-
-alter table platform_gb_stream
- change catalogId catalog_id varchar(50) not null;
-
-alter table platform_gb_stream
- change gbStreamId gb_stream_id int not null;
-
-alter table stream_proxy
- change mediaServerId media_server_id varchar(50) null;
-
-alter table stream_proxy
- change createTime create_time varchar(50) not null;
-
-alter table stream_proxy
- change updateTime update_time varchar(50) null;
-
-alter table stream_proxy
- change enable_remove_none_reader enable_remove_none_reader bool default false;
-
-alter table stream_proxy
- change enable_disable_none_reader enable_disable_none_reader bool default false;
-
-alter table stream_proxy
- change enable_audio enable_audio bool default false;
-
-alter table stream_proxy
- change enable_mp4 enable_mp4 bool default false;
-
-alter table stream_proxy
- change enable enable bool default false;
-
-alter table stream_push
- change totalReaderCount total_reader_count varchar(50) null;
-
-alter table stream_push
- change originType origin_type int null;
-
-alter table stream_push
- change originTypeStr origin_type_str varchar(50) null;
-
-alter table stream_push
- change createTime create_time varchar(50) null;
-
-alter table stream_push
- change aliveSecond alive_second int null;
-
-alter table stream_push
- change mediaServerId media_server_id varchar(50) null;
-
-alter table stream_push
- change status status bool default false;
-
-alter table stream_push
- change pushTime push_time varchar(50) null;
-
-alter table stream_push
- change updateTime update_time varchar(50) null;
-
-alter table stream_push
- change pushIng push_ing bool default false;
-
-alter table stream_push
- change status status bool default false;
-
-alter table stream_push
- change self self bool default false;
-
-alter table stream_push
- drop column serverId;
-
-
-alter table user
- change roleId role_id int not null;
-
-alter table user
- change createTime create_time varchar(50) not null;
-
-alter table user
- change updateTime update_time varchar(50) not null;
-
-alter table user
- change pushKey push_key varchar(50) null;
-
-alter table user_role
- change createTime create_time varchar(50) not null;
-
-alter table user_role
- change updateTime update_time varchar(50) not null;
-
-rename table device to wvp_device;
-rename table device_alarm to wvp_device_alarm;
-rename table device_channel to wvp_device_channel;
-rename table device_mobile_position to wvp_device_mobile_position;
-rename table gb_stream to wvp_gb_stream;
-rename table log to wvp_log;
-rename table media_server to wvp_media_server;
-rename table parent_platform to wvp_platform;
-rename table platform_catalog to wvp_platform_catalog;
-rename table platform_gb_channel to wvp_platform_channel;
-rename table platform_gb_stream to wvp_platform_gb_stream;
-rename table stream_proxy to wvp_stream_proxy;
-rename table stream_push to wvp_stream_push;
-rename table user to wvp_user;
-rename table user_role to wvp_user_role;
-
-alter table wvp_device add column broadcast_push_after_ack bool default false;
-alter table wvp_device_channel add column custom_name varchar(255) null ;
-alter table wvp_device_channel add column custom_longitude double null ;
-alter table wvp_device_channel add column custom_latitude double null ;
-alter table wvp_device_channel add column custom_ptz_type int null ;
-
-create table wvp_resources_tree (
- id serial primary key ,
- is_catalog bool default true,
- device_channel_id integer ,
- gb_stream_id integer,
- name character varying(255),
- parentId integer,
- path character varying(255)
-);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docker/wvp/wvpcode/数据库/old/2.6.8补丁更新.sql b/docker/wvp/wvpcode/数据库/old/2.6.8补丁更新.sql
deleted file mode 100644
index 8ce9d54..0000000
--- a/docker/wvp/wvpcode/数据库/old/2.6.8补丁更新.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-alter table media_server
- add sendRtpPortRange varchar(50) not null;
\ No newline at end of file
diff --git a/docker/wvp/wvpcode/数据库/old/clean.sql b/docker/wvp/wvpcode/数据库/old/clean.sql
deleted file mode 100644
index b49fa1c..0000000
--- a/docker/wvp/wvpcode/数据库/old/clean.sql
+++ /dev/null
@@ -1,13 +0,0 @@
-delete from wvp-device;
-delete from wvp-device_alarm;
-delete from wvp-device_channel;
-delete from wvp-device_mobile_position;
-delete from wvp-gb_stream;
-delete from wvp-log;
-delete from wvp-media_server;
-delete from wvp-parent_platform;
-delete from wvp-platform_catalog;
-delete from wvp-platform_gb_channel;
-delete from wvp-platform_gb_stream;
-delete from wvp-stream_proxy;
-delete from wvp-stream_push;
\ No newline at end of file