🚀 Release v1.0.51
- Tipo: patch - Database schema: database-schema/schema.sql (solo struttura) - Data: 2025-11-24 11:08:56
This commit is contained in:
parent
7940694d43
commit
bbb9987b9b
@ -2,7 +2,7 @@
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
\restrict X3w53SeRldjjg9KLB3eOPk6t2lFttnILb9Go4LCOcfgha6VaIvinQUpHJZJIwuq
|
||||
\restrict vrhAv8yUNutIBvnMcHVyzLdhAuYN8gWeJuuWizGOuc4Pz9YTQcW2XchV42D78Dh
|
||||
|
||||
-- Dumped from database version 16.9 (415ebe8)
|
||||
-- Dumped by pg_dump version 16.10
|
||||
@ -38,7 +38,40 @@ CREATE TABLE public.detections (
|
||||
last_seen timestamp without time zone NOT NULL,
|
||||
blocked boolean DEFAULT false NOT NULL,
|
||||
blocked_at timestamp without time zone,
|
||||
detected_at timestamp without time zone DEFAULT now() NOT NULL
|
||||
detected_at timestamp without time zone DEFAULT now() NOT NULL,
|
||||
country text,
|
||||
country_code text,
|
||||
city text,
|
||||
organization text,
|
||||
as_number text,
|
||||
as_name text,
|
||||
isp text
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: network_analytics; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE TABLE public.network_analytics (
|
||||
id character varying DEFAULT gen_random_uuid() NOT NULL,
|
||||
date timestamp without time zone NOT NULL,
|
||||
hour integer,
|
||||
total_packets integer DEFAULT 0 NOT NULL,
|
||||
total_bytes bigint DEFAULT 0 NOT NULL,
|
||||
unique_ips integer DEFAULT 0 NOT NULL,
|
||||
normal_packets integer DEFAULT 0 NOT NULL,
|
||||
normal_bytes bigint DEFAULT 0 NOT NULL,
|
||||
normal_unique_ips integer DEFAULT 0 NOT NULL,
|
||||
top_normal_ips text,
|
||||
attack_packets integer DEFAULT 0 NOT NULL,
|
||||
attack_bytes bigint DEFAULT 0 NOT NULL,
|
||||
attack_unique_ips integer DEFAULT 0 NOT NULL,
|
||||
attacks_by_country text,
|
||||
attacks_by_type text,
|
||||
top_attackers text,
|
||||
traffic_by_country text,
|
||||
created_at timestamp without time zone DEFAULT now() NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@ -51,9 +84,9 @@ CREATE TABLE public.network_logs (
|
||||
router_id character varying NOT NULL,
|
||||
"timestamp" timestamp without time zone NOT NULL,
|
||||
source_ip text NOT NULL,
|
||||
dest_ip text,
|
||||
destination_ip text,
|
||||
source_port integer,
|
||||
dest_port integer,
|
||||
destination_port integer,
|
||||
protocol text,
|
||||
action text,
|
||||
bytes integer,
|
||||
@ -132,6 +165,22 @@ ALTER TABLE ONLY public.detections
|
||||
ADD CONSTRAINT detections_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: network_analytics network_analytics_date_hour_key; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.network_analytics
|
||||
ADD CONSTRAINT network_analytics_date_hour_key UNIQUE (date, hour);
|
||||
|
||||
|
||||
--
|
||||
-- Name: network_analytics network_analytics_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.network_analytics
|
||||
ADD CONSTRAINT network_analytics_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: network_logs network_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
@ -188,6 +237,13 @@ ALTER TABLE ONLY public.whitelist
|
||||
ADD CONSTRAINT whitelist_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: country_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX country_idx ON public.detections USING btree (country);
|
||||
|
||||
|
||||
--
|
||||
-- Name: detected_at_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
@ -202,6 +258,20 @@ CREATE INDEX detected_at_idx ON public.detections USING btree (detected_at);
|
||||
CREATE INDEX detection_source_ip_idx ON public.detections USING btree (source_ip);
|
||||
|
||||
|
||||
--
|
||||
-- Name: network_analytics_date_hour_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX network_analytics_date_hour_idx ON public.network_analytics USING btree (date, hour);
|
||||
|
||||
|
||||
--
|
||||
-- Name: network_analytics_date_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX network_analytics_date_idx ON public.network_analytics USING btree (date);
|
||||
|
||||
|
||||
--
|
||||
-- Name: risk_score_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
@ -242,5 +312,5 @@ ALTER TABLE ONLY public.network_logs
|
||||
-- PostgreSQL database dump complete
|
||||
--
|
||||
|
||||
\unrestrict X3w53SeRldjjg9KLB3eOPk6t2lFttnILb9Go4LCOcfgha6VaIvinQUpHJZJIwuq
|
||||
\unrestrict vrhAv8yUNutIBvnMcHVyzLdhAuYN8gWeJuuWizGOuc4Pz9YTQcW2XchV42D78Dh
|
||||
|
||||
|
||||
16
version.json
16
version.json
@ -1,7 +1,13 @@
|
||||
{
|
||||
"version": "1.0.50",
|
||||
"lastUpdate": "2025-11-24T10:12:24.274Z",
|
||||
"version": "1.0.51",
|
||||
"lastUpdate": "2025-11-24T11:08:56.183Z",
|
||||
"changelog": [
|
||||
{
|
||||
"version": "1.0.51",
|
||||
"date": "2025-11-24",
|
||||
"type": "patch",
|
||||
"description": "Deployment automatico v1.0.51"
|
||||
},
|
||||
{
|
||||
"version": "1.0.50",
|
||||
"date": "2025-11-24",
|
||||
@ -295,12 +301,6 @@
|
||||
"date": "2025-11-17",
|
||||
"type": "patch",
|
||||
"description": "Deployment automatico v1.0.2"
|
||||
},
|
||||
{
|
||||
"version": "1.0.1",
|
||||
"date": "2025-11-17",
|
||||
"type": "patch",
|
||||
"description": "Deployment automatico v1.0.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user