2014-01-17 23:50:05 +08:00
-- MySQL dump 10.13 Distrib 5.6.13, for Linux (i686)
2005-12-21 07:00:58 +08:00
--
2014-01-17 23:50:05 +08:00
-- Host: localhost Database: @ZM_DB_NAME@
2006-11-17 03:16:19 +08:00
-- ------------------------------------------------------
2014-01-17 23:50:05 +08:00
-- Server version 5.6.13
2006-11-17 03:16:19 +08:00
/* !40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */ ;
/* !40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */ ;
/* !40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */ ;
/* !40101 SET NAMES utf8 */ ;
/* !40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */ ;
/* !40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */ ;
/* !40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */ ;
/* !40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */ ;
--
-- Current Database: `@ZM_DB_NAME@`
2005-12-21 07:00:58 +08:00
--
2009-01-28 19:23:50 +08:00
CREATE DATABASE /* !32312 IF NOT EXISTS */ ` @ ZM_DB_NAME @ ` ;
2005-12-21 07:00:58 +08:00
2006-11-17 03:16:19 +08:00
USE ` @ ZM_DB_NAME @ ` ;
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `Config`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` Config ` ;
CREATE TABLE ` Config ` (
` Id ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
` Name ` varchar ( 32 ) NOT NULL default ' ' ,
` Value ` text NOT NULL ,
` Type ` tinytext NOT NULL ,
Error correction
Table "Users":
ERROR 1366 (HY000) at line 523: Incorrect integer value: '' for column 'Id' at row 1
Table "MonitorPresets":
ERROR 1366 (HY000) at line 550: Incorrect integer value: '' for column 'Id' at row 1
...and many others like this
Incorrect 'channel' field type in table "MonitorPresets":
ERROR 1366 (HY000) at line 550: Incorrect integer value: 'simple' for column 'Channel' at row 1
...and many others like this
"DefaultValue" field is very small in table "Config":
ERROR 1406 (22001) at line 743: Data too long for column 'DefaultValue' at row 1
Some 'INSERT INTO MonitorPresets' querys are wrong.
"Message" field is very small in table "Logs":
Can't write log entry 'insert into Logs ( TimeKey, Component, Pid, Level, Code, Message, File, Line ) values ( 1379059494.570980, 'web_php', 30387, -3, 'FAT', 'SQL-ERR \'Incorrect decimal value: \'\' for column \'MaxFPS\' at row 1\', statement was \'insert into Monitors set LinkedMonitors = \'\', Name = \'test\', Type = \'Remote\', Function = \'Monitor\', Enabled = \'1\', RefBlendPerc = \'12\', MaxFPS = \'\', AlarmMaxFPS = \'\', Device = \'/dev/video0\', Channel = \'0\', Format = \'255\', Palette = \'0\', LabelFormat = \'%N - %d/%m/%y %H:%M:%S\', LabelX = \'0\', LabelY = \'0\', ImageBufferCount = \'50\', WarmupCount = \'25\', PreEventCount = \'25\', PostEventCount = \'25\', StreamReplayBuffer = \'1000\', AlarmFrameCount = \'1\', EventPrefix = \'Event-\', SectionLength = \'600\', FrameSkip = \'0\', FPSReportInterval = \'1000\', DefaultView = \'Events\', DefaultRate = \'100\', DefaultScale = \'100\', WebColour = \'red\', SignalCheckColour = \'#0000c0\', Protocol = \'http\', Method = \'simple\', Host = \'192.168.3.225\', Port = \'80\', Path = \'\', Colours = \'3\', Width = \'320\', Height = \'240\', Orientation = \'0\', Deinterlacing = \'0\', Sequence = 1\'', 'includes/database.php', 78 )': Data too long for column 'Message' at row 1
2013-09-13 16:34:00 +08:00
` DefaultValue ` text ,
2006-11-17 03:16:19 +08:00
` Hint ` tinytext ,
` Pattern ` tinytext ,
` Format ` tinytext ,
` Prompt ` tinytext ,
` Help ` text ,
` Category ` varchar ( 32 ) NOT NULL default ' ' ,
` Readonly ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` Requires ` text ,
2014-01-17 23:50:05 +08:00
PRIMARY KEY ( ` Name ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2006-11-17 03:16:19 +08:00
--
-- Table structure for table `ControlPresets`
--
DROP TABLE IF EXISTS ` ControlPresets ` ;
CREATE TABLE ` ControlPresets ` (
` MonitorId ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` Preset ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` Label ` varchar ( 64 ) NOT NULL default ' ' ,
2014-01-17 23:50:05 +08:00
PRIMARY KEY ( ` MonitorId ` , ` Preset ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `Controls`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` Controls ` ;
CREATE TABLE ` Controls ` (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` Name ` varchar ( 64 ) NOT NULL default ' ' ,
2020-03-26 14:21:34 +08:00
` Type ` enum ( ' Local ' , ' Remote ' , ' File ' , ' Ffmpeg ' , ' Libvlc ' , ' cURL ' , ' WebSite ' , ' NVSocket ' , ' VNC ' ) NOT NULL default ' Local ' ,
2008-01-08 20:33:11 +08:00
` Protocol ` varchar ( 64 ) default NULL ,
2006-11-17 03:16:19 +08:00
` CanWake ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanSleep ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanReset ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2019-03-19 02:49:05 +08:00
` CanReboot ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2006-11-17 03:16:19 +08:00
` CanZoom ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanAutoZoom ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanZoomAbs ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanZoomRel ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanZoomCon ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinZoomRange ` int ( 10 ) unsigned default NULL ,
` MaxZoomRange ` int ( 10 ) unsigned default NULL ,
` MinZoomStep ` int ( 10 ) unsigned default NULL ,
` MaxZoomStep ` int ( 10 ) unsigned default NULL ,
` HasZoomSpeed ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinZoomSpeed ` int ( 10 ) unsigned default NULL ,
` MaxZoomSpeed ` int ( 10 ) unsigned default NULL ,
` CanFocus ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanAutoFocus ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanFocusAbs ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanFocusRel ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanFocusCon ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinFocusRange ` int ( 10 ) unsigned default NULL ,
` MaxFocusRange ` int ( 10 ) unsigned default NULL ,
` MinFocusStep ` int ( 10 ) unsigned default NULL ,
` MaxFocusStep ` int ( 10 ) unsigned default NULL ,
` HasFocusSpeed ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinFocusSpeed ` int ( 10 ) unsigned default NULL ,
` MaxFocusSpeed ` int ( 10 ) unsigned default NULL ,
` CanIris ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanAutoIris ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanIrisAbs ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanIrisRel ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanIrisCon ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinIrisRange ` int ( 10 ) unsigned default NULL ,
` MaxIrisRange ` int ( 10 ) unsigned default NULL ,
` MinIrisStep ` int ( 10 ) unsigned default NULL ,
` MaxIrisStep ` int ( 10 ) unsigned default NULL ,
` HasIrisSpeed ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinIrisSpeed ` int ( 10 ) unsigned default NULL ,
` MaxIrisSpeed ` int ( 10 ) unsigned default NULL ,
` CanGain ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanAutoGain ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanGainAbs ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanGainRel ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanGainCon ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinGainRange ` int ( 10 ) unsigned default NULL ,
` MaxGainRange ` int ( 10 ) unsigned default NULL ,
` MinGainStep ` int ( 10 ) unsigned default NULL ,
` MaxGainStep ` int ( 10 ) unsigned default NULL ,
` HasGainSpeed ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinGainSpeed ` int ( 10 ) unsigned default NULL ,
` MaxGainSpeed ` int ( 10 ) unsigned default NULL ,
` CanWhite ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanAutoWhite ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanWhiteAbs ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanWhiteRel ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanWhiteCon ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinWhiteRange ` int ( 10 ) unsigned default NULL ,
` MaxWhiteRange ` int ( 10 ) unsigned default NULL ,
` MinWhiteStep ` int ( 10 ) unsigned default NULL ,
` MaxWhiteStep ` int ( 10 ) unsigned default NULL ,
` HasWhiteSpeed ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinWhiteSpeed ` int ( 10 ) unsigned default NULL ,
` MaxWhiteSpeed ` int ( 10 ) unsigned default NULL ,
` HasPresets ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` NumPresets ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` HasHomePreset ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanSetPresets ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanMove ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanMoveDiag ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanMoveMap ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanMoveAbs ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanMoveRel ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanMoveCon ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` CanPan ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinPanRange ` int ( 10 ) default NULL ,
` MaxPanRange ` int ( 10 ) default NULL ,
` MinPanStep ` int ( 10 ) default NULL ,
` MaxPanStep ` int ( 10 ) default NULL ,
` HasPanSpeed ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinPanSpeed ` int ( 10 ) default NULL ,
` MaxPanSpeed ` int ( 10 ) default NULL ,
` HasTurboPan ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` TurboPanSpeed ` int ( 10 ) default NULL ,
` CanTilt ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinTiltRange ` int ( 10 ) default NULL ,
` MaxTiltRange ` int ( 10 ) default NULL ,
` MinTiltStep ` int ( 10 ) default NULL ,
` MaxTiltStep ` int ( 10 ) default NULL ,
` HasTiltSpeed ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` MinTiltSpeed ` int ( 10 ) default NULL ,
` MaxTiltSpeed ` int ( 10 ) default NULL ,
` HasTurboTilt ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` TurboTiltSpeed ` int ( 10 ) default NULL ,
` CanAutoScan ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` NumScanPaths ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2014-01-17 23:50:05 +08:00
PRIMARY KEY ( ` Id ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2006-11-17 03:16:19 +08:00
--
-- Table structure for table `Devices`
--
DROP TABLE IF EXISTS ` Devices ` ;
CREATE TABLE ` Devices ` (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` Name ` tinytext NOT NULL ,
` Type ` enum ( ' X10 ' ) NOT NULL default ' X10 ' ,
` KeyString ` varchar ( 32 ) NOT NULL default ' ' ,
2014-01-17 23:50:05 +08:00
PRIMARY KEY ( ` Id ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `Events`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` Events ` ;
CREATE TABLE ` Events ` (
2018-04-11 04:09:24 +08:00
` Id ` bigint unsigned NOT NULL auto_increment ,
2006-11-17 03:16:19 +08:00
` MonitorId ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
2016-09-14 21:31:57 +08:00
` StorageId ` smallint ( 5 ) unsigned default 0 ,
2019-07-24 22:52:32 +08:00
` SecondaryStorageId ` smallint ( 5 ) unsigned default 0 ,
2006-11-17 03:16:19 +08:00
` Name ` varchar ( 64 ) NOT NULL default ' ' ,
` Cause ` varchar ( 32 ) NOT NULL default ' ' ,
2020-11-05 02:49:39 +08:00
` StartDateTime ` datetime default NULL ,
` EndDateTime ` datetime default NULL ,
2006-11-17 03:16:19 +08:00
` Width ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
` Height ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
` Length ` decimal ( 10 , 2 ) NOT NULL default ' 0.00 ' ,
` Frames ` int ( 10 ) unsigned default NULL ,
` AlarmFrames ` int ( 10 ) unsigned default NULL ,
2017-02-17 02:28:50 +08:00
` DefaultVideo ` VARCHAR ( 64 ) DEFAULT ' ' NOT NULL ,
2017-11-22 14:18:07 +08:00
` SaveJPEGs ` TINYINT ,
2006-11-17 03:16:19 +08:00
` TotScore ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` AvgScore ` smallint ( 5 ) unsigned default ' 0 ' ,
` MaxScore ` smallint ( 5 ) unsigned default ' 0 ' ,
` Archived ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` Videoed ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` Uploaded ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` Emailed ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` Messaged ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` Executed ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` Notes ` text ,
2017-01-15 05:55:28 +08:00
` StateId ` int ( 10 ) unsigned NOT NULL ,
2019-11-30 02:47:25 +08:00
` Orientation ` enum ( ' ROTATE_0 ' , ' ROTATE_90 ' , ' ROTATE_180 ' , ' ROTATE_270 ' , ' FLIP_HORI ' , ' FLIP_VERT ' ) NOT NULL default ' ROTATE_0 ' ,
2017-10-12 02:07:01 +08:00
` DiskSpace ` bigint unsigned default NULL ,
2018-01-16 06:45:45 +08:00
` Scheme ` enum ( ' Deep ' , ' Medium ' , ' Shallow ' ) NOT NULL default ' Medium ' ,
2018-04-03 00:04:09 +08:00
` Locked ` BOOLEAN NOT NULL DEFAULT False ,
2018-01-02 01:43:47 +08:00
PRIMARY KEY ( ` Id ` ) ,
2018-01-06 03:40:03 +08:00
KEY ` Events_MonitorId_idx ` ( ` MonitorId ` ) ,
KEY ` Events_StorageId_idx ` ( ` StorageId ` ) ,
2020-11-05 02:49:39 +08:00
KEY ` Events_StartDateTime_idx ` ( ` StartDateTime ` ) ,
KEY ` Events_EndDateTime_DiskSpace ` ( ` EndDateTime ` , ` DiskSpace ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2005-12-21 07:00:58 +08:00
2018-01-10 05:35:28 +08:00
DROP TABLE IF EXISTS ` Events_Hour ` ;
CREATE TABLE ` Events_Hour ` (
2018-04-11 04:09:24 +08:00
` EventId ` BIGINT unsigned NOT NULL ,
2018-01-10 05:35:28 +08:00
` MonitorId ` int ( 10 ) unsigned NOT NULL ,
2020-11-05 02:49:39 +08:00
` StartDateTime ` datetime default NULL ,
2019-02-14 05:55:40 +08:00
` DiskSpace ` bigint default NULL ,
2018-01-10 05:35:28 +08:00
PRIMARY KEY ( ` EventId ` ) ,
2018-02-06 06:31:34 +08:00
KEY ` Events_Hour_MonitorId_idx ` ( ` MonitorId ` ) ,
2020-11-05 02:49:39 +08:00
KEY ` Events_Hour_StartDateTime_idx ` ( ` StartDateTime ` )
2018-01-10 05:35:28 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
DROP TABLE IF EXISTS ` Events_Day ` ;
CREATE TABLE ` Events_Day ` (
2018-04-11 04:09:24 +08:00
` EventId ` BIGINT unsigned NOT NULL ,
2018-01-10 05:35:28 +08:00
` MonitorId ` int ( 10 ) unsigned NOT NULL ,
2020-11-05 02:49:39 +08:00
` StartDateTime ` datetime default NULL ,
2019-02-14 05:55:40 +08:00
` DiskSpace ` bigint default NULL ,
2018-01-10 05:35:28 +08:00
PRIMARY KEY ( ` EventId ` ) ,
2018-02-06 06:31:34 +08:00
KEY ` Events_Day_MonitorId_idx ` ( ` MonitorId ` ) ,
2020-11-05 02:49:39 +08:00
KEY ` Events_Day_StartDateTime_idx ` ( ` StartDateTime ` )
2018-01-10 05:35:28 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
DROP TABLE IF EXISTS ` Events_Week ` ;
CREATE TABLE ` Events_Week ` (
2018-04-11 04:09:24 +08:00
` EventId ` BIGINT unsigned NOT NULL ,
2018-01-10 05:35:28 +08:00
` MonitorId ` int ( 10 ) unsigned NOT NULL ,
2020-11-05 02:49:39 +08:00
` StartDateTime ` datetime default NULL ,
2019-02-14 05:55:40 +08:00
` DiskSpace ` bigint default NULL ,
2018-01-10 05:35:28 +08:00
PRIMARY KEY ( ` EventId ` ) ,
2018-02-06 06:31:34 +08:00
KEY ` Events_Week_MonitorId_idx ` ( ` MonitorId ` ) ,
2020-11-05 02:49:39 +08:00
KEY ` Events_Week_StartDateTime_idx ` ( ` StartDateTime ` )
2018-01-10 05:35:28 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
DROP TABLE IF EXISTS ` Events_Month ` ;
CREATE TABLE ` Events_Month ` (
2018-04-11 04:09:24 +08:00
` EventId ` BIGINT unsigned NOT NULL ,
2018-01-10 05:35:28 +08:00
` MonitorId ` int ( 10 ) unsigned NOT NULL ,
2020-11-05 02:49:39 +08:00
` StartDateTime ` datetime default NULL ,
2019-02-14 05:55:40 +08:00
` DiskSpace ` bigint default NULL ,
2018-01-10 05:35:28 +08:00
PRIMARY KEY ( ` EventId ` ) ,
2018-02-06 06:31:34 +08:00
KEY ` Events_Month_MonitorId_idx ` ( ` MonitorId ` ) ,
2020-11-05 02:49:39 +08:00
KEY ` Events_Month_StartDateTime_idx ` ( ` StartDateTime ` )
2018-01-10 05:35:28 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2018-01-11 01:26:59 +08:00
DROP TABLE IF EXISTS ` Events_Archived ` ;
CREATE TABLE ` Events_Archived ` (
2018-04-11 04:09:24 +08:00
` EventId ` BIGINT unsigned NOT NULL ,
2018-01-11 01:26:59 +08:00
` MonitorId ` int ( 10 ) unsigned NOT NULL ,
2019-02-14 05:55:40 +08:00
` DiskSpace ` bigint default NULL ,
2018-01-11 01:26:59 +08:00
PRIMARY KEY ( ` EventId ` ) ,
2018-01-19 00:39:09 +08:00
KEY ` Events_Archived_MonitorId_idx ` ( ` MonitorId ` )
2018-01-11 01:26:59 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `Filters`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` Filters ` ;
CREATE TABLE ` Filters ` (
2016-05-30 22:25:30 +08:00
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
2006-11-17 03:16:19 +08:00
` Name ` varchar ( 64 ) NOT NULL default ' ' ,
2020-05-05 01:24:48 +08:00
` UserId ` int ( 10 ) unsigned ,
2019-09-28 23:55:28 +08:00
` Query_json ` text NOT NULL ,
2006-11-17 03:16:19 +08:00
` AutoArchive ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2020-10-12 22:53:00 +08:00
` AutoUnarchive ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2006-11-17 03:16:19 +08:00
` AutoVideo ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` AutoUpload ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` AutoEmail ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2020-01-23 02:52:05 +08:00
` EmailTo ` TEXT ,
` EmailSubject ` TEXT ,
` EmailBody ` TEXT ,
2006-11-17 03:16:19 +08:00
` AutoMessage ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` AutoExecute ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` AutoExecuteCmd ` tinytext ,
` AutoDelete ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2017-12-04 06:04:11 +08:00
` AutoMove ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` AutoMoveTo ` smallint ( 5 ) unsigned NOT NULL default 0 ,
2019-09-05 21:55:58 +08:00
` AutoCopy ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` AutoCopyTo ` smallint ( 5 ) unsigned NOT NULL default 0 ,
2017-10-26 02:10:56 +08:00
` UpdateDiskSpace ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2006-11-17 03:16:19 +08:00
` Background ` tinyint ( 1 ) unsigned NOT NULL default ' 0 ' ,
2016-02-06 00:23:45 +08:00
` Concurrent ` tinyint ( 1 ) unsigned NOT NULL default ' 0 ' ,
2020-10-27 06:47:03 +08:00
` LockRows ` tinyint ( 1 ) unsigned NOT NULL default ' 0 ' ,
2016-05-30 22:25:30 +08:00
PRIMARY KEY ( ` Id ` ) ,
KEY ` Name ` ( ` Name ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `Frames`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` Frames ` ;
CREATE TABLE ` Frames ` (
2018-04-11 04:09:24 +08:00
` Id ` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT ,
` EventId ` BIGINT UNSIGNED NOT NULL default ' 0 ' ,
2020-10-28 21:19:54 +08:00
FOREIGN KEY ( ` EventId ` ) REFERENCES ` Events ` ( ` Id ` ) ON DELETE CASCADE ,
2006-11-17 03:16:19 +08:00
` FrameId ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` Type ` enum ( ' Normal ' , ' Bulk ' , ' Alarm ' ) NOT NULL default ' Normal ' ,
` TimeStamp ` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP ,
` Delta ` decimal ( 8 , 2 ) NOT NULL default ' 0.00 ' ,
` Score ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
2015-09-30 04:30:54 +08:00
PRIMARY KEY ( ` Id ` ) ,
2015-10-23 02:12:56 +08:00
INDEX ` EventId_idx ` ( ` EventId ` ) ,
2006-11-17 03:16:19 +08:00
KEY ` Type ` ( ` Type ` ) ,
KEY ` TimeStamp ` ( ` TimeStamp ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `Groups`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` Groups ` ;
CREATE TABLE ` Groups ` (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` Name ` varchar ( 64 ) NOT NULL default ' ' ,
2017-09-29 00:23:23 +08:00
` ParentId ` int ( 10 ) unsigned ,
2020-12-04 02:11:24 +08:00
FOREIGN KEY ( ` ParentId ` ) REFERENCES ` Groups ` ( ` Id ` ) ON DELETE CASCADE ,
2014-01-17 23:50:05 +08:00
PRIMARY KEY ( ` Id ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2005-12-21 07:00:58 +08:00
2017-12-05 04:52:16 +08:00
--
2018-01-12 03:34:57 +08:00
-- Table structure for table `Groups_Monitors`
2017-12-05 04:52:16 +08:00
--
2017-12-21 10:22:37 +08:00
DROP TABLE IF EXISTS ` Groups_Monitors ` ;
2017-12-05 04:52:16 +08:00
CREATE TABLE ` Groups_Monitors ` (
` Id ` INT ( 10 ) unsigned NOT NULL auto_increment ,
` GroupId ` int ( 10 ) unsigned NOT NULL ,
2020-12-04 02:11:24 +08:00
FOREIGN KEY ( ` GroupId ` ) REFERENCES ` Groups ` ( ` Id ` ) ON DELETE CASCADE ,
2017-12-05 04:52:16 +08:00
` MonitorId ` int ( 10 ) unsigned NOT NULL ,
2020-12-04 02:11:24 +08:00
FOREIGN KEY ( ` MonitorId ` ) REFERENCES ` Monitors ` ( ` Id ` ) ON DELETE CASCADE ,
2017-12-05 04:52:16 +08:00
PRIMARY KEY ( ` Id ` )
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2018-01-11 03:33:31 +08:00
CREATE INDEX ` Groups_Monitors_GroupId_idx ` ON ` Groups_Monitors ` ( ` GroupId ` ) ;
CREATE INDEX ` Groups_Monitors_MonitorId_idx ` ON ` Groups_Monitors ` ( ` MonitorId ` ) ;
2017-12-05 04:52:16 +08:00
2011-06-21 17:19:10 +08:00
--
-- Table structure for table `Logs`
--
2014-01-17 22:35:37 +08:00
DROP TABLE IF EXISTS ` Logs ` ;
2011-06-21 17:19:10 +08:00
CREATE TABLE ` Logs ` (
2019-07-07 20:26:06 +08:00
` Id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
2011-06-21 17:19:10 +08:00
` TimeKey ` decimal ( 16 , 6 ) NOT NULL ,
` Component ` varchar ( 32 ) NOT NULL ,
2015-12-31 23:14:20 +08:00
` ServerId ` int ( 10 ) unsigned ,
2016-04-05 03:14:14 +08:00
` Pid ` int ( 10 ) DEFAULT NULL ,
2011-06-21 17:19:10 +08:00
` Level ` tinyint ( 3 ) NOT NULL ,
` Code ` char ( 3 ) NOT NULL ,
Error correction
Table "Users":
ERROR 1366 (HY000) at line 523: Incorrect integer value: '' for column 'Id' at row 1
Table "MonitorPresets":
ERROR 1366 (HY000) at line 550: Incorrect integer value: '' for column 'Id' at row 1
...and many others like this
Incorrect 'channel' field type in table "MonitorPresets":
ERROR 1366 (HY000) at line 550: Incorrect integer value: 'simple' for column 'Channel' at row 1
...and many others like this
"DefaultValue" field is very small in table "Config":
ERROR 1406 (22001) at line 743: Data too long for column 'DefaultValue' at row 1
Some 'INSERT INTO MonitorPresets' querys are wrong.
"Message" field is very small in table "Logs":
Can't write log entry 'insert into Logs ( TimeKey, Component, Pid, Level, Code, Message, File, Line ) values ( 1379059494.570980, 'web_php', 30387, -3, 'FAT', 'SQL-ERR \'Incorrect decimal value: \'\' for column \'MaxFPS\' at row 1\', statement was \'insert into Monitors set LinkedMonitors = \'\', Name = \'test\', Type = \'Remote\', Function = \'Monitor\', Enabled = \'1\', RefBlendPerc = \'12\', MaxFPS = \'\', AlarmMaxFPS = \'\', Device = \'/dev/video0\', Channel = \'0\', Format = \'255\', Palette = \'0\', LabelFormat = \'%N - %d/%m/%y %H:%M:%S\', LabelX = \'0\', LabelY = \'0\', ImageBufferCount = \'50\', WarmupCount = \'25\', PreEventCount = \'25\', PostEventCount = \'25\', StreamReplayBuffer = \'1000\', AlarmFrameCount = \'1\', EventPrefix = \'Event-\', SectionLength = \'600\', FrameSkip = \'0\', FPSReportInterval = \'1000\', DefaultView = \'Events\', DefaultRate = \'100\', DefaultScale = \'100\', WebColour = \'red\', SignalCheckColour = \'#0000c0\', Protocol = \'http\', Method = \'simple\', Host = \'192.168.3.225\', Port = \'80\', Path = \'\', Colours = \'3\', Width = \'320\', Height = \'240\', Orientation = \'0\', Deinterlacing = \'0\', Sequence = 1\'', 'includes/database.php', 78 )': Data too long for column 'Message' at row 1
2013-09-13 16:34:00 +08:00
` Message ` text NOT NULL ,
2011-06-21 17:19:10 +08:00
` File ` varchar ( 255 ) DEFAULT NULL ,
` Line ` smallint ( 5 ) unsigned DEFAULT NULL ,
2019-07-07 20:26:06 +08:00
PRIMARY KEY ( ` Id ` ) ,
2011-06-21 17:19:10 +08:00
KEY ` TimeKey ` ( ` TimeKey ` )
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2017-10-25 07:10:04 +08:00
CREATE INDEX ` Logs_TimeKey_idx ` ON ` Logs ` ( ` TimeKey ` ) ;
2017-10-26 02:10:56 +08:00
CREATE INDEX ` Logs_Level_idx ` ON ` Logs ` ( ` Level ` ) ;
2017-08-26 03:35:17 +08:00
--
-- Table structure for table `Manufacturers`
--
DROP TABLE IF EXISTS ` Manufacturers ` ;
CREATE TABLE ` Manufacturers ` (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` Name ` varchar ( 64 ) NOT NULL ,
PRIMARY KEY ( ` Id ` ) ,
UNIQUE KEY ( ` Name ` )
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
--
-- Table structure for table `Models`
--
DROP TABLE IF EXISTS ` Models ` ;
CREATE TABLE ` Models ` (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` Name ` varchar ( 64 ) NOT NULL ,
` ManufacturerId ` int ( 10 ) ,
PRIMARY KEY ( ` Id ` ) ,
UNIQUE KEY ( ` ManufacturerId ` , ` Name ` )
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2006-01-01 02:08:50 +08:00
--
-- Table structure for table `MonitorPresets`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` MonitorPresets ` ;
2006-01-01 02:08:50 +08:00
CREATE TABLE ` MonitorPresets ` (
2006-11-17 03:16:19 +08:00
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` Name ` varchar ( 64 ) NOT NULL default ' ' ,
2020-03-26 14:21:34 +08:00
` Type ` enum ( ' Local ' , ' Remote ' , ' File ' , ' Ffmpeg ' , ' Libvlc ' , ' cURL ' , ' WebSite ' , ' NVSocket ' , ' VNC ' ) NOT NULL default ' Local ' ,
2006-11-17 03:16:19 +08:00
` Device ` tinytext ,
2017-12-12 04:09:41 +08:00
` Channel ` tinyint ( 3 ) unsigned default NULL ,
2009-01-27 19:07:24 +08:00
` Format ` int ( 10 ) unsigned default NULL ,
2008-07-16 16:29:34 +08:00
` Protocol ` varchar ( 16 ) default NULL ,
` Method ` varchar ( 16 ) default NULL ,
2006-11-17 03:16:19 +08:00
` Host ` varchar ( 64 ) default NULL ,
` Port ` varchar ( 8 ) default NULL ,
` Path ` varchar ( 255 ) default NULL ,
2008-07-16 16:29:34 +08:00
` SubPath ` varchar ( 64 ) default NULL ,
2006-11-17 03:16:19 +08:00
` Width ` smallint ( 5 ) unsigned default NULL ,
` Height ` smallint ( 5 ) unsigned default NULL ,
2009-01-27 19:07:24 +08:00
` Palette ` int ( 10 ) unsigned default NULL ,
2019-07-31 23:42:38 +08:00
` MaxFPS ` decimal ( 5 , 3 ) default NULL ,
2006-11-17 03:16:19 +08:00
` Controllable ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` ControlId ` varchar ( 16 ) default NULL ,
` ControlDevice ` varchar ( 255 ) default NULL ,
` ControlAddress ` varchar ( 255 ) default NULL ,
` DefaultRate ` smallint ( 5 ) unsigned NOT NULL default ' 100 ' ,
` DefaultScale ` smallint ( 5 ) unsigned NOT NULL default ' 100 ' ,
2014-01-17 23:50:05 +08:00
PRIMARY KEY ( ` Id ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2006-01-01 02:08:50 +08:00
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `Monitors`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` Monitors ` ;
CREATE TABLE ` Monitors ` (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` Name ` varchar ( 64 ) NOT NULL default ' ' ,
2019-12-19 22:25:22 +08:00
` Notes ` TEXT ,
2015-07-03 02:17:49 +08:00
` ServerId ` int ( 10 ) unsigned ,
2016-09-14 21:31:57 +08:00
` StorageId ` smallint ( 5 ) unsigned default 0 ,
2020-03-26 14:21:34 +08:00
` Type ` enum ( ' Local ' , ' Remote ' , ' File ' , ' Ffmpeg ' , ' Libvlc ' , ' cURL ' , ' WebSite ' , ' NVSocket ' , ' VNC ' ) NOT NULL default ' Local ' ,
2006-11-17 03:16:19 +08:00
` Function ` enum ( ' None ' , ' Monitor ' , ' Modect ' , ' Record ' , ' Mocord ' , ' Nodect ' ) NOT NULL default ' Monitor ' ,
` Enabled ` tinyint ( 3 ) unsigned NOT NULL default ' 1 ' ,
2020-12-11 03:06:16 +08:00
` DecodingEnabled ` tinyint ( 3 ) unsigned NOT NULL default ' 1 ' ,
2016-09-21 02:10:37 +08:00
` LinkedMonitors ` varchar ( 255 ) ,
2006-11-17 03:16:19 +08:00
` Triggers ` set ( ' X10 ' ) NOT NULL default ' ' ,
2020-05-20 21:50:17 +08:00
` ONVIF_URL ` VARCHAR ( 255 ) NOT NULL DEFAULT ' ' ,
` ONVIF_Username ` VARCHAR ( 64 ) NOT NULL DEFAULT ' ' ,
` ONVIF_Password ` VARCHAR ( 64 ) NOT NULL DEFAULT ' ' ,
` ONVIF_Options ` VARCHAR ( 64 ) NOT NULL DEFAULT ' ' ,
2014-12-11 05:56:22 +08:00
` Device ` tinytext NOT NULL default ' ' ,
2006-11-17 03:16:19 +08:00
` Channel ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2009-01-27 19:07:24 +08:00
` Format ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
2014-09-09 05:10:49 +08:00
` V4LMultiBuffer ` tinyint ( 1 ) unsigned ,
` V4LCapturesPerFrame ` tinyint ( 3 ) unsigned ,
2016-09-21 02:10:37 +08:00
` Protocol ` varchar ( 16 ) ,
2018-02-02 23:31:55 +08:00
` Method ` varchar ( 16 ) default ' ' ,
2016-09-21 02:10:37 +08:00
` Host ` varchar ( 64 ) ,
2006-11-17 03:16:19 +08:00
` Port ` varchar ( 8 ) NOT NULL default ' ' ,
2010-11-24 08:17:11 +08:00
` SubPath ` varchar ( 64 ) NOT NULL default ' ' ,
2017-01-31 06:25:07 +08:00
` Path ` varchar ( 255 ) ,
2019-08-14 21:44:28 +08:00
` SecondPath ` varchar ( 255 ) ,
2016-09-21 02:10:37 +08:00
` Options ` varchar ( 255 ) ,
` User ` varchar ( 64 ) ,
` Pass ` varchar ( 64 ) ,
2006-11-17 03:16:19 +08:00
` Width ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
` Height ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
2011-04-29 22:26:50 +08:00
` Colours ` tinyint ( 3 ) unsigned NOT NULL default ' 1 ' ,
2009-01-27 19:07:24 +08:00
` Palette ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
2019-11-30 02:47:25 +08:00
` Orientation ` enum ( ' ROTATE_0 ' , ' ROTATE_90 ' , ' ROTATE_180 ' , ' ROTATE_270 ' , ' FLIP_HORI ' , ' FLIP_VERT ' ) NOT NULL default ' ROTATE_0 ' ,
2012-07-17 15:36:21 +08:00
` Deinterlacing ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
2019-06-26 03:29:46 +08:00
` DecoderHWAccelName ` varchar ( 64 ) ,
` DecoderHWAccelDevice ` varchar ( 255 ) ,
2016-04-01 03:32:24 +08:00
` SaveJPEGs ` TINYINT NOT NULL DEFAULT ' 3 ' ,
` VideoWriter ` TINYINT NOT NULL DEFAULT ' 0 ' ,
2018-02-28 23:17:16 +08:00
` OutputCodec ` int ( 10 ) unsigned NOT NULL default 0 ,
2021-05-06 02:09:22 +08:00
` Encoder ` varchar ( 32 ) ,
2017-11-22 14:18:07 +08:00
` OutputContainer ` enum ( ' auto ' , ' mp4 ' , ' mkv ' ) ,
2017-05-24 02:20:19 +08:00
` EncoderParameters ` TEXT ,
2016-04-01 03:32:24 +08:00
` RecordAudio ` TINYINT NOT NULL DEFAULT ' 0 ' ,
2016-09-21 02:10:37 +08:00
` RTSPDescribe ` tinyint ( 1 ) unsigned ,
2006-11-17 03:16:19 +08:00
` Brightness ` mediumint ( 7 ) NOT NULL default ' -1 ' ,
` Contrast ` mediumint ( 7 ) NOT NULL default ' -1 ' ,
` Hue ` mediumint ( 7 ) NOT NULL default ' -1 ' ,
` Colour ` mediumint ( 7 ) NOT NULL default ' -1 ' ,
` EventPrefix ` varchar ( 32 ) NOT NULL default ' Event- ' ,
2020-08-12 05:31:32 +08:00
` LabelFormat ` varchar ( 64 ) ,
2006-11-17 03:16:19 +08:00
` LabelX ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
` LabelY ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
2015-08-17 21:05:17 +08:00
` LabelSize ` smallint ( 5 ) unsigned NOT NULL DEFAULT ' 1 ' ,
2021-03-27 02:32:06 +08:00
` ImageBufferCount ` smallint ( 5 ) unsigned NOT NULL default ' 3 ' ,
` MaxImageBufferCount ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
` WarmupCount ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
2006-11-17 03:16:19 +08:00
` PreEventCount ` smallint ( 5 ) unsigned NOT NULL default ' 10 ' ,
` PostEventCount ` smallint ( 5 ) unsigned NOT NULL default ' 10 ' ,
2021-03-27 02:32:06 +08:00
` StreamReplayBuffer ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
2006-11-17 03:16:19 +08:00
` AlarmFrameCount ` smallint ( 5 ) unsigned NOT NULL default ' 1 ' ,
` SectionLength ` int ( 10 ) unsigned NOT NULL default ' 600 ' ,
2019-06-24 23:29:00 +08:00
` MinSectionLength ` int ( 10 ) unsigned NOT NULL default ' 10 ' ,
2006-11-17 03:16:19 +08:00
` FrameSkip ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
2014-04-10 19:56:14 +08:00
` MotionFrameSkip ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
2017-10-25 07:08:31 +08:00
` AnalysisFPSLimit ` decimal ( 5 , 2 ) default NULL ,
2015-07-24 04:36:30 +08:00
` AnalysisUpdateDelay ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
2006-11-17 03:16:19 +08:00
` MaxFPS ` decimal ( 5 , 2 ) default NULL ,
` AlarmMaxFPS ` decimal ( 5 , 2 ) default NULL ,
` FPSReportInterval ` smallint ( 5 ) unsigned NOT NULL default ' 250 ' ,
2013-11-04 18:10:53 +08:00
` RefBlendPerc ` tinyint ( 3 ) unsigned NOT NULL default ' 6 ' ,
2014-01-05 14:59:09 +08:00
` AlarmRefBlendPerc ` tinyint ( 3 ) unsigned NOT NULL default ' 6 ' ,
2006-11-17 03:16:19 +08:00
` Controllable ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2016-09-21 02:10:37 +08:00
` ControlId ` int ( 10 ) unsigned ,
2006-11-17 03:16:19 +08:00
` ControlDevice ` varchar ( 255 ) default NULL ,
` ControlAddress ` varchar ( 255 ) default NULL ,
` AutoStopTimeout ` decimal ( 5 , 2 ) default NULL ,
` TrackMotion ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2016-09-21 02:10:37 +08:00
` TrackDelay ` smallint ( 5 ) unsigned ,
2006-11-17 03:16:19 +08:00
` ReturnLocation ` tinyint ( 3 ) NOT NULL default ' -1 ' ,
2016-09-21 02:10:37 +08:00
` ReturnDelay ` smallint ( 5 ) unsigned ,
2021-04-22 00:19:59 +08:00
` ModectDuringPTZ ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2006-11-17 03:16:19 +08:00
` DefaultRate ` smallint ( 5 ) unsigned NOT NULL default ' 100 ' ,
` DefaultScale ` smallint ( 5 ) unsigned NOT NULL default ' 100 ' ,
2019-03-20 00:16:31 +08:00
` DefaultCodec ` enum ( ' auto ' , ' MP4 ' , ' MJPEG ' ) NOT NULL default ' auto ' ,
2018-04-19 22:09:32 +08:00
` SignalCheckPoints ` INT UNSIGNED NOT NULL default ' 0 ' ,
2009-10-14 17:41:39 +08:00
` SignalCheckColour ` varchar ( 32 ) NOT NULL default ' #0000BE ' ,
2006-11-17 03:16:19 +08:00
` WebColour ` varchar ( 32 ) NOT NULL default ' red ' ,
2015-08-17 06:43:45 +08:00
` Exif ` tinyint ( 1 ) unsigned NOT NULL default ' 0 ' ,
2006-11-17 03:16:19 +08:00
` Sequence ` smallint ( 5 ) unsigned default NULL ,
2017-11-25 04:37:50 +08:00
` ZoneCount ` TINYINT NOT NULL DEFAULT 0 ,
2018-07-31 22:22:13 +08:00
` Refresh ` int ( 10 ) unsigned default NULL ,
2020-09-24 21:01:30 +08:00
` Latitude ` DECIMAL ( 10 , 8 ) ,
2021-07-03 06:11:34 +08:00
` Longitude ` DECIMAL ( 11 , 8 ) ,
2021-02-03 03:19:33 +08:00
` RTSPServer ` BOOLEAN NOT NULL DEFAULT FALSE ,
2021-02-28 01:24:01 +08:00
` RTSPStreamName ` varchar ( 255 ) NOT NULL default ' ' ,
2021-10-14 04:05:49 +08:00
` Importance ` enum ( ' Normal ' , ' Less ' , ' Not ' ) NOT NULL default ' Normal ' ,
2014-01-17 23:50:05 +08:00
PRIMARY KEY ( ` Id ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2005-12-21 07:00:58 +08:00
2016-10-21 01:19:41 +08:00
CREATE INDEX ` Monitors_ServerId_idx ` ON ` Monitors ` ( ` ServerId ` ) ;
2018-01-25 00:51:11 +08:00
DROP TABLE IF EXISTS ` Monitor_Status ` ;
CREATE TABLE ` Monitor_Status ` (
2018-01-27 02:39:37 +08:00
` MonitorId ` int ( 10 ) unsigned NOT NULL ,
2018-02-01 03:36:41 +08:00
` Status ` enum ( ' Unknown ' , ' NotRunning ' , ' Running ' , ' Connected ' , ' Signal ' ) NOT NULL default ' Unknown ' ,
2018-01-25 00:51:11 +08:00
` CaptureFPS ` DECIMAL ( 10 , 2 ) NOT NULL default 0 ,
` AnalysisFPS ` DECIMAL ( 5 , 2 ) NOT NULL default 0 ,
2018-04-25 02:11:27 +08:00
` CaptureBandwidth ` INT NOT NULL default 0 ,
2021-04-09 22:16:16 +08:00
PRIMARY KEY ( ` MonitorId ` )
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
DROP TABLE IF EXISTS ` Event_Summaries ` ;
CREATE TABLE ` Event_Summaries ` (
` MonitorId ` int ( 10 ) unsigned NOT NULL ,
2020-11-07 02:27:00 +08:00
` TotalEvents ` int ( 10 ) default NULL ,
` TotalEventDiskSpace ` bigint default NULL ,
` HourEvents ` int ( 10 ) default NULL ,
` HourEventDiskSpace ` bigint default NULL ,
` DayEvents ` int ( 10 ) default NULL ,
` DayEventDiskSpace ` bigint default NULL ,
` WeekEvents ` int ( 10 ) default NULL ,
` WeekEventDiskSpace ` bigint default NULL ,
` MonthEvents ` int ( 10 ) default NULL ,
` MonthEventDiskSpace ` bigint default NULL ,
` ArchivedEvents ` int ( 10 ) default NULL ,
` ArchivedEventDiskSpace ` bigint default NULL ,
2018-01-27 02:39:37 +08:00
PRIMARY KEY ( ` MonitorId ` )
2020-09-30 21:39:31 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2021-04-09 22:16:16 +08:00
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `States`
2015-08-26 23:19:58 +08:00
-- PP - Added IsActive to track custom run states
-- Also made sure Name is unique
2005-12-21 07:00:58 +08:00
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` States ` ;
CREATE TABLE ` States ` (
2015-06-26 22:57:44 +08:00
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
2006-11-17 03:16:19 +08:00
` Name ` varchar ( 64 ) NOT NULL default ' ' ,
2007-04-03 17:59:01 +08:00
` Definition ` text NOT NULL ,
2015-06-21 21:30:14 +08:00
` IsActive ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
2015-08-26 23:19:58 +08:00
PRIMARY KEY ( ` Id ` ) ,
UNIQUE KEY ( ` Name ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2015-08-26 23:19:58 +08:00
INSERT INTO States ( Name , Definition , IsActive ) VALUES ( ' default ' , ' ' , ' 1 ' ) ;
2005-12-21 07:00:58 +08:00
2015-06-26 22:17:07 +08:00
--
-- Table structure for table `Servers`
--
2005-12-21 07:00:58 +08:00
2015-06-26 22:17:07 +08:00
DROP TABLE IF EXISTS ` Servers ` ;
CREATE TABLE ` Servers ` (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
2018-11-22 23:04:33 +08:00
` Protocol ` TEXT ,
2016-01-11 09:58:45 +08:00
` Hostname ` TEXT ,
2018-11-22 23:04:33 +08:00
` Port ` INTEGER UNSIGNED ,
2018-11-28 06:35:25 +08:00
` PathToIndex ` TEXT ,
` PathToZMS ` TEXT ,
2018-11-30 03:26:30 +08:00
` PathToApi ` TEXT ,
2015-06-26 22:17:07 +08:00
` Name ` varchar ( 64 ) NOT NULL default ' ' ,
` State_Id ` int ( 10 ) unsigned ,
2017-10-25 02:58:44 +08:00
` Status ` enum ( ' Unknown ' , ' NotRunning ' , ' Running ' ) NOT NULL default ' Unknown ' ,
2018-06-12 03:49:23 +08:00
` CpuLoad ` DECIMAL ( 5 , 1 ) default NULL ,
2017-10-25 02:58:44 +08:00
` TotalMem ` bigint unsigned default null ,
` FreeMem ` bigint unsigned default null ,
` TotalSwap ` bigint unsigned default null ,
` FreeSwap ` bigint unsigned default null ,
2018-01-17 10:45:01 +08:00
` zmstats ` BOOLEAN NOT NULL DEFAULT FALSE ,
` zmaudit ` BOOLEAN NOT NULL DEFAULT FALSE ,
` zmtrigger ` BOOLEAN NOT NULL DEFAULT FALSE ,
2019-02-27 22:27:50 +08:00
` zmeventnotification ` BOOLEAN NOT NULL DEFAULT FALSE ,
2015-06-26 22:17:07 +08:00
PRIMARY KEY ( ` Id ` )
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2016-10-21 01:19:41 +08:00
CREATE INDEX ` Servers_Name_idx ` ON ` Servers ` ( ` Name ` ) ;
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `Stats`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` Stats ` ;
CREATE TABLE ` Stats ` (
2019-07-07 20:26:06 +08:00
` Id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
2006-11-17 03:16:19 +08:00
` MonitorId ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
2020-10-28 21:19:54 +08:00
FOREIGN KEY ( ` MonitorId ` ) REFERENCES ` Monitors ` ( ` Id ` ) ON DELETE CASCADE ,
2006-11-17 03:16:19 +08:00
` ZoneId ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
2020-10-28 21:19:54 +08:00
FOREIGN KEY ( ` ZoneId ` ) REFERENCES ` Zones ` ( ` Id ` ) ON DELETE CASCADE ,
2018-08-22 00:50:33 +08:00
` EventId ` BIGINT UNSIGNED NOT NULL ,
2020-10-28 21:19:54 +08:00
FOREIGN KEY ( ` EventId ` ) REFERENCES ` Events ` ( ` Id ` ) ON DELETE CASCADE ,
2006-11-17 03:16:19 +08:00
` FrameId ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` PixelDiff ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` AlarmPixels ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` FilterPixels ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` BlobPixels ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` Blobs ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
` MinBlobSize ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` MaxBlobSize ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` MinX ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
` MaxX ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
` MinY ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
` MaxY ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
` Score ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
2019-07-07 20:26:06 +08:00
PRIMARY KEY ( ` Id ` ) ,
2006-11-17 03:16:19 +08:00
KEY ` EventId ` ( ` EventId ` ) ,
KEY ` MonitorId ` ( ` MonitorId ` ) ,
KEY ` ZoneId ` ( ` ZoneId ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `TriggersX10`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` TriggersX10 ` ;
CREATE TABLE ` TriggersX10 ` (
` MonitorId ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` Activation ` varchar ( 32 ) default NULL ,
` AlarmInput ` varchar ( 32 ) default NULL ,
` AlarmOutput ` varchar ( 32 ) default NULL ,
2014-01-17 23:50:05 +08:00
PRIMARY KEY ( ` MonitorId ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `Users`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` Users ` ;
CREATE TABLE ` Users ` (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` Username ` varchar ( 32 ) character set latin1 collate latin1_bin NOT NULL default ' ' ,
` Password ` varchar ( 64 ) NOT NULL default ' ' ,
2016-09-21 02:10:37 +08:00
` Language ` varchar ( 8 ) ,
2006-11-17 03:16:19 +08:00
` Enabled ` tinyint ( 3 ) unsigned NOT NULL default ' 1 ' ,
` Stream ` enum ( ' None ' , ' View ' ) NOT NULL default ' None ' ,
` Events ` enum ( ' None ' , ' View ' , ' Edit ' ) NOT NULL default ' None ' ,
` Control ` enum ( ' None ' , ' View ' , ' Edit ' ) NOT NULL default ' None ' ,
` Monitors ` enum ( ' None ' , ' View ' , ' Edit ' ) NOT NULL default ' None ' ,
2015-08-16 01:00:48 +08:00
` Groups ` enum ( ' None ' , ' View ' , ' Edit ' ) NOT NULL default ' None ' ,
2006-11-17 03:16:19 +08:00
` Devices ` enum ( ' None ' , ' View ' , ' Edit ' ) NOT NULL default ' None ' ,
2021-04-13 01:43:29 +08:00
` Snapshots ` enum ( ' None ' , ' View ' , ' Edit ' ) NOT NULL default ' None ' ,
2006-11-17 03:16:19 +08:00
` System ` enum ( ' None ' , ' View ' , ' Edit ' ) NOT NULL default ' None ' ,
2016-09-21 02:10:37 +08:00
` MaxBandwidth ` varchar ( 16 ) ,
2019-04-08 05:23:39 +08:00
` MonitorIds ` text ,
2019-05-12 01:39:40 +08:00
` TokenMinExpiry ` BIGINT UNSIGNED NOT NULL DEFAULT 0 ,
` APIEnabled ` tinyint ( 3 ) UNSIGNED NOT NULL default 1 ,
2021-03-12 22:26:13 +08:00
` HomeView ` varchar ( 64 ) NOT NULL DEFAULT ' ' ,
2014-01-17 23:50:05 +08:00
PRIMARY KEY ( ` Id ` ) ,
2006-11-17 03:16:19 +08:00
UNIQUE KEY ` UC_Username ` ( ` Username ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2005-12-21 07:00:58 +08:00
2006-01-01 02:08:50 +08:00
--
-- Table structure for table `ZonePresets`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` ZonePresets ` ;
CREATE TABLE ` ZonePresets ` (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` Name ` varchar ( 64 ) NOT NULL default ' ' ,
2015-08-20 23:37:59 +08:00
` Type ` enum ( ' Active ' , ' Inclusive ' , ' Exclusive ' , ' Preclusive ' , ' Inactive ' , ' Privacy ' ) NOT NULL default ' Active ' ,
2006-11-17 03:16:19 +08:00
` Units ` enum ( ' Pixels ' , ' Percent ' ) NOT NULL default ' Pixels ' ,
` CheckMethod ` enum ( ' AlarmedPixels ' , ' FilteredPixels ' , ' Blobs ' ) NOT NULL default ' Blobs ' ,
` MinPixelThreshold ` smallint ( 5 ) unsigned default NULL ,
` MaxPixelThreshold ` smallint ( 5 ) unsigned default NULL ,
` MinAlarmPixels ` int ( 10 ) unsigned default NULL ,
` MaxAlarmPixels ` int ( 10 ) unsigned default NULL ,
` FilterX ` tinyint ( 3 ) unsigned default NULL ,
` FilterY ` tinyint ( 3 ) unsigned default NULL ,
` MinFilterPixels ` int ( 10 ) unsigned default NULL ,
` MaxFilterPixels ` int ( 10 ) unsigned default NULL ,
` MinBlobPixels ` int ( 10 ) unsigned default NULL ,
` MaxBlobPixels ` int ( 10 ) unsigned default NULL ,
` MinBlobs ` smallint ( 5 ) unsigned default NULL ,
` MaxBlobs ` smallint ( 5 ) unsigned default NULL ,
2007-06-05 22:12:14 +08:00
` OverloadFrames ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
2014-05-08 08:53:44 +08:00
` ExtendAlarmFrames ` smallint ( 5 ) unsigned not null default 0 ,
2014-01-17 23:50:05 +08:00
PRIMARY KEY ( ` Id ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2006-01-01 02:08:50 +08:00
2005-12-21 07:00:58 +08:00
--
-- Table structure for table `Zones`
--
2006-11-17 03:16:19 +08:00
DROP TABLE IF EXISTS ` Zones ` ;
CREATE TABLE ` Zones ` (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` MonitorId ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
2020-10-28 21:19:54 +08:00
FOREIGN KEY ( ` MonitorId ` ) REFERENCES ` Monitors ` ( ` Id ` ) ON DELETE CASCADE ,
2006-11-17 03:16:19 +08:00
` Name ` varchar ( 64 ) NOT NULL default ' ' ,
2015-08-20 23:37:59 +08:00
` Type ` enum ( ' Active ' , ' Inclusive ' , ' Exclusive ' , ' Preclusive ' , ' Inactive ' , ' Privacy ' ) NOT NULL default ' Active ' ,
2006-11-17 03:16:19 +08:00
` Units ` enum ( ' Pixels ' , ' Percent ' ) NOT NULL default ' Pixels ' ,
` NumCoords ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` Coords ` tinytext NOT NULL ,
` Area ` int ( 10 ) unsigned NOT NULL default ' 0 ' ,
` AlarmRGB ` int ( 10 ) unsigned default ' 0 ' ,
` CheckMethod ` enum ( ' AlarmedPixels ' , ' FilteredPixels ' , ' Blobs ' ) NOT NULL default ' Blobs ' ,
` MinPixelThreshold ` smallint ( 5 ) unsigned default NULL ,
` MaxPixelThreshold ` smallint ( 5 ) unsigned default NULL ,
` MinAlarmPixels ` int ( 10 ) unsigned default NULL ,
` MaxAlarmPixels ` int ( 10 ) unsigned default NULL ,
` FilterX ` tinyint ( 3 ) unsigned default NULL ,
` FilterY ` tinyint ( 3 ) unsigned default NULL ,
` MinFilterPixels ` int ( 10 ) unsigned default NULL ,
` MaxFilterPixels ` int ( 10 ) unsigned default NULL ,
` MinBlobPixels ` int ( 10 ) unsigned default NULL ,
` MaxBlobPixels ` int ( 10 ) unsigned default NULL ,
` MinBlobs ` smallint ( 5 ) unsigned default NULL ,
` MaxBlobs ` smallint ( 5 ) unsigned default NULL ,
2007-06-05 22:12:14 +08:00
` OverloadFrames ` smallint ( 5 ) unsigned NOT NULL default ' 0 ' ,
2014-05-08 08:53:44 +08:00
` ExtendAlarmFrames ` smallint ( 5 ) unsigned not null default 0 ,
2014-01-17 23:50:05 +08:00
PRIMARY KEY ( ` Id ` ) ,
2006-11-17 03:16:19 +08:00
KEY ` MonitorId ` ( ` MonitorId ` )
2009-01-28 19:23:50 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
2006-11-17 03:16:19 +08:00
2013-12-14 02:07:18 +08:00
DROP TABLE IF EXISTS ` Storage ` ;
CREATE TABLE ` Storage ` (
` Id ` smallint ( 5 ) unsigned NOT NULL auto_increment ,
` Path ` varchar ( 64 ) NOT NULL default ' ' ,
` Name ` varchar ( 64 ) NOT NULL default ' ' ,
2017-10-12 22:32:48 +08:00
` Type ` enum ( ' local ' , ' s3fs ' ) NOT NULL default ' local ' ,
2018-03-28 23:23:03 +08:00
` Url ` varchar ( 255 ) default NULL ,
2018-02-02 00:32:44 +08:00
` DiskSpace ` bigint default NULL ,
2018-01-11 01:26:59 +08:00
` Scheme ` enum ( ' Deep ' , ' Medium ' , ' Shallow ' ) NOT NULL default ' Medium ' ,
2017-12-23 03:38:59 +08:00
` ServerId ` int ( 10 ) unsigned ,
2018-04-03 00:04:09 +08:00
` DoDelete ` BOOLEAN NOT NULL DEFAULT true ,
2020-03-04 23:15:35 +08:00
` Enabled ` BOOLEAN NOT NULL DEFAULT true ,
2015-12-28 21:04:17 +08:00
PRIMARY KEY ( ` Id ` )
2013-12-14 02:07:18 +08:00
) ENGINE = @ ZM_MYSQL_ENGINE @ ;
--
-- Create a default storage location
--
2020-03-04 23:15:35 +08:00
insert into Storage VALUES ( NULL , ' @ZM_DIR_EVENTS@ ' , ' Default ' , ' local ' , NULL , NULL , ' Medium ' , 0 , true , true ) ;
2013-12-14 02:07:18 +08:00
2006-11-17 03:16:19 +08:00
/* !40101 SET SQL_MODE=@OLD_SQL_MODE */ ;
/* !40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */ ;
/* !40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */ ;
/* !40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */ ;
/* !40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */ ;
/* !40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */ ;
/* !40111 SET SQL_NOTES=@OLD_SQL_NOTES */ ;
--
-- Initial data to be loaded into ZoneMinder database
--
2005-12-21 07:00:58 +08:00
--
-- Create a default admin user.
--
2021-04-15 00:47:55 +08:00
INSERT INTO ` Users ` (
` Username ` ,
` Password ` ,
` Language ` ,
` Enabled ` ,
` Stream ` ,
` Events ` ,
` Control ` ,
` Monitors ` ,
` Groups ` ,
` Devices ` ,
` Snapshots ` ,
` System ` ,
` MaxBandwidth ` ,
` MonitorIds ` ,
` TokenMinExpiry ` ,
` APIEnabled ` ,
` HomeView `
) VALUES (
' admin ' ,
' $2b$12$NHZsm6AM2f2LQVROriz79ul3D6DnmFiZC.ZK5eqbF.ZWfwH9bqUJ6 ' ,
' ' /* Language */ ,
1 /* Enabled */ ,
' View ' /* Stream */ ,
' Edit ' /* Events */ ,
' Edit ' /* Control */ ,
' Edit ' /* Monitors */ ,
' Edit ' /* Groups */ ,
' Edit ' /* Devices */ ,
' Edit ' /* Snapshots */ ,
' Edit ' /* System */ ,
' ' /* Max Bandwidth */ ,
' ' /* MonitorIds */ ,
0 /* TokenMinExpiry */ ,
0 /* Api Endabled */ ,
' ' /* Homeview */ ) ;
2005-12-21 07:00:58 +08:00
--
2014-02-21 04:10:54 +08:00
-- Add a sample filter to purge the oldest 100 events when the disk is 95% full
2005-12-21 07:00:58 +08:00
--
2018-01-02 02:19:16 +08:00
2020-02-21 22:48:01 +08:00
INSERT INTO ` Filters `
(
` Name ` ,
` Query_json ` ,
` AutoArchive ` ,
` AutoVideo ` ,
` AutoUpload ` ,
` AutoEmail ` ,
` EmailTo ` ,
` EmailSubject ` ,
` EmailBody ` ,
` AutoMessage ` ,
` AutoExecute ` ,
` AutoExecuteCmd ` ,
` AutoDelete ` ,
` AutoMove ` ,
` AutoMoveTo ` ,
` AutoCopy ` ,
` AutoCopyTo ` ,
` UpdateDiskSpace ` ,
2020-05-07 22:57:51 +08:00
` UserId ` ,
2020-02-21 22:48:01 +08:00
` Background ` ,
` Concurrent `
)
VALUES
(
' PurgeWhenFull ' ,
2020-11-03 21:34:41 +08:00
' {"sort_field":"Id","terms":[{"val":0,"attr":"Archived","op":"="},{"cnj":"and","val":95,"attr":"DiskPercent","op":">="},{"cnj":"and","obr":"0","attr":"EndDateTime","op":"IS NOT","val":"NULL","cbr":"0"}],"limit":100,"sort_asc":1} ' ,
2020-02-21 22:48:01 +08:00
0 /* AutoArchive */ ,
0 /* AutoVideo */ ,
0 /* AutoUpload */ ,
0 /* AutoEmail */ ,
' ' /* EmailTo */ ,
' ' /* EmailSubject */ ,
' ' /* EmailBody */ ,
0 /* AutoMessage */ ,
0 /* AutoExecute */ , ' ' ,
1 /* AutoDelete */ ,
0 /* AutoMove */ , 0 /* MoveTo */ ,
0 /* AutoCopy */ , 0 /* CopyTo */ ,
0 /* UpdateDiskSpace */ ,
2020-05-07 22:57:51 +08:00
1 /* UserId = admin */ ,
2020-02-21 22:48:01 +08:00
1 /* Background */ ,
0 /* Concurrent */
) ;
INSERT INTO ` Filters `
(
` Name ` ,
` Query_json ` ,
` AutoArchive ` ,
` AutoVideo ` ,
` AutoUpload ` ,
` AutoEmail ` ,
` EmailTo ` ,
` EmailSubject ` ,
` EmailBody ` ,
` AutoMessage ` ,
` AutoExecute ` ,
` AutoExecuteCmd ` ,
` AutoDelete ` ,
` AutoMove ` ,
` AutoMoveTo ` ,
` AutoCopy ` ,
` AutoCopyTo ` ,
` UpdateDiskSpace ` ,
2020-05-07 22:57:51 +08:00
` UserId ` ,
2020-02-21 22:48:01 +08:00
` Background ` ,
` Concurrent `
)
VALUES (
' Update DiskSpace ' ,
2020-11-03 21:41:57 +08:00
' {"terms":[{"attr":"DiskSpace","op":"IS","val":"NULL"},{"cnj":"and","obr":"0","attr":"EndDateTime","op":"IS NOT","val":"NULL","cbr":"0"}]} ' ,
2019-09-06 22:55:34 +08:00
0 /* AutoArchive */ ,
0 /* AutoVideo */ ,
0 /* AutoUpload */ ,
0 /* AutoEmail */ ,
2020-02-21 22:48:01 +08:00
' ' /* EmailTo */ ,
' ' /* EmailSubject */ ,
' ' /* EmailBody */ ,
2019-09-06 22:55:34 +08:00
0 /* AutoMessage */ ,
0 /* AutoExecute */ , ' ' ,
2020-02-21 22:48:01 +08:00
0 /* AutoDelete */ ,
2019-09-06 22:55:34 +08:00
0 /* AutoMove */ , 0 /* MoveTo */ ,
0 /* AutoCopy */ , 0 /* CopyTo */ ,
2020-02-21 22:48:01 +08:00
1 /* UpdateDiskSpace */ ,
2020-05-07 22:57:51 +08:00
1 /* UserId=admin */ ,
2020-02-21 22:48:01 +08:00
1 /* Background */ ,
0 /* Concurrent */
) ;
2006-01-01 02:08:50 +08:00
2005-12-21 07:00:58 +08:00
--
-- Add in some sample control protocol definitions
--
2021-02-26 08:11:29 +08:00
INSERT INTO ` Controls ` VALUES ( NULL , ' Pelco-D ' , ' Local ' , ' PelcoD ' , 1 , 1 , 0 , 0 , 1 , 1 , 0 , 0 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 3 , 1 , 1 , 0 , 0 , 1 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 1 , 0 , 1 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 1 , 0 , 1 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 20 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 1 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 63 , 1 , 254 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 63 , 1 , 254 , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' Pelco-P ' , ' Local ' , ' PelcoP ' , 1 , 1 , 0 , 0 , 1 , 1 , 0 , 0 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 3 , 1 , 1 , 0 , 0 , 1 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 1 , 0 , 1 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 1 , 0 , 1 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 20 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 1 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 63 , 1 , 254 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 63 , 1 , 254 , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' Sony VISCA ' , ' Local ' , ' Visca ' , 1 , 1 , 0 , 0 , 1 , 0 , 0 , 0 , 1 , 0 , 16384 , 10 , 4000 , 1 , 1 , 6 , 1 , 1 , 1 , 0 , 1 , 0 , 1536 , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 3 , 1 , 1 , 1 , 1 , 0 , 1 , 1 , 0 , 1 , - 15578 , 15578 , 100 , 10000 , 1 , 1 , 50 , 1 , 254 , 1 , - 7789 , 7789 , 100 , 5000 , 1 , 1 , 50 , 1 , 254 , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' Axis API v2 ' , ' Remote ' , ' AxisV2 ' , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 9999 , 10 , 2500 , 0 , NULL , NULL , 1 , 1 , 0 , 1 , 0 , 0 , 9999 , 10 , 2500 , 0 , NULL , NULL , 1 , 1 , 0 , 1 , 0 , 0 , 9999 , 10 , 2500 , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 12 , 1 , 1 , 1 , 1 , 1 , 0 , 1 , 0 , 1 , - 360 , 360 , 1 , 90 , 0 , NULL , NULL , 0 , NULL , 1 , - 360 , 360 , 1 , 90 , 0 , NULL , NULL , 0 , NULL , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' Panasonic IP ' , ' Remote ' , ' PanasonicIP ' , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 8 , 1 , 1 , 1 , 0 , 1 , 0 , 0 , 1 , 1 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , NULL , 1 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , NULL , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' Neu-Fusion NCS370 ' , ' Remote ' , ' Ncs370 ' , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 24 , 1 , 0 , 1 , 1 , 0 , 0 , 0 , 1 , 1 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , NULL , 1 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , NULL , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' AirLink SkyIPCam 7xx ' , ' Remote ' , ' SkyIPCam7xx ' , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 8 , 1 , 1 , 1 , 0 , 1 , 0 , 1 , 0 , 1 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , NULL , 1 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , NULL , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' Pelco-D ' , ' Ffmpeg ' , ' PelcoD ' , 1 , 1 , 0 , 0 , 1 , 1 , 0 , 0 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 3 , 1 , 1 , 0 , 0 , 1 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 1 , 0 , 1 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 1 , 0 , 1 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 20 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 1 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 63 , 1 , 254 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 63 , 1 , 254 , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' Pelco-P ' , ' Ffmpeg ' , ' PelcoP ' , 1 , 1 , 0 , 0 , 1 , 1 , 0 , 0 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 3 , 1 , 1 , 0 , 0 , 1 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 1 , 0 , 1 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 1 , 0 , 1 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 20 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 1 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 63 , 1 , 254 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 63 , 1 , 254 , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' Foscam FI8620 ' , ' Ffmpeg ' , ' FI8620_Y2k ' , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 1 , 1 , 10 , 1 , 10 , 1 , 1 , 63 , 1 , 1 , 0 , 0 , 1 , 1 , 63 , 1 , 63 , 1 , 1 , 63 , 1 , 1 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 1 , 0 , 255 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 1 , 0 , 255 , 1 , 8 , 0 , 1 , 1 , 1 , 0 , 0 , 0 , 1 , 1 , 1 , 360 , 1 , 360 , 1 , 1 , 63 , 0 , 0 , 1 , 1 , 90 , 1 , 90 , 1 , 1 , 63 , 0 , 0 , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' Foscam FI8608W ' , ' Ffmpeg ' , ' FI8608W_Y2k ' , 1 , 0 , 1 , 0 , 1 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 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 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' WanscamPT ' , ' Remote ' , ' Wanscam ' , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 1 , 0 , 0 , 0 , 16 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 1 , 0 , 0 , 0 , 16 , 0 , 0 , 0 , 0 , 0 , 1 , 16 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' 3S Domo N5071 ' , ' Remote ' , ' 3S ' , 0 , 0 , 1 , 0 , 1 , 0 , 1 , 1 , 0 , 0 , 9999 , 0 , 9999 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 0 , 0 , 9999 , 20 , 9999 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 0 , 0 , 9999 , 1 , 9999 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 64 , 1 , 0 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , - 180 , 180 , 40 , 100 , 1 , 40 , 100 , 0 , 0 , 1 , - 180 , 180 , 40 , 100 , 1 , 40 , 100 , 0 , 0 , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' ONVIF Camera ' , ' Ffmpeg ' , ' onvif ' , 0 , 0 , 1 , 1 , 1 , 0 , 0 , 0 , 1 , 0 , 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 1 , 0 , 0 , 1 , 0 , 1 , 0 , 0 , 0 , 0 , 1 , - 100 , 100 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 1 , - 100 , 100 , 0 , 0 , 0 , 0 ) ;
2019-05-07 00:14:03 +08:00
INSERT INTO ` Controls ` VALUES ( NULL , ' Dahua ' , ' Ffmpeg ' , ' Dahua ' , 0 , 0 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 20 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ) ;
2019-04-02 21:05:52 +08:00
INSERT INTO ` Controls ` VALUES ( NULL , ' FOSCAMR2C ' , ' Libvlc ' , ' FOSCAMR2C ' , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 0 , 0 , 0 , 0 , 0 , NULL , NULL , NULL , NULL , 0 , NULL , NULL , 1 , 12 , 0 , 1 , 1 , 1 , 0 , 0 , 0 , 1 , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 4 , 0 , NULL , 1 , NULL , NULL , NULL , NULL , 1 , 0 , 4 , 0 , NULL , 0 , 0 ) ;
INSERT INTO ` Controls ` VALUES ( NULL , ' Amcrest HTTP API ' , ' Ffmpeg ' , ' Amcrest_HTTP ' , 0 , 0 , 1 , 0 , 1 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 5 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 5 ) ;
2018-08-22 23:48:36 +08:00
2006-01-01 02:08:50 +08:00
--
-- Add some monitor preset values
--
2020-02-29 13:08:02 +08:00
INSERT into MonitorPresets VALUES ( NULL , ' Amcrest, IP8M-T2499EW 640x480, RTP/RTSP ' , ' Ffmpeg ' , ' rtsp ' , 0 , 255 , ' rtsp ' , ' rtpRtsp ' , ' NULL ' , 554 , ' rtsp://<username>:<password>@<ip-address>/cam/realmonitor?channel=1&subtype=1 ' , NULL , 640 , 480 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT into MonitorPresets VALUES ( NULL , ' Amcrest, IP8M-T2499EW 3840x2160, RTP/RTSP ' , ' Ffmpeg ' , ' rtsp ' , 0 , 255 , ' rtsp ' , ' rtpRtsp ' , ' NULL ' , 554 , ' rtsp://<username>:<password>@<ip-address>/cam/realmonitor?channel=1&subtype=0 ' , NULL , 3840 , 2160 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
2018-01-15 10:14:30 +08:00
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP, 320x240, mpjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/mjpg/video.cgi?resolution=320x240 ' , NULL , 320 , 240 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP, 320x240, mpjpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/mjpg/video.cgi?resolution=320x240&req_fps=5 ' , NULL , 320 , 240 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP, 320x240, jpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/jpg/image.cgi?resolution=320x240 ' , NULL , 320 , 240 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP, 320x240, jpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/jpg/image.cgi?resolution=320x240 ' , NULL , 320 , 240 , 3 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP, 640x480, mpjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/mjpg/video.cgi?resolution=640x480 ' , NULL , 640 , 480 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP, 640x480, mpjpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=5 ' , NULL , 640 , 480 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP, 640x480, jpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/jpg/image.cgi?resolution=640x480 ' , NULL , 640 , 480 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP, 640x480, jpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/jpg/image.cgi?resolution=640x480 ' , NULL , 640 , 480 , 3 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP, 320x240, mpjpeg, B&W ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/mjpg/video.cgi?resolution=320x240&color=0 ' , NULL , 320 , 240 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP, 640x480, mpjpeg, B&W ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/mjpg/video.cgi?resolution=640x480&color=0 ' , NULL , 640 , 480 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP PTZ, 320x240, mpjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/mjpg/video.cgi?resolution=320x240 ' , NULL , 320 , 240 , 3 , NULL , 1 , 4 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP PTZ, 320x240, mpjpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/mjpg/video.cgi?resolution=320x240&req_fps=5 ' , NULL , 320 , 240 , 3 , NULL , 1 , 4 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP PTZ, 320x240, jpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/jpg/image.cgi?resolution=320x240 ' , NULL , 320 , 240 , 3 , NULL , 1 , 4 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP PTZ, 320x240, jpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/jpg/image.cgi?resolution=320x240 ' , NULL , 320 , 240 , 3 , 5 . 0 , 1 , 4 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP PTZ, 640x480, mpjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/mjpg/video.cgi?resolution=640x480 ' , NULL , 640 , 480 , 3 , NULL , 1 , 4 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP PTZ, 640x480, mpjpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=5 ' , NULL , 640 , 480 , 3 , NULL , 1 , 4 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP PTZ, 640x480, jpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/jpg/image.cgi?resolution=640x480 ' , NULL , 640 , 480 , 3 , NULL , 1 , 4 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis IP PTZ, 640x480, jpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /axis-cgi/jpg/image.cgi?resolution=640x480 ' , NULL , 640 , 480 , 3 , 5 . 0 , 1 , 4 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
2018-01-15 23:15:57 +08:00
INSERT into MonitorPresets VALUES ( NULL , ' Axis IP, mpeg4, unicast ' , ' Remote ' , ' rtsp ' , 0 , 255 , ' rtsp ' , ' rtpUni ' , ' <ip-address> ' , 554 , ' /mpeg4/media.amp ' , ' /trackID= ' , NULL , NULL , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT into MonitorPresets VALUES ( NULL , ' Axis IP, mpeg4, multicast ' , ' Remote ' , ' rtsp ' , 0 , 255 , ' rtsp ' , ' rtpMulti ' , ' <ip-address> ' , 554 , ' /mpeg4/media.amp ' , ' /trackID= ' , NULL , NULL , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT into MonitorPresets VALUES ( NULL , ' Axis IP, mpeg4, RTP/RTSP ' , ' Remote ' , ' rtsp ' , 0 , 255 , ' rtsp ' , ' rtpRtsp ' , ' <ip-address> ' , 554 , ' /mpeg4/media.amp ' , ' /trackID= ' , NULL , NULL , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
Error correction
Table "Users":
ERROR 1366 (HY000) at line 523: Incorrect integer value: '' for column 'Id' at row 1
Table "MonitorPresets":
ERROR 1366 (HY000) at line 550: Incorrect integer value: '' for column 'Id' at row 1
...and many others like this
Incorrect 'channel' field type in table "MonitorPresets":
ERROR 1366 (HY000) at line 550: Incorrect integer value: 'simple' for column 'Channel' at row 1
...and many others like this
"DefaultValue" field is very small in table "Config":
ERROR 1406 (22001) at line 743: Data too long for column 'DefaultValue' at row 1
Some 'INSERT INTO MonitorPresets' querys are wrong.
"Message" field is very small in table "Logs":
Can't write log entry 'insert into Logs ( TimeKey, Component, Pid, Level, Code, Message, File, Line ) values ( 1379059494.570980, 'web_php', 30387, -3, 'FAT', 'SQL-ERR \'Incorrect decimal value: \'\' for column \'MaxFPS\' at row 1\', statement was \'insert into Monitors set LinkedMonitors = \'\', Name = \'test\', Type = \'Remote\', Function = \'Monitor\', Enabled = \'1\', RefBlendPerc = \'12\', MaxFPS = \'\', AlarmMaxFPS = \'\', Device = \'/dev/video0\', Channel = \'0\', Format = \'255\', Palette = \'0\', LabelFormat = \'%N - %d/%m/%y %H:%M:%S\', LabelX = \'0\', LabelY = \'0\', ImageBufferCount = \'50\', WarmupCount = \'25\', PreEventCount = \'25\', PostEventCount = \'25\', StreamReplayBuffer = \'1000\', AlarmFrameCount = \'1\', EventPrefix = \'Event-\', SectionLength = \'600\', FrameSkip = \'0\', FPSReportInterval = \'1000\', DefaultView = \'Events\', DefaultRate = \'100\', DefaultScale = \'100\', WebColour = \'red\', SignalCheckColour = \'#0000c0\', Protocol = \'http\', Method = \'simple\', Host = \'192.168.3.225\', Port = \'80\', Path = \'\', Colours = \'3\', Width = \'320\', Height = \'240\', Orientation = \'0\', Deinterlacing = \'0\', Sequence = 1\'', 'includes/database.php', 78 )': Data too long for column 'Message' at row 1
2013-09-13 16:34:00 +08:00
INSERT into MonitorPresets VALUES ( NULL , ' Axis IP, mpeg4, RTP/RTSP/HTTP ' , ' Remote ' , NULL , NULL , NULL , ' rtsp ' , ' rtpRtspHttp ' , ' <ip-address> ' , 554 , ' /mpeg4/media.amp ' , ' /trackID= ' , NULL , NULL , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
2018-10-16 05:14:57 +08:00
INSERT INTO MonitorPresets VALUES ( NULL , ' D-link DCS-930L, 640x480, mjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /mjpeg.cgi ' , NULL , 640 , 480 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
2020-02-19 17:50:09 +08:00
INSERT INTO MonitorPresets VALUES ( NULL , ' D-Link DCS-5020L, 640x480, mjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <username>:<pwd>@<ip-address> ' , ' 80 ' , ' /video.cgi ' , NULL , 640 , 480 , 0 , NULL , 1 , ' 34 ' , NULL , ' <username>:<pwd>@<ip-address> ' , 100 , 100 ) ;
2018-01-15 10:14:30 +08:00
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP, 320x240, mpjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /nphMotionJpeg?Resolution=320x240&Quality=Standard ' , NULL , 320 , 240 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP, 320x240, jpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /SnapshotJPEG?Resolution=320x240&Quality=Standard ' , NULL , 320 , 240 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP, 320x240, jpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /SnapshotJPEG?Resolution=320x240&Quality=Standard ' , NULL , 320 , 240 , 3 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP, 640x480, mpjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /nphMotionJpeg?Resolution=640x480&Quality=Standard ' , NULL , 640 , 480 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP, 640x480, jpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /SnapshotJPEG?Resolution=640x480&Quality=Standard ' , NULL , 640 , 480 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP, 640x480, jpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /SnapshotJPEG?Resolution=640x480&Quality=Standard ' , NULL , 640 , 480 , 3 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP PTZ, 320x240, mpjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /nphMotionJpeg?Resolution=320x240&Quality=Standard ' , NULL , 320 , 240 , 3 , NULL , 1 , 5 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP PTZ, 320x240, jpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /SnapshotJPEG?Resolution=320x240&Quality=Standard ' , NULL , 320 , 240 , 3 , NULL , 1 , 5 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP PTZ, 320x240, jpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /SnapshotJPEG?Resolution=320x240&Quality=Standard ' , NULL , 320 , 240 , 3 , 5 . 0 , 1 , 5 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP PTZ, 640x480, mpjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /nphMotionJpeg?Resolution=640x480&Quality=Standard ' , NULL , 640 , 480 , 3 , NULL , 1 , 5 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP PTZ, 640x480, jpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /SnapshotJPEG?Resolution=640x480&Quality=Standard ' , NULL , 640 , 480 , 3 , NULL , 1 , 5 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Panasonic IP PTZ, 640x480, jpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /SnapshotJPEG?Resolution=640x480&Quality=Standard ' , NULL , 640 , 480 , 3 , 5 . 0 , 1 , 5 , NULL , ' <ip-address>:<port> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Gadspot IP, jpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /Jpeg/CamImg.jpg ' , NULL , NULL , NULL , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Gadspot IP, jpeg, max 5 FPS ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /Jpeg/CamImg.jpg ' , NULL , NULL , NULL , 3 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Gadspot IP, mpjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /GetData.cgi ' , NULL , NULL , NULL , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Gadspot IP, mpjpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /Jpeg/CamImg.jpg ' , NULL , NULL , NULL , 3 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
2018-08-22 23:23:56 +08:00
INSERT INTO MonitorPresets VALUES ( NULL , ' IP Webcam by Pavel Khlebovich 1920x1080 ' , ' Remote ' , ' /dev/video<?> ' , ' 0 ' , 255 , ' http ' , ' simple ' , ' <ip-address> ' , ' 8080 ' , ' /video ' , ' ' , 1920 , 1080 , 0 , NULL , 0 , ' 0 ' , ' ' , ' ' , 100 , 100 ) ;
2018-01-15 10:14:30 +08:00
INSERT INTO MonitorPresets VALUES ( NULL , ' VEO Observer, jpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /Jpeg/CamImg.jpg ' , NULL , NULL , NULL , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Blue Net Video Server, jpeg ' , ' Remote ' , ' http ' , 0 , 0 , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /cgi-bin/image.cgi?control=0&id=admin&passwd=admin ' , NULL , 320 , 240 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
Error correction
Table "Users":
ERROR 1366 (HY000) at line 523: Incorrect integer value: '' for column 'Id' at row 1
Table "MonitorPresets":
ERROR 1366 (HY000) at line 550: Incorrect integer value: '' for column 'Id' at row 1
...and many others like this
Incorrect 'channel' field type in table "MonitorPresets":
ERROR 1366 (HY000) at line 550: Incorrect integer value: 'simple' for column 'Channel' at row 1
...and many others like this
"DefaultValue" field is very small in table "Config":
ERROR 1406 (22001) at line 743: Data too long for column 'DefaultValue' at row 1
Some 'INSERT INTO MonitorPresets' querys are wrong.
"Message" field is very small in table "Logs":
Can't write log entry 'insert into Logs ( TimeKey, Component, Pid, Level, Code, Message, File, Line ) values ( 1379059494.570980, 'web_php', 30387, -3, 'FAT', 'SQL-ERR \'Incorrect decimal value: \'\' for column \'MaxFPS\' at row 1\', statement was \'insert into Monitors set LinkedMonitors = \'\', Name = \'test\', Type = \'Remote\', Function = \'Monitor\', Enabled = \'1\', RefBlendPerc = \'12\', MaxFPS = \'\', AlarmMaxFPS = \'\', Device = \'/dev/video0\', Channel = \'0\', Format = \'255\', Palette = \'0\', LabelFormat = \'%N - %d/%m/%y %H:%M:%S\', LabelX = \'0\', LabelY = \'0\', ImageBufferCount = \'50\', WarmupCount = \'25\', PreEventCount = \'25\', PostEventCount = \'25\', StreamReplayBuffer = \'1000\', AlarmFrameCount = \'1\', EventPrefix = \'Event-\', SectionLength = \'600\', FrameSkip = \'0\', FPSReportInterval = \'1000\', DefaultView = \'Events\', DefaultRate = \'100\', DefaultScale = \'100\', WebColour = \'red\', SignalCheckColour = \'#0000c0\', Protocol = \'http\', Method = \'simple\', Host = \'192.168.3.225\', Port = \'80\', Path = \'\', Colours = \'3\', Width = \'320\', Height = \'240\', Orientation = \'0\', Deinterlacing = \'0\', Sequence = 1\'', 'includes/database.php', 78 )': Data too long for column 'Message' at row 1
2013-09-13 16:34:00 +08:00
INSERT into MonitorPresets VALUES ( NULL , ' ACTi IP, mpeg4, unicast ' , ' Remote ' , NULL , NULL , NULL , ' rtsp ' , ' rtpUni ' , ' <ip-address> ' , 7070 , ' ' , ' /track ' , NULL , NULL , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis FFMPEG H.264 ' , ' Ffmpeg ' , NULL , NULL , NULL , NULL , NULL , ' rtsp://<host/address>/axis-media/media.amp?videocodec=h264 ' , NULL , NULL , NULL , 640 , 480 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Vivotek FFMPEG ' , ' Ffmpeg ' , NULL , NULL , NULL , NULL , NULL , ' rtsp://<host/address>:554/live.sdp ' , NULL , NULL , NULL , 352 , 240 , NULL , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Axis FFMPEG ' , ' Ffmpeg ' , NULL , NULL , NULL , NULL , NULL , ' rtsp://<host/address>/axis-media/media.amp ' , NULL , NULL , NULL , 640 , 480 , NULL , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' ACTi TCM FFMPEG ' , ' Ffmpeg ' , NULL , NULL , NULL , NULL , NULL , ' rtsp://admin:123456@<host/address>:7070 ' , NULL , NULL , NULL , 320 , 240 , NULL , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
2018-01-16 01:13:26 +08:00
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L2), PAL, 320x240 ' , ' Local ' , ' /dev/video<?> ' , 0 , 255 , NULL , ' v4l2 ' , NULL , NULL , NULL , NULL , 320 , 240 , 1345466932 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
2018-01-15 23:45:40 +08:00
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L2), PAL, 320x240, max 5 FPS ' , ' Local ' , ' /dev/video<?> ' , 0 , 255 , NULL , ' v4l2 ' , NULL , NULL , NULL , NULL , 320 , 240 , 1345466932 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L2), PAL, 640x480 ' , ' Local ' , ' /dev/video<?> ' , 0 , 255 , NULL , ' v4l2 ' , NULL , NULL , NULL , NULL , 640 , 480 , 1345466932 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L2), PAL, 640x480, max 5 FPS ' , ' Local ' , ' /dev/video<?> ' , 0 , 255 , NULL , ' v4l2 ' , NULL , NULL , NULL , NULL , 640 , 480 , 1345466932 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L2), NTSC, 320x240 ' , ' Local ' , ' /dev/video<?> ' , 0 , 45056 , NULL , ' v4l2 ' , NULL , NULL , NULL , NULL , 320 , 240 , 1345466932 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L2), NTSC, 320x240, max 5 FPS ' , ' Local ' , ' /dev/video<?> ' , 0 , 45056 , NULL , ' v4l2 ' , NULL , NULL , NULL , NULL , 320 , 240 , 1345466932 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L2), NTSC, 640x480 ' , ' Local ' , ' /dev/video<?> ' , 0 , 45056 , NULL , ' v4l2 ' , NULL , NULL , NULL , NULL , 640 , 480 , 1345466932 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L2), NTSC, 640x480, max 5 FPS ' , ' Local ' , ' /dev/video<?> ' , 0 , 45056 , NULL , ' v4l2 ' , NULL , NULL , NULL , NULL , 640 , 480 , 1345466932 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L1), PAL, 320x240 ' , ' Local ' , ' /dev/video<?> ' , 0 , 0 , NULL , ' v4l1 ' , NULL , NULL , NULL , NULL , 320 , 240 , 13 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L1), PAL, 320x240, max 5 FPS ' , ' Local ' , ' /dev/video<?> ' , 0 , 0 , NULL , ' v4l1 ' , NULL , NULL , NULL , NULL , 320 , 240 , 13 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L1), PAL, 640x480 ' , ' Local ' , ' /dev/video<?> ' , 0 , 0 , NULL , ' v4l1 ' , NULL , NULL , NULL , NULL , 640 , 480 , 13 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L1), PAL, 640x480, max 5 FPS ' , ' Local ' , ' /dev/video<?> ' , 0 , 0 , NULL , ' v4l1 ' , NULL , NULL , NULL , NULL , 640 , 480 , 13 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L1), NTSC, 320x240 ' , ' Local ' , ' /dev/video<?> ' , 0 , 1 , NULL , ' v4l1 ' , NULL , NULL , NULL , NULL , 320 , 240 , 13 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L1), NTSC, 320x240, max 5 FPS ' , ' Local ' , ' /dev/video<?> ' , 0 , 1 , NULL , ' v4l1 ' , NULL , NULL , NULL , NULL , 320 , 240 , 13 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L1), NTSC, 640x480 ' , ' Local ' , ' /dev/video<?> ' , 0 , 1 , NULL , ' v4l1 ' , NULL , NULL , NULL , NULL , 640 , 480 , 13 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' BTTV Video (V4L1), NTSC, 640x480, max 5 FPS ' , ' Local ' , ' /dev/video<?> ' , 0 , 1 , NULL , ' v4l1 ' , NULL , NULL , NULL , NULL , 640 , 480 , 13 , 5 . 0 , 0 , NULL , NULL , NULL , 100 , 100 ) ;
Error correction
Table "Users":
ERROR 1366 (HY000) at line 523: Incorrect integer value: '' for column 'Id' at row 1
Table "MonitorPresets":
ERROR 1366 (HY000) at line 550: Incorrect integer value: '' for column 'Id' at row 1
...and many others like this
Incorrect 'channel' field type in table "MonitorPresets":
ERROR 1366 (HY000) at line 550: Incorrect integer value: 'simple' for column 'Channel' at row 1
...and many others like this
"DefaultValue" field is very small in table "Config":
ERROR 1406 (22001) at line 743: Data too long for column 'DefaultValue' at row 1
Some 'INSERT INTO MonitorPresets' querys are wrong.
"Message" field is very small in table "Logs":
Can't write log entry 'insert into Logs ( TimeKey, Component, Pid, Level, Code, Message, File, Line ) values ( 1379059494.570980, 'web_php', 30387, -3, 'FAT', 'SQL-ERR \'Incorrect decimal value: \'\' for column \'MaxFPS\' at row 1\', statement was \'insert into Monitors set LinkedMonitors = \'\', Name = \'test\', Type = \'Remote\', Function = \'Monitor\', Enabled = \'1\', RefBlendPerc = \'12\', MaxFPS = \'\', AlarmMaxFPS = \'\', Device = \'/dev/video0\', Channel = \'0\', Format = \'255\', Palette = \'0\', LabelFormat = \'%N - %d/%m/%y %H:%M:%S\', LabelX = \'0\', LabelY = \'0\', ImageBufferCount = \'50\', WarmupCount = \'25\', PreEventCount = \'25\', PostEventCount = \'25\', StreamReplayBuffer = \'1000\', AlarmFrameCount = \'1\', EventPrefix = \'Event-\', SectionLength = \'600\', FrameSkip = \'0\', FPSReportInterval = \'1000\', DefaultView = \'Events\', DefaultRate = \'100\', DefaultScale = \'100\', WebColour = \'red\', SignalCheckColour = \'#0000c0\', Protocol = \'http\', Method = \'simple\', Host = \'192.168.3.225\', Port = \'80\', Path = \'\', Colours = \'3\', Width = \'320\', Height = \'240\', Orientation = \'0\', Deinterlacing = \'0\', Sequence = 1\'', 'includes/database.php', 78 )': Data too long for column 'Message' at row 1
2013-09-13 16:34:00 +08:00
INSERT INTO MonitorPresets VALUES ( NULL , ' Remote ZoneMinder ' , ' Remote ' , NULL , NULL , NULL , ' http ' , ' simple ' , ' <ip-address> ' , 80 , ' /cgi-bin/nph-zms?mode=jpeg&monitor=<monitor-id>&scale=100&maxfps=5&buffer=0 ' , NULL , NULL , NULL , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Foscam FI8620 FFMPEG H.264 ' , ' Ffmpeg ' , NULL , NULL , NULL , NULL , ' ' , ' ' , ' ' , ' rtsp://<username>:<pwd>@<ip-address>:554/11 ' , NULL , 704 , 576 , 0 , NULL , 1 , ' 10 ' , ' <admin_pwd> ' , ' <ip-address> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Foscam FI8608W FFMPEG H.264 ' , ' Ffmpeg ' , NULL , NULL , NULL , NULL , ' ' , ' ' , ' ' , ' rtsp://<username>:<pwd>@<ip-address>:554/11 ' , NULL , 640 , 480 , 0 , NULL , 1 , ' 11 ' , ' <admin_pwd> ' , ' <ip-address> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Foscam FI9821W FFMPEG H.264 ' , ' Ffmpeg ' , NULL , NULL , NULL , NULL , ' ' , ' ' , ' ' , ' rtsp://<username>:<pwd>@<ip-address>:88/videoMain ' , NULL , 1280 , 720 , 0 , NULL , 1 , ' 12 ' , ' <admin_pwd> ' , ' <ip-address> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Loftek Sentinel PTZ, 640x480, mjpeg ' , ' Remote ' , ' http ' , 0 , 0 , NULL , NULL , ' <ip-address> ' , ' 80 ' , ' /videostream.cgi?user=<username>&pwd=<password>&resolution=32&rate=11 ' , NULL , 640 , 480 , 4 , NULL , 1 , ' 13 ' , ' ' , ' <username>:<pwd>@<ip-address> ' , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Airlink 777W PTZ, 640x480, mjpeg ' , ' Remote ' , ' http ' , 0 , 0 , NULL , NULL , ' <username>:<password>@<ip-address> ' , ' 80 ' , ' /cgi/mjpg/mjpg.cgi ' , NULL , 640 , 480 , 4 , NULL , 1 , ' 7 ' , ' ' , ' <username>:<pwd>@<ip-address> ' , 100 , 100 ) ;
2015-09-30 19:59:41 +08:00
INSERT INTO MonitorPresets VALUES ( NULL , ' SunEyes SP-P1802SWPTZ ' , ' Libvlc ' , ' /dev/video<?> ' , ' 0 ' , 255 , ' ' , ' rtpMulti ' , ' ' , ' 80 ' , ' rtsp://<ip-address>:554/11 ' , ' ' , 1920 , 1080 , 0 , 0 . 00 , 1 , ' 16 ' , ' -speed=64 ' , ' <ip-address>:<port> ' , 100 , 33 ) ;
2018-01-15 23:15:57 +08:00
INSERT INTO MonitorPresets VALUES ( NULL , ' Qihan IP, 1280x720, RTP/RTSP ' , ' Ffmpeg ' , ' rtsp ' , 0 , 255 , ' rtsp ' , ' rtpRtsp ' , NULL , 554 , ' rtsp://<ip-address>/tcp_live/ch0_0 ' , NULL , 1280 , 720 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
INSERT INTO MonitorPresets VALUES ( NULL , ' Qihan IP, 1920x1080, RTP/RTSP ' , ' Ffmpeg ' , ' rtsp ' , 0 , 255 , ' rtsp ' , ' rtpRtsp ' , NULL , 554 , ' rtsp://<ip-address>/tcp_live/ch0_0 ' , NULL , 1920 , 1080 , 3 , NULL , 0 , NULL , NULL , NULL , 100 , 100 ) ;
2006-01-01 02:08:50 +08:00
--
-- Add some zone preset values
--
2014-05-08 09:49:48 +08:00
INSERT INTO ZonePresets VALUES ( 1 , ' Default ' , ' Active ' , ' Percent ' , ' Blobs ' , 25 , NULL , 3 , 75 , 3 , 3 , 3 , 75 , 2 , NULL , 1 , NULL , 0 , 0 ) ;
INSERT INTO ZonePresets VALUES ( 2 , ' Fast, low sensitivity ' , ' Active ' , ' Percent ' , ' AlarmedPixels ' , 60 , NULL , 20 , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , 0 , 0 ) ;
INSERT INTO ZonePresets VALUES ( 3 , ' Fast, medium sensitivity ' , ' Active ' , ' Percent ' , ' AlarmedPixels ' , 40 , NULL , 10 , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , 0 , 0 ) ;
INSERT INTO ZonePresets VALUES ( 4 , ' Fast, high sensitivity ' , ' Active ' , ' Percent ' , ' AlarmedPixels ' , 20 , NULL , 5 , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , 0 , 0 ) ;
INSERT INTO ZonePresets VALUES ( 5 , ' Best, low sensitivity ' , ' Active ' , ' Percent ' , ' Blobs ' , 60 , NULL , 36 , NULL , 7 , 7 , 24 , NULL , 20 , NULL , 1 , NULL , 0 , 0 ) ;
INSERT INTO ZonePresets VALUES ( 6 , ' Best, medium sensitivity ' , ' Active ' , ' Percent ' , ' Blobs ' , 40 , NULL , 16 , NULL , 5 , 5 , 12 , NULL , 10 , NULL , 1 , NULL , 0 , 0 ) ;
INSERT INTO ZonePresets VALUES ( 7 , ' Best, high sensitivity ' , ' Active ' , ' Percent ' , ' Blobs ' , 20 , NULL , 8 , NULL , 3 , 3 , 6 , NULL , 5 , NULL , 1 , NULL , 0 , 0 ) ;
2005-12-21 07:00:58 +08:00
2018-01-12 03:34:57 +08:00
DROP TABLE IF EXISTS Maps ;
2017-10-24 01:52:51 +08:00
CREATE TABLE Maps (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
2018-01-12 03:34:57 +08:00
` Name ` VARCHAR ( 64 ) NOT NULL ,
` Filename ` VARCHAR ( 64 ) NOT NULL default ' ' ,
2017-10-24 01:52:51 +08:00
` NumCoords ` tinyint ( 3 ) unsigned NOT NULL default ' 0 ' ,
` Coords ` tinytext NOT NULL ,
` ParentId ` int ( 1 ) unsigned ,
PRIMARY KEY ( ` Id ` )
) ;
2017-10-28 00:57:41 +08:00
2018-02-23 20:46:37 +08:00
DROP TABLE IF EXISTS MontageLayouts ;
2018-01-12 03:34:57 +08:00
2017-10-28 00:57:41 +08:00
CREATE TABLE MontageLayouts (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` Name ` TEXT NOT NULL ,
2017-11-01 23:05:21 +08:00
` Positions ` LONGTEXT ,
/* `Positions` JSON, */
2017-10-28 00:57:41 +08:00
PRIMARY KEY ( ` Id ` )
) ;
2017-11-01 23:56:18 +08:00
INSERT INTO MontageLayouts ( ` Name ` , ` Positions ` ) VALUES ( ' Freeform ' , ' { "default":{"float":"left","left":"0px","right":"0px","top":"0px","bottom":"0px"} } ' ) ;
INSERT INTO MontageLayouts ( ` Name ` , ` Positions ` ) VALUES ( ' 2 Wide ' , ' { "default":{"float":"left", "width":"49%","left":"0px","right":"0px","top":"0px","bottom":"0px"} } ' ) ;
INSERT INTO MontageLayouts ( ` Name ` , ` Positions ` ) VALUES ( ' 3 Wide ' , ' { "default":{"float":"left", "width":"33%","left":"0px","right":"0px","top":"0px","bottom":"0px"} } ' ) ;
INSERT INTO MontageLayouts ( ` Name ` , ` Positions ` ) VALUES ( ' 4 Wide ' , ' { "default":{"float":"left", "width":"24.5%","left":"0px","right":"0px","top":"0px","bottom":"0px"} } ' ) ;
INSERT INTO MontageLayouts ( ` Name ` , ` Positions ` ) VALUES ( ' 5 Wide ' , ' { "default":{"float":"left", "width":"19%","left":"0px","right":"0px","top":"0px","bottom":"0px"} } ' ) ;
2017-10-30 22:37:08 +08:00
2020-10-03 02:49:44 +08:00
CREATE TABLE Sessions (
id char ( 32 ) not null ,
access INT ( 10 ) UNSIGNED DEFAULT NULL ,
data text ,
PRIMARY KEY ( id )
) ENGINE = InnoDB ;
2021-03-12 22:26:13 +08:00
CREATE TABLE Snapshots (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` Name ` VARCHAR ( 64 ) ,
` Description ` TEXT ,
` CreatedBy ` int ( 10 ) ,
` CreatedOn ` datetime default NULL ,
PRIMARY KEY ( Id )
) ENGINE = InnoDB ;
CREATE TABLE Snapshot_Events (
` Id ` int ( 10 ) unsigned NOT NULL auto_increment ,
` SnapshotId ` int ( 10 ) unsigned NOT NULL ,
FOREIGN KEY ( ` SnapshotId ` ) REFERENCES ` Snapshots ` ( ` Id ` ) ON DELETE CASCADE ,
` EventId ` bigint unsigned NOT NULL ,
FOREIGN KEY ( ` EventId ` ) REFERENCES ` Events ` ( ` Id ` ) ON DELETE CASCADE ,
KEY ` Snapshot_Events_SnapshotId_idx ` ( ` SnapshotId ` ) ,
PRIMARY KEY ( Id )
) ENGINE = InnoDB ;
2018-02-19 00:01:33 +08:00
-- We generally don't alter triggers, we drop and re-create them, so let's keep them in a separate file that we can just source in update scripts.
2018-04-23 21:59:31 +08:00
source @ PKGDATADIR @ / db / triggers . sql
2005-12-21 07:00:58 +08:00
--
-- Apply the initial configuration
--
-- This section is autogenerated by zmconfgen.pl
-- Do not edit this file as any changes will be overwritten
--