feat: event management and websocket for updates

This commit is contained in:
Andrew Rioux
2025-02-22 16:04:15 -05:00
parent 005048f1ce
commit faaa4d2d1a
48 changed files with 1409 additions and 204 deletions

View File

@@ -0,0 +1,19 @@
DROP TABLE beacon_config_assignment;
DROP TABLE beacon_instance;
CREATE TABLE beacon_instance (
beacon_id varchar PRIMARY KEY NOT NULL,
template_id int NOT NULL,
peer_ip varchar NOT NULL,
nickname varchar NOT NULL,
cwd varchar NOT NULL,
operating_system varchar NOT NULL,
beacon_userent varchar NOT NULL,
hostname varchar NOT NULL,
config_id int,
FOREIGN KEY (template_id) REFERENCES beacon_template,
FOREIGN KEY (config_id) REFERENCES beacon_config
);

View File

@@ -0,0 +1,11 @@
DROP TABLE beacon_category_assignment;
CREATE TABLE beacon_category_assignment (
category_id int NOT NULL,
beacon_id varchar NOT NULL,
PRIMARY KEY (category_id, beacon_id),
FOREIGN KEY (category_id) REFERENCES beacon_category,
FOREIGN KEY (beacon_id) REFERENCES beacon_instance
);