From 7bd058683b56fb30716372edbefb53ffe46b1d4a Mon Sep 17 00:00:00 2001 From: David Leutgeb Date: Tue, 22 Feb 2022 21:11:06 +0100 Subject: [PATCH] Initial commit --- createdb.sql | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 createdb.sql diff --git a/createdb.sql b/createdb.sql new file mode 100644 index 0000000..89a3411 --- /dev/null +++ b/createdb.sql @@ -0,0 +1,37 @@ +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, + Priority smallint NULL, + FromHost 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 + ); \ No newline at end of file