🚀 Release v1.0.92
- Tipo: patch - Database schema: database-schema/schema.sql (solo struttura) - Data: 2025-11-27 18:03:43
This commit is contained in:
parent
b31bad7d8b
commit
584c25381c
@ -2,7 +2,7 @@
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
\restrict DRdWV6koNFM47SZOgSmGHaNCokL52rZoapBp1Sp7pjpmsyVuQ8dd8Z1Ne5UrhKB
|
||||
\restrict c6g4cc50bEpttnF1ijvriuCCR0u2XqZBTHHpdxafiFq1R4s4pYg37mYQLlGdMgg
|
||||
|
||||
-- Dumped from database version 16.9 (415ebe8)
|
||||
-- Dumped by pg_dump version 16.10
|
||||
@ -45,7 +45,9 @@ CREATE TABLE public.detections (
|
||||
organization text,
|
||||
as_number text,
|
||||
as_name text,
|
||||
isp text
|
||||
isp text,
|
||||
detection_source text DEFAULT 'ml_model'::text,
|
||||
blacklist_id character varying
|
||||
);
|
||||
|
||||
|
||||
@ -96,6 +98,44 @@ CREATE TABLE public.network_logs (
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: public_blacklist_ips; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE TABLE public.public_blacklist_ips (
|
||||
id character varying DEFAULT (gen_random_uuid())::text NOT NULL,
|
||||
ip_address text NOT NULL,
|
||||
cidr_range text,
|
||||
ip_inet text,
|
||||
cidr_inet text,
|
||||
list_id character varying NOT NULL,
|
||||
first_seen timestamp without time zone DEFAULT now() NOT NULL,
|
||||
last_seen timestamp without time zone DEFAULT now() NOT NULL,
|
||||
is_active boolean DEFAULT true NOT NULL
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: public_lists; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE TABLE public.public_lists (
|
||||
id character varying DEFAULT (gen_random_uuid())::text NOT NULL,
|
||||
name text NOT NULL,
|
||||
type text NOT NULL,
|
||||
url text NOT NULL,
|
||||
enabled boolean DEFAULT true NOT NULL,
|
||||
fetch_interval_minutes integer DEFAULT 10 NOT NULL,
|
||||
last_fetch timestamp without time zone,
|
||||
last_success timestamp without time zone,
|
||||
total_ips integer DEFAULT 0 NOT NULL,
|
||||
active_ips integer DEFAULT 0 NOT NULL,
|
||||
error_count integer DEFAULT 0 NOT NULL,
|
||||
last_error text,
|
||||
created_at timestamp without time zone DEFAULT now() NOT NULL
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: routers; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
@ -153,7 +193,10 @@ CREATE TABLE public.whitelist (
|
||||
reason text,
|
||||
created_by text,
|
||||
active boolean DEFAULT true NOT NULL,
|
||||
created_at timestamp without time zone DEFAULT now() NOT NULL
|
||||
created_at timestamp without time zone DEFAULT now() NOT NULL,
|
||||
source text DEFAULT 'manual'::text,
|
||||
list_id character varying,
|
||||
ip_inet text
|
||||
);
|
||||
|
||||
|
||||
@ -189,6 +232,30 @@ ALTER TABLE ONLY public.network_logs
|
||||
ADD CONSTRAINT network_logs_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: public_blacklist_ips public_blacklist_ips_ip_address_list_id_key; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.public_blacklist_ips
|
||||
ADD CONSTRAINT public_blacklist_ips_ip_address_list_id_key UNIQUE (ip_address, list_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: public_blacklist_ips public_blacklist_ips_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.public_blacklist_ips
|
||||
ADD CONSTRAINT public_blacklist_ips_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: public_lists public_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.public_lists
|
||||
ADD CONSTRAINT public_lists_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: routers routers_ip_address_unique; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
@ -308,9 +375,17 @@ ALTER TABLE ONLY public.network_logs
|
||||
ADD CONSTRAINT network_logs_router_id_routers_id_fk FOREIGN KEY (router_id) REFERENCES public.routers(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: public_blacklist_ips public_blacklist_ips_list_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.public_blacklist_ips
|
||||
ADD CONSTRAINT public_blacklist_ips_list_id_fkey FOREIGN KEY (list_id) REFERENCES public.public_lists(id) ON DELETE CASCADE;
|
||||
|
||||
|
||||
--
|
||||
-- PostgreSQL database dump complete
|
||||
--
|
||||
|
||||
\unrestrict DRdWV6koNFM47SZOgSmGHaNCokL52rZoapBp1Sp7pjpmsyVuQ8dd8Z1Ne5UrhKB
|
||||
\unrestrict c6g4cc50bEpttnF1ijvriuCCR0u2XqZBTHHpdxafiFq1R4s4pYg37mYQLlGdMgg
|
||||
|
||||
|
||||
16
version.json
16
version.json
@ -1,7 +1,13 @@
|
||||
{
|
||||
"version": "1.0.91",
|
||||
"lastUpdate": "2025-11-26T15:29:20.606Z",
|
||||
"version": "1.0.92",
|
||||
"lastUpdate": "2025-11-27T18:03:43.928Z",
|
||||
"changelog": [
|
||||
{
|
||||
"version": "1.0.92",
|
||||
"date": "2025-11-27",
|
||||
"type": "patch",
|
||||
"description": "Deployment automatico v1.0.92"
|
||||
},
|
||||
{
|
||||
"version": "1.0.91",
|
||||
"date": "2025-11-26",
|
||||
@ -295,12 +301,6 @@
|
||||
"date": "2025-11-24",
|
||||
"type": "patch",
|
||||
"description": "Deployment automatico v1.0.43"
|
||||
},
|
||||
{
|
||||
"version": "1.0.42",
|
||||
"date": "2025-11-24",
|
||||
"type": "patch",
|
||||
"description": "Deployment automatico v1.0.42"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user