Added schema - not tested.
This commit is contained in:
parent
ca69ebaffb
commit
66c31c6ff8
2 changed files with 44 additions and 0 deletions
22
schema/mariadb.sql
Normal file
22
schema/mariadb.sql
Normal file
|
@ -0,0 +1,22 @@
|
|||
CREATE TABLE monutil_hosts (
|
||||
hostname VARCHAR(255) PRIMARY KEY,
|
||||
ipAddress VARCHAR(15) NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE monutil_hostlogs (
|
||||
logID INT AUTO_INCREMENT PRIMARY KEY,
|
||||
hostname VARCHAR(255) NOT NULL,
|
||||
logTime DATETIME NOT NULL,
|
||||
cpu DECIMAL(5, 2) NOT NULL,
|
||||
memory DECIMAL(5, 2) NOT NULL,
|
||||
FOREIGN KEY (hostname) REFERENCES monutil_hosts(hostname)
|
||||
);
|
||||
|
||||
CREATE TABLE monutil_urlLogs (
|
||||
logID INT AUTO_INCREMENT PRIMARY KEY,
|
||||
hostname VARCHAR(255) NOT NULL,
|
||||
url TEXT NOT NULL,
|
||||
logTime DATETIME NOT NULL,
|
||||
responseTime DECIMAL(5, 2) NOT NULL,
|
||||
FOREIGN KEY (hostname) REFERENCES monutil_hosts(hostname)
|
||||
);
|
22
schema/mssql.sql
Normal file
22
schema/mssql.sql
Normal file
|
@ -0,0 +1,22 @@
|
|||
CREATE TABLE monutil_hosts (
|
||||
hostname NVARCHAR(255) PRIMARY KEY,
|
||||
ipAddress VARCHAR(15) NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE monutil_hostlogs (
|
||||
logID INT IDENTITY(1, 1) PRIMARY KEY,
|
||||
hostname NVARCHAR(255) NOT NULL,
|
||||
logTime DATETIME NOT NULL,
|
||||
cpu DECIMAL(5, 2) NOT NULL,
|
||||
memory DECIMAL(5, 2) NOT NULL,
|
||||
FOREIGN KEY (hostname) REFERENCES monutil_hosts(hostname)
|
||||
);
|
||||
|
||||
CREATE TABLE monutil_urlLogs (
|
||||
logID INT IDENTITY(1, 1) PRIMARY KEY,
|
||||
hostname NVARCHAR(255) NOT NULL,
|
||||
url NVARCHAR(MAX) NOT NULL,
|
||||
logTime DATETIME NOT NULL,
|
||||
responseTime DECIMAL(5, 2) NOT NULL,
|
||||
FOREIGN KEY (hostname) REFERENCES monutil_hosts(hostname)
|
||||
);
|
Loading…
Reference in a new issue