Updated for version 1.0.0.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@152 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
e72e19fb90
commit
54f8358211
|
@ -4,6 +4,14 @@
|
|||
---------------------------------------------------------
|
||||
-- Server version 3.23.49
|
||||
|
||||
--
|
||||
-- Current Database: zm
|
||||
--
|
||||
|
||||
CREATE DATABASE /*!32312 IF NOT EXISTS*/ zm;
|
||||
|
||||
USE zm;
|
||||
|
||||
--
|
||||
-- Table structure for table 'Events'
|
||||
--
|
||||
|
@ -20,12 +28,28 @@ CREATE TABLE Events (
|
|||
AvgScore tinyint(3) unsigned default '0',
|
||||
MaxScore tinyint(3) unsigned default '0',
|
||||
Archived tinyint(4) default '0',
|
||||
LearnState char(1) default '',
|
||||
PRIMARY KEY (Id),
|
||||
UNIQUE KEY UC_Id (Id),
|
||||
KEY Id (Id,MonitorId),
|
||||
KEY MonitorId (MonitorId)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
-- Table structure for table 'Filters'
|
||||
--
|
||||
|
||||
CREATE TABLE Filters (
|
||||
Id int(10) unsigned NOT NULL auto_increment,
|
||||
MonitorId int(10) unsigned NOT NULL default '0',
|
||||
Name varchar(64) NOT NULL default '',
|
||||
Query text NOT NULL,
|
||||
AutoDelete tinyint(4) NOT NULL default '0',
|
||||
AutoUpload tinyint(4) NOT NULL default '0',
|
||||
PRIMARY KEY (Id),
|
||||
UNIQUE KEY FilterIDX (MonitorId,Name)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
-- Table structure for table 'Frames'
|
||||
--
|
||||
|
@ -70,6 +94,28 @@ CREATE TABLE Monitors (
|
|||
PRIMARY KEY (Id)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
-- Table structure for table 'Stats'
|
||||
--
|
||||
|
||||
CREATE TABLE Stats (
|
||||
MonitorId int(10) unsigned NOT NULL default '0',
|
||||
ZoneId int(10) unsigned NOT NULL default '0',
|
||||
EventId int(10) unsigned NOT NULL default '0',
|
||||
FrameId int(10) 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 smallint(5) unsigned NOT NULL default '0',
|
||||
MaxBlobSize smallint(5) 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'
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
-- Table structure for table 'Zones'
|
||||
--
|
||||
|
|
Loading…
Reference in New Issue