merge: phase 17 wave 3 CLI wiring

This commit is contained in:
salvacybersec
2026-04-06 17:48:25 +03:00
11 changed files with 958 additions and 199 deletions

View File

@@ -56,6 +56,7 @@ CREATE TABLE IF NOT EXISTS custom_dorks (
CREATE INDEX IF NOT EXISTS idx_custom_dorks_source ON custom_dorks(source);
CREATE INDEX IF NOT EXISTS idx_custom_dorks_category ON custom_dorks(category);
<<<<<<< HEAD
-- Phase 17: Telegram bot subscribers for auto-notifications.
CREATE TABLE IF NOT EXISTS subscribers (
chat_id INTEGER PRIMARY KEY,
@@ -75,3 +76,19 @@ CREATE TABLE IF NOT EXISTS scheduled_jobs (
next_run DATETIME,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
=======
-- Phase 17: scheduled scan jobs for cron-based recurring scans.
CREATE TABLE IF NOT EXISTS scheduled_jobs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
cron_expr TEXT NOT NULL,
scan_path TEXT NOT NULL,
enabled INTEGER NOT NULL DEFAULT 1,
notify INTEGER NOT NULL DEFAULT 1,
last_run_at DATETIME,
next_run_at DATETIME,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX IF NOT EXISTS idx_scheduled_jobs_enabled ON scheduled_jobs(enabled);
>>>>>>> worktree-agent-a39573e4