Files
caddy-proxy-manager/drizzle/0010_waf.sql
akanealw 99819b70ff
Some checks failed
Build and Push Docker Images (Trusted) / build-and-push (., docker/caddy/Dockerfile, caddy) (push) Has been cancelled
Build and Push Docker Images (Trusted) / build-and-push (., docker/l4-port-manager/Dockerfile, l4-port-manager) (push) Has been cancelled
Build and Push Docker Images (Trusted) / build-and-push (., docker/web/Dockerfile, web) (push) Has been cancelled
Tests / test (push) Has been cancelled
added caddy-proxy-manager for testing
2026-04-21 22:49:08 +00:00

24 lines
701 B
SQL
Executable File

-- Custom SQL migration file, put your code below! --
CREATE TABLE `waf_events` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`ts` integer NOT NULL,
`host` text NOT NULL DEFAULT '',
`client_ip` text NOT NULL,
`country_code` text,
`method` text NOT NULL DEFAULT '',
`uri` text NOT NULL DEFAULT '',
`rule_id` integer,
`rule_message` text,
`severity` text,
`raw_data` text
);
--> statement-breakpoint
CREATE INDEX `idx_waf_events_ts` ON `waf_events` (`ts`);
--> statement-breakpoint
CREATE INDEX `idx_waf_events_host_ts` ON `waf_events` (`host`, `ts`);
--> statement-breakpoint
CREATE TABLE `waf_log_parse_state` (
`key` text PRIMARY KEY NOT NULL,
`value` text NOT NULL
);