feat: event management and websocket for updates
This commit is contained in:
@@ -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
|
||||
);
|
||||
11
sparse-server/migrations/20250222071958_new_assignments.sql
Normal file
11
sparse-server/migrations/20250222071958_new_assignments.sql
Normal 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
|
||||
);
|
||||
Reference in New Issue
Block a user