add implementation for new ips module

This commit is contained in:
ionutboangiu
2025-05-14 17:57:37 +03:00
committed by Dan Christian Bogos
parent d6676866d5
commit 43cdd396ba
74 changed files with 3424 additions and 92 deletions

View File

@@ -263,6 +263,30 @@ CREATE INDEX tp_resources_idx ON tp_resources (tpid);
CREATE INDEX tp_resources_unique ON tp_resources ("tpid", "tenant", "id", "filter_ids");
--
-- Table structure for table `tp_ips`
--
DROP TABLE IF EXISTS tp_ips;
CREATE TABLE tp_ips (
"pk" SERIAL PRIMARY KEY,
"tpid" varchar(64) NOT NULL,
"tenant"varchar(64) NOT NULL,
"id" varchar(64) NOT NULL,
"filter_ids" varchar(64) NOT NULL,
"activation_interval" varchar(64) NOT NULL,
"ttl" varchar(32) NOT NULL,
"type" varchar(64) NOT NULL,
"address_pool" varchar(64) NOT NULL,
"allocation" varchar(64) NOT NULL,
"stored" BOOLEAN NOT NULL,
"weight" NUMERIC(8,2) NOT NULL,
"created_at" TIMESTAMP WITH TIME ZONE
);
CREATE INDEX tp_ips_idx ON tp_ips (tpid);
CREATE INDEX tp_ips_unique ON tp_ips ("tpid", "tenant", "id", "filter_ids");
--
-- Table structure for table `tp_stats`
--