feat: agent metadata with custom collectors

This commit is contained in:
2023-03-02 13:05:24 +01:00
parent 3310c09320
commit 1ff29ae1fb
40 changed files with 998 additions and 256 deletions

View File

@ -2,7 +2,9 @@
CREATE TABLE agents (
id INTEGER PRIMARY KEY,
remote_id TEXT NOT NULL UNIQUE,
thumbprint TEXT UNIQUE,
keyset TEXT,
metadata TEXT,
status INTEGER NOT NULL,
created_at datetime NOT NULL,
updated_at datetime NOT NULL
@ -13,7 +15,7 @@ CREATE TABLE specs (
agent_id INTEGER,
name TEXT NOT NULL,
revision INTEGER DEFAULT 0,
data TEXT,
data TEXT,
created_at datetime NOT NULL,
updated_at datetime NOT NULL,
FOREIGN KEY (agent_id) REFERENCES agents (id) ON DELETE CASCADE,