Add infrastructure for DispatcherProfile

This commit is contained in:
TeoV
2019-01-10 09:09:10 -05:00
committed by Dan Christian Bogos
parent 79a69b5aa7
commit 473d8dbc5a
41 changed files with 1190 additions and 154 deletions

View File

@@ -496,6 +496,27 @@ CREATE INDEX tp_suppliers_unique ON tp_suppliers ("tpid", "tenant", "id",
CREATE INDEX tp_chargers_unique ON tp_chargers ("tpid", "tenant", "id",
"filter_ids","run_id","attribute_ids");
--
-- Table structure for table `tp_chargers`
--
DROP TABLE IF EXISTS tp_dispatchers;
CREATE TABLE tp_dispatchers (
"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,
"strategy" varchar(64) NOT NULL,
"hosts" varchar(64) NOT NULL,
"weight" decimal(8,2) NOT NULL,
"created_at" TIMESTAMP WITH TIME ZONE
);
CREATE INDEX tp_dispatchers_ids ON tp_dispatchers (tpid);
CREATE INDEX tp_dispatchers_unique ON tp_dispatchers ("tpid", "tenant", "id",
"filter_ids","strategy","hosts");
--
-- Table structure for table `versions`
--