feat: create migrator

This commit is contained in:
2026-04-15 19:03:51 +03:00
parent 4e6e83795a
commit 65d8f883dc
7 changed files with 100 additions and 2 deletions
@@ -0,0 +1,14 @@
CREATE TABLE agents (
id BIGINT UNIQUE PRIMARY KEY,
agent_id VARCHAR(32) UNIQUE NOT NULL,
agent_name VARCHAR(255),
architecture VARCHAR(10) NOT NULL,
system VARCHAR(10) NOT NULL,
hostname VARCHAR(100) NOT NULL,
version VARCHAR(10) NOT NULL,
capabilities JSON,
registered_at timestamp without time zone DEFAULT now() NOT NULL
);
CREATE UNIQUE INDEX idx_agent_id ON agent (id);
CREATE UNIQUE INDEX idx_agent_id_id On agent (agent_id)