Adds Jilo agents checks table to the schema

main
Yasen Pramatarov 2024-10-15 20:52:16 +03:00
parent 202d90d4fc
commit 15d5626b20
1 changed files with 9 additions and 0 deletions

View File

@ -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,