Changed SQL scheme

This commit is contained in:
David Leutgeb 2022-02-22 22:24:30 +01:00
parent 063e74a981
commit aeb1506e76

View File

@ -1,9 +1,8 @@
CREATE DATABASE Syslog;
USE Syslog;
CREATE DATABASE syslog;
USE syslog;
CREATE TABLE SystemEvents
(
ID int unsigned not null auto_increment primary key,
CustomerID bigint,
ReceivedAt datetime NULL,
DeviceReportedTime datetime NULL,
Facility smallint NULL,
@ -11,28 +10,5 @@ CREATE TABLE SystemEvents
FromHost varchar(60) NULL,
Hostname varchar(60) NULL,
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),
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
);