Adds Jilo agents checks table to the schema
parent
202d90d4fc
commit
15d5626b20
|
@ -46,6 +46,15 @@ CREATE TABLE jilo_agent_types (
|
||||||
description TEXT,
|
description TEXT,
|
||||||
endpoint TEXT
|
endpoint TEXT
|
||||||
);
|
);
|
||||||
|
CREATE TABLE jilo_agent_checks (
|
||||||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
|
agent_id INTEGER,
|
||||||
|
timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
status_code INTEGER,
|
||||||
|
response_time_ms INTEGER,
|
||||||
|
response_content TEXT,
|
||||||
|
FOREIGN KEY (agent_id) REFERENCES jilo_agents(id)
|
||||||
|
);
|
||||||
CREATE TABLE logs (
|
CREATE TABLE logs (
|
||||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
user_id INTEGET NOT NULL,
|
user_id INTEGET NOT NULL,
|
||||||
|
|
Loading…
Reference in New Issue