Changed SQL scheme
This commit is contained in:
parent
063e74a981
commit
aeb1506e76
28
createdb.sql
28
createdb.sql
@ -1,9 +1,8 @@
|
|||||||
CREATE DATABASE Syslog;
|
CREATE DATABASE syslog;
|
||||||
USE Syslog;
|
USE syslog;
|
||||||
CREATE TABLE SystemEvents
|
CREATE TABLE SystemEvents
|
||||||
(
|
(
|
||||||
ID int unsigned not null auto_increment primary key,
|
ID int unsigned not null auto_increment primary key,
|
||||||
CustomerID bigint,
|
|
||||||
ReceivedAt datetime NULL,
|
ReceivedAt datetime NULL,
|
||||||
DeviceReportedTime datetime NULL,
|
DeviceReportedTime datetime NULL,
|
||||||
Facility smallint NULL,
|
Facility smallint NULL,
|
||||||
@ -11,28 +10,5 @@ CREATE TABLE SystemEvents
|
|||||||
FromHost varchar(60) NULL,
|
FromHost varchar(60) NULL,
|
||||||
Hostname varchar(60) NULL,
|
Hostname varchar(60) NULL,
|
||||||
Message text,
|
Message text,
|
||||||
NTSeverity int NULL,
|
|
||||||
Importance int NULL,
|
|
||||||
EventSource varchar(60),
|
|
||||||
EventUser varchar(60) NULL,
|
|
||||||
EventCategory int NULL,
|
|
||||||
EventID int NULL,
|
|
||||||
EventBinaryData text NULL,
|
|
||||||
MaxAvailable int NULL,
|
|
||||||
CurrUsage int NULL,
|
|
||||||
MinUsage int NULL,
|
|
||||||
MaxUsage int NULL,
|
|
||||||
InfoUnitID int NULL ,
|
|
||||||
SysLogTag varchar(60),
|
SysLogTag varchar(60),
|
||||||
EventLogType varchar(60),
|
|
||||||
GenericFileName VarChar(60),
|
|
||||||
SystemID int NULL
|
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE SystemEventsProperties
|
|
||||||
(
|
|
||||||
ID int unsigned not null auto_increment primary key,
|
|
||||||
SystemEventID int NULL ,
|
|
||||||
ParamName varchar(255) NULL ,
|
|
||||||
ParamValue text NULL
|
|
||||||
);
|
|
Loading…
Reference in New Issue
Block a user