diff --git a/deploy/mariadb/init/001-schema.sql b/deploy/mariadb/init/001-schema.sql
index 4c1cccb..31e31cc 100644
--- a/deploy/mariadb/init/001-schema.sql
+++ b/deploy/mariadb/init/001-schema.sql
@@ -1395,4 +1395,34 @@ CREATE TABLE baseline_exclusions (
);
CREATE INDEX idx_baseline_exclusions_lookup
-ON baseline_exclusions (enabled, hostname, channel_name, event_id, expires_at);
\ No newline at end of file
+ON baseline_exclusions (enabled, hostname, channel_name, event_id, expires_at);
+
+CREATE TABLE host_risk_scores (
+ hostname VARCHAR(255) PRIMARY KEY,
+ risk_score DOUBLE NOT NULL DEFAULT 0,
+ severity VARCHAR(16) NOT NULL DEFAULT 'info',
+ open_detections INT NOT NULL DEFAULT 0,
+ high_detections INT NOT NULL DEFAULT 0,
+ critical_detections INT NOT NULL DEFAULT 0,
+ confirmed_incidents INT NOT NULL DEFAULT 0,
+ last_detection_at TIMESTAMP(6) NULL,
+ updated_at TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
+);
+
+CREATE TABLE ueba_user_baseline (
+ id BIGINT AUTO_INCREMENT PRIMARY KEY,
+ username VARCHAR(255) NOT NULL,
+ hostname VARCHAR(255) NOT NULL,
+ src_ip VARCHAR(255) NOT NULL DEFAULT '',
+ workstation VARCHAR(255) NOT NULL DEFAULT '',
+ first_seen TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
+ last_seen TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
+ seen_count BIGINT NOT NULL DEFAULT 1,
+ UNIQUE KEY uniq_user_context (username, hostname, src_ip, workstation)
+);
+
+CREATE INDEX idx_ueba_user_baseline_user
+ON ueba_user_baseline (username, last_seen);
+
+CREATE INDEX idx_host_risk_score
+ON host_risk_scores (risk_score, severity);
\ No newline at end of file
diff --git a/main.go b/main.go
index d543168..b309ce0 100644
--- a/main.go
+++ b/main.go
@@ -399,6 +399,7 @@ a {
SIEM-lite