Update structure for Rates from RateProfile

This commit is contained in:
TeoV
2020-06-29 18:07:53 +03:00
parent 4ca51d202b
commit e66ff36383
10 changed files with 206 additions and 156 deletions

View File

@@ -490,11 +490,13 @@ CREATE TABLE tp_rate_profiles (
`max_cost_strategy` varchar(64) NOT NULL,
`rate_id` varchar(32) NOT NULL,
`rate_filter_ids` varchar(64) NOT NULL,
`rate_activation_start` varchar(64) NOT NULL,
`route_weight` decimal(8,2) NOT NULL,
`rate_blocker` BOOLEAN NOT NULL,
`rate_interval_start` varchar(64) NOT NULL,
`rate_value` decimal(8,4) NOT NULL,
`rate_unit` varchar(64) NOT NULL,
`rate_increment` varchar(64) NOT NULL,
`rate_blocker` BOOLEAN NOT NULL,
`created_at` TIMESTAMP,
PRIMARY KEY (`pk`),
KEY `tpid` (`tpid`),

View File

@@ -476,11 +476,13 @@ CREATE INDEX tp_routes_unique ON tp_routes ("tpid", "tenant", "id",
"max_cost_strategy" VARCHAR(64) NOT NULL,
"rate_id" VARCHAR(64) NOT NULL,
"rate_filter_ids" VARCHAR(64) NOT NULL,
"rate_activation_start" VARCHAR(64) NOT NULL,
"rate_weight" decimal(8,2) NOT NULL,
"rate_blocker" BOOLEAN NOT NULL,
"rate_interval_start" VARCHAR(64) NOT NULL,
"rate_value" decimal(8,4) NOT NULL,
"rate_unit" VARCHAR(64) NOT NULL,
"rate_increment" VARCHAR(64) NOT NULL,
"rate_blocker" BOOLEAN NOT NULL,
"created_at" TIMESTAMP WITH TIME ZONE
);
CREATE INDEX tp_rate_profiles_ids ON tp_rate_profiles (tpid);