From 115075c8442dec0408ff36e279c488ef8a1a9193 Mon Sep 17 00:00:00 2001 From: Denis Talakevich Date: Sat, 30 Jun 2018 12:02:02 +0300 Subject: [PATCH] fix db/structure.sql and db/second_base/structure.sql --- db/secondbase/structure.sql | 92 +- db/structure.sql | 2395 ++++++++++++++++------------------- 2 files changed, 1215 insertions(+), 1272 deletions(-) diff --git a/db/secondbase/structure.sql b/db/secondbase/structure.sql index 18fa924c1..69ee2984f 100644 --- a/db/secondbase/structure.sql +++ b/db/secondbase/structure.sql @@ -308,6 +308,19 @@ CREATE TYPE switch.versions_ty AS ( ); +-- +-- Name: auth_log_i_tgf(); Type: FUNCTION; Schema: auth_log; Owner: - +-- + +CREATE FUNCTION auth_log.auth_log_i_tgf() RETURNS trigger + LANGUAGE plpgsql + AS $$ + BEGIN + RAISE EXCEPTION 'auth_log.auth_log_i_tg: request_time out of range.'; + RETURN NULL; + END; $$; + + SET default_tablespace = ''; SET default_with_oids = false; @@ -3794,6 +3807,18 @@ CREATE SEQUENCE billing.invoices_id_seq ALTER SEQUENCE billing.invoices_id_seq OWNED BY billing.invoices.id; +-- +-- Name: ar_internal_metadata; Type: TABLE; Schema: cdr; Owner: -; Tablespace: +-- + +CREATE TABLE cdr.ar_internal_metadata ( + key character varying NOT NULL, + value character varying, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL +); + + -- -- Name: cdr_archive; Type: TABLE; Schema: cdr; Owner: -; Tablespace: -- @@ -5153,6 +5178,40 @@ CREATE TABLE sys.amount_round_modes ( ); +-- +-- Name: auth_log_tables; Type: TABLE; Schema: sys; Owner: -; Tablespace: +-- + +CREATE TABLE sys.auth_log_tables ( + id bigint NOT NULL, + name character varying NOT NULL, + date_start character varying NOT NULL, + date_stop character varying NOT NULL, + readable boolean DEFAULT true NOT NULL, + writable boolean DEFAULT false NOT NULL, + active boolean DEFAULT true NOT NULL +); + + +-- +-- Name: auth_log_tables_id_seq; Type: SEQUENCE; Schema: sys; Owner: - +-- + +CREATE SEQUENCE sys.auth_log_tables_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +-- +-- Name: auth_log_tables_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - +-- + +ALTER SEQUENCE sys.auth_log_tables_id_seq OWNED BY sys.auth_log_tables.id; + + -- -- Name: call_duration_round_modes; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- @@ -5442,6 +5501,13 @@ ALTER TABLE ONLY stats.traffic_customer_accounts ALTER COLUMN id SET DEFAULT nex ALTER TABLE ONLY stats.traffic_vendor_accounts ALTER COLUMN id SET DEFAULT nextval('stats.traffic_vendor_accounts_id_seq'::regclass); +-- +-- Name: id; Type: DEFAULT; Schema: sys; Owner: - +-- + +ALTER TABLE ONLY sys.auth_log_tables ALTER COLUMN id SET DEFAULT nextval('sys.auth_log_tables_id_seq'::regclass); + + -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- @@ -5521,6 +5587,14 @@ ALTER TABLE ONLY billing.invoices ADD CONSTRAINT invoices_pkey PRIMARY KEY (id); +-- +-- Name: ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: cdr; Owner: -; Tablespace: +-- + +ALTER TABLE ONLY cdr.ar_internal_metadata + ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key); + + -- -- Name: cdr_pkey; Type: CONSTRAINT; Schema: cdr; Owner: -; Tablespace: -- @@ -5817,6 +5891,14 @@ ALTER TABLE ONLY sys.amount_round_modes ADD CONSTRAINT amount_round_modes_pkey PRIMARY KEY (id); +-- +-- Name: auth_log_tables_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: +-- + +ALTER TABLE ONLY sys.auth_log_tables + ADD CONSTRAINT auth_log_tables_pkey PRIMARY KEY (id); + + -- -- Name: call_duration_round_modes_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- @@ -5933,6 +6015,13 @@ CREATE UNIQUE INDEX traffic_customer_accounts_account_id_timestamp_idx ON stats. CREATE UNIQUE INDEX traffic_vendor_accounts_account_id_timestamp_idx ON stats.traffic_vendor_accounts USING btree (account_id, "timestamp"); +-- +-- Name: auth_log_i; Type: TRIGGER; Schema: auth_log; Owner: - +-- + +CREATE TRIGGER auth_log_i BEFORE INSERT ON auth_log.auth_log FOR EACH ROW EXECUTE PROCEDURE auth_log.auth_log_i_tgf(); + + -- -- Name: cdr_i; Type: TRIGGER; Schema: cdr; Owner: - -- @@ -6088,7 +6177,7 @@ ALTER TABLE ONLY sys.config -- PostgreSQL database dump complete -- -SET search_path TO cdr, reports, billing, public; +SET search_path TO cdr, reports, billing; INSERT INTO "public"."schema_migrations" (version) VALUES ('20170907204350'), @@ -6104,6 +6193,7 @@ INSERT INTO "public"."schema_migrations" (version) VALUES ('20180427194936'), ('20180607135226'), ('20180611140540'), +('20180619091111'), ('20180621130107'); diff --git a/db/structure.sql b/db/structure.sql index d69c0024b..8df50a2cf 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -2,6 +2,7 @@ SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET client_min_messages = warning; @@ -208,13 +209,11 @@ CREATE EXTENSION IF NOT EXISTS yeti WITH SCHEMA yeti_ext; COMMENT ON EXTENSION yeti IS 'helper functions for YETI project'; -SET search_path = billing, pg_catalog; - -- -- Name: cdr_v1; Type: TYPE; Schema: billing; Owner: - -- -CREATE TYPE cdr_v1 AS ( +CREATE TYPE billing.cdr_v1 AS ( id bigint, customer_id integer, vendor_id integer, @@ -301,7 +300,7 @@ CREATE TYPE cdr_v1 AS ( -- Name: cdr_v2; Type: TYPE; Schema: billing; Owner: - -- -CREATE TYPE cdr_v2 AS ( +CREATE TYPE billing.cdr_v2 AS ( id bigint, customer_id integer, vendor_id integer, @@ -349,13 +348,11 @@ CREATE TYPE cdr_v2 AS ( ); -SET search_path = switch13, pg_catalog; - -- -- Name: callprofile45_ty; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE callprofile45_ty AS ( +CREATE TYPE switch13.callprofile45_ty AS ( ruri character varying, ruri_host character varying, "from" character varying, @@ -529,7 +526,7 @@ CREATE TYPE callprofile45_ty AS ( -- Name: callprofile46_ty; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE callprofile46_ty AS ( +CREATE TYPE switch13.callprofile46_ty AS ( ruri character varying, ruri_host character varying, "from" character varying, @@ -709,7 +706,7 @@ CREATE TYPE callprofile46_ty AS ( -- Name: callprofile47_ty; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE callprofile47_ty AS ( +CREATE TYPE switch13.callprofile47_ty AS ( ruri character varying, ruri_host character varying, "from" character varying, @@ -890,7 +887,7 @@ CREATE TYPE callprofile47_ty AS ( -- Name: callprofile48_ty; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE callprofile48_ty AS ( +CREATE TYPE switch13.callprofile48_ty AS ( ruri character varying, ruri_host character varying, "from" character varying, @@ -1073,7 +1070,7 @@ CREATE TYPE callprofile48_ty AS ( -- Name: callprofile49_ty; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE callprofile49_ty AS ( +CREATE TYPE switch13.callprofile49_ty AS ( ruri character varying, ruri_host character varying, "from" character varying, @@ -1259,7 +1256,7 @@ CREATE TYPE callprofile49_ty AS ( -- Name: callprofile50_ty; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE callprofile50_ty AS ( +CREATE TYPE switch13.callprofile50_ty AS ( ruri character varying, ruri_host character varying, "from" character varying, @@ -1448,7 +1445,7 @@ CREATE TYPE callprofile50_ty AS ( -- Name: callprofile51_ty; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE callprofile51_ty AS ( +CREATE TYPE switch13.callprofile51_ty AS ( ruri character varying, ruri_host character varying, "from" character varying, @@ -1641,7 +1638,7 @@ CREATE TYPE callprofile51_ty AS ( -- Name: callprofile52_ty; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE callprofile52_ty AS ( +CREATE TYPE switch13.callprofile52_ty AS ( ruri character varying, ruri_host character varying, bleg_transport_protocol_id smallint, @@ -1837,7 +1834,7 @@ CREATE TYPE callprofile52_ty AS ( -- Name: callprofile53_ty; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE callprofile53_ty AS ( +CREATE TYPE switch13.callprofile53_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -2033,7 +2030,7 @@ CREATE TYPE callprofile53_ty AS ( -- Name: callprofile54_ty; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE callprofile54_ty AS ( +CREATE TYPE switch13.callprofile54_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -2231,7 +2228,7 @@ CREATE TYPE callprofile54_ty AS ( -- Name: callprofile55_ty; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE callprofile55_ty AS ( +CREATE TYPE switch13.callprofile55_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -2439,19 +2436,17 @@ CREATE TYPE callprofile55_ty AS ( -- Name: lnp_resolve; Type: TYPE; Schema: switch13; Owner: - -- -CREATE TYPE lnp_resolve AS ( +CREATE TYPE switch13.lnp_resolve AS ( lrn text, tag text ); -SET search_path = switch14, pg_catalog; - -- -- Name: callprofile56_ty; Type: TYPE; Schema: switch14; Owner: - -- -CREATE TYPE callprofile56_ty AS ( +CREATE TYPE switch14.callprofile56_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -2664,7 +2659,7 @@ CREATE TYPE callprofile56_ty AS ( -- Name: callprofile57_ty; Type: TYPE; Schema: switch14; Owner: - -- -CREATE TYPE callprofile57_ty AS ( +CREATE TYPE switch14.callprofile57_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -2878,19 +2873,17 @@ CREATE TYPE callprofile57_ty AS ( -- Name: lnp_resolve; Type: TYPE; Schema: switch14; Owner: - -- -CREATE TYPE lnp_resolve AS ( +CREATE TYPE switch14.lnp_resolve AS ( lrn text, tag text ); -SET search_path = switch15, pg_catalog; - -- -- Name: callprofile56_ty; Type: TYPE; Schema: switch15; Owner: - -- -CREATE TYPE callprofile56_ty AS ( +CREATE TYPE switch15.callprofile56_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -3103,7 +3096,7 @@ CREATE TYPE callprofile56_ty AS ( -- Name: callprofile57_ty; Type: TYPE; Schema: switch15; Owner: - -- -CREATE TYPE callprofile57_ty AS ( +CREATE TYPE switch15.callprofile57_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -3317,7 +3310,7 @@ CREATE TYPE callprofile57_ty AS ( -- Name: callprofile58_ty; Type: TYPE; Schema: switch15; Owner: - -- -CREATE TYPE callprofile58_ty AS ( +CREATE TYPE switch15.callprofile58_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -3537,19 +3530,17 @@ CREATE TYPE callprofile58_ty AS ( -- Name: lnp_resolve; Type: TYPE; Schema: switch15; Owner: - -- -CREATE TYPE lnp_resolve AS ( +CREATE TYPE switch15.lnp_resolve AS ( lrn text, tag text ); -SET search_path = switch16, pg_catalog; - -- -- Name: callprofile56_ty; Type: TYPE; Schema: switch16; Owner: - -- -CREATE TYPE callprofile56_ty AS ( +CREATE TYPE switch16.callprofile56_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -3762,7 +3753,7 @@ CREATE TYPE callprofile56_ty AS ( -- Name: callprofile57_ty; Type: TYPE; Schema: switch16; Owner: - -- -CREATE TYPE callprofile57_ty AS ( +CREATE TYPE switch16.callprofile57_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -3976,7 +3967,7 @@ CREATE TYPE callprofile57_ty AS ( -- Name: callprofile58_ty; Type: TYPE; Schema: switch16; Owner: - -- -CREATE TYPE callprofile58_ty AS ( +CREATE TYPE switch16.callprofile58_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -4196,7 +4187,7 @@ CREATE TYPE callprofile58_ty AS ( -- Name: callprofile59_ty; Type: TYPE; Schema: switch16; Owner: - -- -CREATE TYPE callprofile59_ty AS ( +CREATE TYPE switch16.callprofile59_ty AS ( ruri character varying, bleg_transport_protocol_id smallint, "from" character varying, @@ -4418,19 +4409,17 @@ CREATE TYPE callprofile59_ty AS ( -- Name: lnp_resolve; Type: TYPE; Schema: switch16; Owner: - -- -CREATE TYPE lnp_resolve AS ( +CREATE TYPE switch16.lnp_resolve AS ( lrn text, tag text ); -SET search_path = billing, pg_catalog; - -- -- Name: account_change_iu_tgf(); Type: FUNCTION; Schema: billing; Owner: - -- -CREATE FUNCTION account_change_iu_tgf() RETURNS trigger +CREATE FUNCTION billing.account_change_iu_tgf() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -4484,7 +4473,7 @@ SET default_with_oids = false; -- Name: accounts; Type: TABLE; Schema: billing; Owner: -; Tablespace: -- -CREATE TABLE accounts ( +CREATE TABLE billing.accounts ( id integer NOT NULL, contractor_id integer NOT NULL, balance numeric NOT NULL, @@ -4513,10 +4502,10 @@ CREATE TABLE accounts ( -- --- Name: balance_notify(character varying, character varying, accounts); Type: FUNCTION; Schema: billing; Owner: - +-- Name: balance_notify(character varying, character varying, billing.accounts); Type: FUNCTION; Schema: billing; Owner: - -- -CREATE FUNCTION balance_notify(i_type character varying, i_action character varying, i_account accounts) RETURNS void +CREATE FUNCTION billing.balance_notify(i_type character varying, i_action character varying, i_account billing.accounts) RETURNS void LANGUAGE plpgsql AS $$ begin @@ -4530,7 +4519,7 @@ $$; -- Name: bill_account(integer, numeric); Type: FUNCTION; Schema: billing; Owner: - -- -CREATE FUNCTION bill_account(i_account_id integer, i_amount numeric) RETURNS boolean +CREATE FUNCTION billing.bill_account(i_account_id integer, i_amount numeric) RETURNS boolean LANGUAGE plpgsql COST 10 AS $$ @@ -4545,10 +4534,10 @@ $$; -- --- Name: bill_cdr(cdr_v2); Type: FUNCTION; Schema: billing; Owner: - +-- Name: bill_cdr(billing.cdr_v2); Type: FUNCTION; Schema: billing; Owner: - -- -CREATE FUNCTION bill_cdr(i_cdr cdr_v2) RETURNS void +CREATE FUNCTION billing.bill_cdr(i_cdr billing.cdr_v2) RETURNS void LANGUAGE plpgsql SECURITY DEFINER COST 10 AS $$ DECLARE @@ -4574,7 +4563,7 @@ $$; -- Name: bill_cdr_batch(bigint, text, integer); Type: FUNCTION; Schema: billing; Owner: - -- -CREATE FUNCTION bill_cdr_batch(i_batch_id bigint, i_data text, i_data_version integer DEFAULT 2) RETURNS void +CREATE FUNCTION billing.bill_cdr_batch(i_batch_id bigint, i_data text, i_data_version integer DEFAULT 2) RETURNS void LANGUAGE plpgsql SECURITY DEFINER COST 10 AS $$ DECLARE @@ -4627,7 +4616,7 @@ $$; -- Name: clean_cdr_batch(); Type: FUNCTION; Schema: billing; Owner: - -- -CREATE FUNCTION clean_cdr_batch() RETURNS void +CREATE FUNCTION billing.clean_cdr_batch() RETURNS void LANGUAGE plpgsql SECURITY DEFINER COST 10 AS $$ DECLARE @@ -4642,7 +4631,7 @@ $$; -- Name: unbill_cdr(bigint); Type: FUNCTION; Schema: billing; Owner: - -- -CREATE FUNCTION unbill_cdr(i_cdr_id bigint) RETURNS void +CREATE FUNCTION billing.unbill_cdr(i_cdr_id bigint) RETURNS void LANGUAGE plpgsql SECURITY DEFINER COST 10 AS $$ DECLARE @@ -4656,13 +4645,11 @@ END; $$; -SET search_path = class4, pg_catalog; - -- -- Name: cdrs_i_tgf(); Type: FUNCTION; Schema: class4; Owner: - -- -CREATE FUNCTION cdrs_i_tgf() RETURNS trigger +CREATE FUNCTION class4.cdrs_i_tgf() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN IF ( NEW.time_start >= DATE '2013-01-01' AND NEW.time_start < DATE '2013-02-01' ) THEN INSERT INTO class4.cdrs_201301 VALUES (NEW.*); @@ -4690,13 +4677,11 @@ RETURN NULL; END; $$; -SET search_path = data_import, pg_catalog; - -- -- Name: accounts_handler(character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION accounts_handler(i_uf character varying[]) RETURNS void +CREATE FUNCTION data_import.accounts_handler(i_uf character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -4715,7 +4700,7 @@ $$; -- Name: contractors_handler(character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION contractors_handler(i_uf character varying[]) RETURNS void +CREATE FUNCTION data_import.contractors_handler(i_uf character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -4729,7 +4714,7 @@ $$; -- Name: customers_auth_handler(character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION customers_auth_handler(i_uf character varying[]) RETURNS void +CREATE FUNCTION data_import.customers_auth_handler(i_uf character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -4784,7 +4769,7 @@ $$; -- Name: destinations_handler(character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION destinations_handler(i_uf character varying[]) RETURNS void +CREATE FUNCTION data_import.destinations_handler(i_uf character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -4808,7 +4793,7 @@ $$; -- Name: dialpeers_handler(character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION dialpeers_handler(i_uf character varying[]) RETURNS void +CREATE FUNCTION data_import.dialpeers_handler(i_uf character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -4843,7 +4828,7 @@ $$; -- Name: disconnect_policies_handler(character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION disconnect_policies_handler(i_uf character varying[]) RETURNS void +CREATE FUNCTION data_import.disconnect_policies_handler(i_uf character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -4857,7 +4842,7 @@ $$; -- Name: gateway_groups_handler(character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION gateway_groups_handler(i_uf character varying[]) RETURNS void +CREATE FUNCTION data_import.gateway_groups_handler(i_uf character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -4876,7 +4861,7 @@ $$; -- Name: gateways_handler(character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION gateways_handler(i_uf character varying[]) RETURNS void +CREATE FUNCTION data_import.gateways_handler(i_uf character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -4914,7 +4899,7 @@ $$; -- Name: rateplans_handler(character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION rateplans_handler(i_uf character varying[]) RETURNS void +CREATE FUNCTION data_import.rateplans_handler(i_uf character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -4928,7 +4913,7 @@ $$; -- Name: registrations_handler(character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION registrations_handler(i_uf character varying[]) RETURNS void +CREATE FUNCTION data_import.registrations_handler(i_uf character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -4954,7 +4939,7 @@ $$; -- Name: resolve_object_id(character varying, character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION resolve_object_id(i_table_name character varying, i_unique_fields character varying[]) RETURNS void +CREATE FUNCTION data_import.resolve_object_id(i_table_name character varying, i_unique_fields character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -4995,7 +4980,7 @@ $$; -- Name: resolve_object_id(character varying, character varying, character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION resolve_object_id(i_from_table character varying, i_to_table character varying, i_unique_fields character varying[]) RETURNS void +CREATE FUNCTION data_import.resolve_object_id(i_from_table character varying, i_to_table character varying, i_unique_fields character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -5036,7 +5021,7 @@ $$; -- Name: routing_groups_handler(character varying[]); Type: FUNCTION; Schema: data_import; Owner: - -- -CREATE FUNCTION routing_groups_handler(i_uf character varying[]) RETURNS void +CREATE FUNCTION data_import.routing_groups_handler(i_uf character varying[]) RETURNS void LANGUAGE plpgsql COST 6000 AS $$ DECLARE @@ -5051,13 +5036,11 @@ END; $$; -SET search_path = public, pg_catalog; - -- -- Name: rewrite_dst(character varying); Type: FUNCTION; Schema: public; Owner: - -- -CREATE FUNCTION rewrite_dst(i_dst character varying) RETURNS character varying +CREATE FUNCTION public.rewrite_dst(i_dst character varying) RETURNS character varying LANGUAGE sql AS $_$ SELECT CASE @@ -5082,7 +5065,7 @@ $_$; -- Name: rtest(); Type: FUNCTION; Schema: public; Owner: - -- -CREATE FUNCTION rtest() RETURNS SETOF integer +CREATE FUNCTION public.rtest() RETURNS SETOF integer LANGUAGE plpgsql AS $$ declare @@ -5097,13 +5080,11 @@ end $$; -SET search_path = runtime_stats, pg_catalog; - -- -- Name: update_dp(bigint, bigint, boolean, integer); Type: FUNCTION; Schema: runtime_stats; Owner: - -- -CREATE FUNCTION update_dp(i_destination_id bigint, i_dialpeer_id bigint, i_success boolean, i_duration integer) RETURNS void +CREATE FUNCTION runtime_stats.update_dp(i_destination_id bigint, i_dialpeer_id bigint, i_success boolean, i_duration integer) RETURNS void LANGUAGE plpgsql COST 10 AS $$ @@ -5152,7 +5133,7 @@ $$; -- Name: update_gw(integer, integer, boolean, integer); Type: FUNCTION; Schema: runtime_stats; Owner: - -- -CREATE FUNCTION update_gw(i_orig_gw_id integer, i_term_gw_id integer, i_success boolean, i_duration integer) RETURNS void +CREATE FUNCTION runtime_stats.update_gw(i_orig_gw_id integer, i_term_gw_id integer, i_success boolean, i_duration integer) RETURNS void LANGUAGE plpgsql COST 10 AS $$ @@ -5197,13 +5178,11 @@ END; $$; -SET search_path = switch13, pg_catalog; - -- -- Name: cache_lnp_data(smallint, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION cache_lnp_data(i_database_id smallint, i_dst character varying, i_lrn character varying, i_tag character varying, i_data character varying) RETURNS void +CREATE FUNCTION switch13.cache_lnp_data(i_database_id smallint, i_dst character varying, i_lrn character varying, i_tag character varying, i_data character varying) RETURNS void LANGUAGE plpgsql COST 10 AS $$ declare @@ -5226,7 +5205,7 @@ $$; -- Name: check_event(integer); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION check_event(i_event_id integer) RETURNS boolean +CREATE FUNCTION switch13.check_event(i_event_id integer) RETURNS boolean LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5240,7 +5219,7 @@ $$; -- Name: debug(smallint, inet, integer, character varying, character varying, integer, character varying, character varying, character varying, character varying, boolean, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION debug(i_transport_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_src_prefix character varying, i_dst_prefix character varying, i_pop_id integer, i_uri_domain character varying, i_from_domain character varying, i_to_domain character varying, i_x_yeti_auth character varying, i_release_mode boolean DEFAULT false, i_pai character varying DEFAULT NULL::character varying, i_ppi character varying DEFAULT NULL::character varying, i_privacy character varying DEFAULT NULL::character varying, i_rpid character varying DEFAULT NULL::character varying, i_rpid_privacy character varying DEFAULT NULL::character varying) RETURNS SETOF callprofile55_ty +CREATE FUNCTION switch13.debug(i_transport_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_src_prefix character varying, i_dst_prefix character varying, i_pop_id integer, i_uri_domain character varying, i_from_domain character varying, i_to_domain character varying, i_x_yeti_auth character varying, i_release_mode boolean DEFAULT false, i_pai character varying DEFAULT NULL::character varying, i_ppi character varying DEFAULT NULL::character varying, i_privacy character varying DEFAULT NULL::character varying, i_rpid character varying DEFAULT NULL::character varying, i_rpid_privacy character varying DEFAULT NULL::character varying) RETURNS SETOF switch13.callprofile55_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -5321,13 +5300,11 @@ END; $$; -SET search_path = sys, pg_catalog; - -- -- Name: network_prefixes; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE network_prefixes ( +CREATE TABLE sys.network_prefixes ( id integer NOT NULL, prefix character varying NOT NULL, network_id integer NOT NULL, @@ -5335,13 +5312,11 @@ CREATE TABLE network_prefixes ( ); -SET search_path = switch13, pg_catalog; - -- -- Name: detect_network(character varying); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION detect_network(i_dst character varying) RETURNS sys.network_prefixes +CREATE FUNCTION switch13.detect_network(i_dst character varying) RETURNS sys.network_prefixes LANGUAGE plpgsql COST 10 AS $$ declare @@ -5363,7 +5338,7 @@ $$; -- Name: init(integer, integer); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION init(i_node_id integer, i_pop_id integer) RETURNS void +CREATE FUNCTION switch13.init(i_node_id integer, i_pop_id integer) RETURNS void LANGUAGE plpgsql COST 10 AS $$ declare @@ -5384,7 +5359,7 @@ $$; -- Name: lnp_resolve(smallint, character varying); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION lnp_resolve(i_database_id smallint, i_dst character varying) RETURNS character varying +CREATE FUNCTION switch13.lnp_resolve(i_database_id smallint, i_dst character varying) RETURNS character varying LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5397,7 +5372,7 @@ $$; -- Name: lnp_resolve_tagged(smallint, character varying); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION lnp_resolve_tagged(i_database_id smallint, i_dst character varying) RETURNS lnp_resolve +CREATE FUNCTION switch13.lnp_resolve_tagged(i_database_id smallint, i_dst character varying) RETURNS switch13.lnp_resolve LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5410,7 +5385,7 @@ $$; -- Name: load_codecs(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_codecs() RETURNS TABLE(o_id integer, o_codec_group_id integer, o_codec_name character varying, o_priority integer, o_dynamic_payload_id integer, o_format_params character varying) +CREATE FUNCTION switch13.load_codecs() RETURNS TABLE(o_id integer, o_codec_group_id integer, o_codec_name character varying, o_priority integer, o_dynamic_payload_id integer, o_format_params character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5429,25 +5404,21 @@ END; $$; -SET search_path = class4, pg_catalog; - -- -- Name: disconnect_code_namespace; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE disconnect_code_namespace ( +CREATE TABLE class4.disconnect_code_namespace ( id integer NOT NULL, name character varying NOT NULL ); -SET search_path = switch13, pg_catalog; - -- -- Name: load_disconnect_code_namespace(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_disconnect_code_namespace() RETURNS SETOF class4.disconnect_code_namespace +CREATE FUNCTION switch13.load_disconnect_code_namespace() RETURNS SETOF class4.disconnect_code_namespace LANGUAGE plpgsql COST 10 AS $$ @@ -5461,7 +5432,7 @@ $$; -- Name: load_disconnect_code_refuse(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_disconnect_code_refuse() RETURNS TABLE(o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) +CREATE FUNCTION switch13.load_disconnect_code_refuse() RETURNS TABLE(o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5478,7 +5449,7 @@ $$; -- Name: load_disconnect_code_rerouting(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_disconnect_code_rerouting() RETURNS TABLE(received_code integer, stop_rerouting boolean) +CREATE FUNCTION switch13.load_disconnect_code_rerouting() RETURNS TABLE(received_code integer, stop_rerouting boolean) LANGUAGE plpgsql COST 10 AS $$ @@ -5495,7 +5466,7 @@ $$; -- Name: load_disconnect_code_rerouting_overrides(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_disconnect_code_rerouting_overrides() RETURNS TABLE(policy_id integer, received_code integer, stop_rerouting boolean) +CREATE FUNCTION switch13.load_disconnect_code_rerouting_overrides() RETURNS TABLE(policy_id integer, received_code integer, stop_rerouting boolean) LANGUAGE plpgsql COST 10 AS $$ @@ -5514,7 +5485,7 @@ $$; -- Name: load_disconnect_code_rewrite(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_disconnect_code_rewrite() RETURNS TABLE(o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) +CREATE FUNCTION switch13.load_disconnect_code_rewrite() RETURNS TABLE(o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5531,7 +5502,7 @@ $$; -- Name: load_disconnect_code_rewrite_override(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_disconnect_code_rewrite_override() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) +CREATE FUNCTION switch13.load_disconnect_code_rewrite_override() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5550,7 +5521,7 @@ $$; -- Name: load_disconnect_code_rewrite_overrides(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_disconnect_code_rewrite_overrides() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) +CREATE FUNCTION switch13.load_disconnect_code_rewrite_overrides() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5569,7 +5540,7 @@ $$; -- Name: load_interface_in(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_interface_in() RETURNS TABLE(varname character varying, vartype character varying, varformat character varying, varhashkey boolean, varparam character varying) +CREATE FUNCTION switch13.load_interface_in() RETURNS TABLE(varname character varying, vartype character varying, varformat character varying, varhashkey boolean, varparam character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5582,7 +5553,7 @@ $$; -- Name: load_interface_out(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_interface_out() RETURNS TABLE(varname character varying, vartype character varying, forcdr boolean, forradius boolean) +CREATE FUNCTION switch13.load_interface_out() RETURNS TABLE(varname character varying, vartype character varying, forcdr boolean, forradius boolean) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5595,7 +5566,7 @@ $$; -- Name: load_lnp_databases(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_lnp_databases() RETURNS TABLE(o_id smallint, o_name character varying, o_driver_id smallint, o_host character varying, o_port integer, o_thinq_username character varying, o_thinq_token character varying, o_timeout smallint, o_csv_file character varying) +CREATE FUNCTION switch13.load_lnp_databases() RETURNS TABLE(o_id smallint, o_name character varying, o_driver_id smallint, o_host character varying, o_port integer, o_thinq_username character varying, o_thinq_token character varying, o_timeout smallint, o_csv_file character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5609,7 +5580,7 @@ $$; -- Name: load_radius_accounting_profiles(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_radius_accounting_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, timeout smallint, attempts smallint, enable_start_accounting boolean, enable_interim_accounting boolean, enable_stop_accounting boolean, interim_accounting_interval smallint, start_avps json, interim_avps json, stop_avps json) +CREATE FUNCTION switch13.load_radius_accounting_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, timeout smallint, attempts smallint, enable_start_accounting boolean, enable_interim_accounting boolean, enable_stop_accounting boolean, interim_accounting_interval smallint, start_avps json, interim_avps json, stop_avps json) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5639,7 +5610,7 @@ $$; -- Name: load_radius_profiles(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_radius_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, reject_on_error boolean, timeout smallint, attempts smallint, avps json) +CREATE FUNCTION switch13.load_radius_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, reject_on_error boolean, timeout smallint, attempts smallint, avps json) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5656,7 +5627,7 @@ $$; -- Name: load_registrations_out(integer, integer, integer); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_registrations_out(i_pop_id integer, i_node_id integer, i_registration_id integer DEFAULT NULL::integer) RETURNS TABLE(o_id integer, o_transport_protocol_id smallint, o_domain character varying, o_user character varying, o_display_name character varying, o_auth_user character varying, o_auth_password character varying, o_proxy character varying, o_proxy_transport_protocol_id smallint, o_contact character varying, o_expire integer, o_force_expire boolean, o_retry_delay smallint, o_max_attempts smallint) +CREATE FUNCTION switch13.load_registrations_out(i_pop_id integer, i_node_id integer, i_registration_id integer DEFAULT NULL::integer) RETURNS TABLE(o_id integer, o_transport_protocol_id smallint, o_domain character varying, o_user character varying, o_display_name character varying, o_auth_user character varying, o_auth_password character varying, o_proxy character varying, o_proxy_transport_protocol_id smallint, o_contact character varying, o_expire integer, o_force_expire boolean, o_retry_delay smallint, o_max_attempts smallint) LANGUAGE plpgsql COST 10 ROWS 100 AS $$ BEGIN @@ -5691,7 +5662,7 @@ $$; -- Name: resource_type; Type: TABLE; Schema: switch13; Owner: -; Tablespace: -- -CREATE TABLE resource_type ( +CREATE TABLE switch13.resource_type ( id integer NOT NULL, name character varying NOT NULL, reject_code integer, @@ -5704,7 +5675,7 @@ CREATE TABLE resource_type ( -- Name: load_resource_types(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_resource_types() RETURNS SETOF resource_type +CREATE FUNCTION switch13.load_resource_types() RETURNS SETOF switch13.resource_type LANGUAGE plpgsql COST 10 ROWS 10 AS $$ @@ -5718,7 +5689,7 @@ $$; -- Name: load_sensor(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_sensor() RETURNS TABLE(o_id smallint, o_name character varying, o_mode_id integer, o_source_interface character varying, o_target_mac macaddr, o_use_routing boolean, o_target_ip inet, o_target_port integer, o_hep_capture_id integer, o_source_ip inet) +CREATE FUNCTION switch13.load_sensor() RETURNS TABLE(o_id smallint, o_name character varying, o_mode_id integer, o_source_interface character varying, o_target_mac macaddr, o_use_routing boolean, o_target_ip inet, o_target_port integer, o_hep_capture_id integer, o_source_ip inet) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -5742,7 +5713,7 @@ $$; -- Name: load_trusted_headers(integer); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION load_trusted_headers(i_node_id integer) RETURNS TABLE(o_name character varying) +CREATE FUNCTION switch13.load_trusted_headers(i_node_id integer) RETURNS TABLE(o_name character varying) LANGUAGE plpgsql COST 10 ROWS 100 AS $$ BEGIN @@ -5755,7 +5726,7 @@ $$; -- Name: new_profile(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION new_profile() RETURNS callprofile55_ty +CREATE FUNCTION switch13.new_profile() RETURNS switch13.callprofile55_ty LANGUAGE plpgsql COST 10 AS $_$ DECLARE @@ -5900,7 +5871,7 @@ $_$; -- Name: preprocess(character varying, character varying, boolean); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION preprocess(i_namespace character varying, i_funcname character varying, i_comment boolean) RETURNS void +CREATE FUNCTION switch13.preprocess(i_namespace character varying, i_funcname character varying, i_comment boolean) RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -5957,7 +5928,7 @@ $$; -- Name: preprocess_all(); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION preprocess_all() RETURNS void +CREATE FUNCTION switch13.preprocess_all() RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -5974,13 +5945,11 @@ END; $$; -SET search_path = class4, pg_catalog; - -- -- Name: destinations; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE destinations ( +CREATE TABLE class4.destinations ( id bigint NOT NULL, enabled boolean NOT NULL, prefix character varying NOT NULL, @@ -6021,7 +5990,7 @@ CREATE TABLE destinations ( -- Name: dialpeers; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE dialpeers ( +CREATE TABLE class4.dialpeers ( id bigint NOT NULL, enabled boolean NOT NULL, prefix character varying NOT NULL, @@ -6072,7 +6041,7 @@ CREATE TABLE dialpeers ( -- Name: gateways; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE gateways ( +CREATE TABLE class4.gateways ( id integer NOT NULL, host character varying, port integer, @@ -6185,13 +6154,11 @@ CREATE TABLE gateways ( ); -SET search_path = switch13, pg_catalog; - -- --- Name: process_dp(callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - +-- Name: process_dp(switch13.callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION process_dp(i_profile callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile55_ty +CREATE FUNCTION switch13.process_dp(i_profile switch13.callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch13.callprofile55_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -6271,10 +6238,10 @@ $$; -- --- Name: process_dp_debug(callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - +-- Name: process_dp_debug(switch13.callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION process_dp_debug(i_profile callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile55_ty +CREATE FUNCTION switch13.process_dp_debug(i_profile switch13.callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch13.callprofile55_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -6341,10 +6308,10 @@ $$; -- --- Name: process_dp_release(callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - +-- Name: process_dp_release(switch13.callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION process_dp_release(i_profile callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile55_ty +CREATE FUNCTION switch13.process_dp_release(i_profile switch13.callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch13.callprofile55_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -6395,10 +6362,10 @@ $$; -- --- Name: process_gw(callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - +-- Name: process_gw(switch13.callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION process_gw(i_profile callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile55_ty +CREATE FUNCTION switch13.process_gw(i_profile switch13.callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch13.callprofile55_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -6777,10 +6744,10 @@ $_$; -- --- Name: process_gw_debug(callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - +-- Name: process_gw_debug(switch13.callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION process_gw_debug(i_profile callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile55_ty +CREATE FUNCTION switch13.process_gw_debug(i_profile switch13.callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch13.callprofile55_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -7159,10 +7126,10 @@ $_$; -- --- Name: process_gw_release(callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - +-- Name: process_gw_release(switch13.callprofile55_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION process_gw_release(i_profile callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile55_ty +CREATE FUNCTION switch13.process_gw_release(i_profile switch13.callprofile55_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch13.callprofile55_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -7521,7 +7488,7 @@ $_$; -- Name: recompile_interface(integer); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION recompile_interface(i_version integer) RETURNS void +CREATE FUNCTION switch13.recompile_interface(i_version integer) RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -7542,7 +7509,7 @@ $$; -- Name: route(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION route(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile55_ty +CREATE FUNCTION switch13.route(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch13.callprofile55_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -8418,7 +8385,7 @@ CREATE FUNCTION route(i_node_id integer, i_pop_id integer, i_protocol_id smallin -- Name: route_debug(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION route_debug(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile55_ty +CREATE FUNCTION switch13.route_debug(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch13.callprofile55_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -9294,7 +9261,7 @@ CREATE FUNCTION route_debug(i_node_id integer, i_pop_id integer, i_protocol_id s -- Name: route_release(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION route_release(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile55_ty +CREATE FUNCTION switch13.route_release(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch13.callprofile55_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -10070,7 +10037,7 @@ CREATE FUNCTION route_release(i_node_id integer, i_pop_id integer, i_protocol_id -- Name: tracelog(class4.destinations); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION tracelog(i_in class4.destinations) RETURNS void +CREATE FUNCTION switch13.tracelog(i_in class4.destinations) RETURNS void LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10083,7 +10050,7 @@ $$; -- Name: tracelog(class4.dialpeers); Type: FUNCTION; Schema: switch13; Owner: - -- -CREATE FUNCTION tracelog(i_in class4.dialpeers) RETURNS void +CREATE FUNCTION switch13.tracelog(i_in class4.dialpeers) RETURNS void LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10092,13 +10059,11 @@ END; $$; -SET search_path = switch14, pg_catalog; - -- -- Name: cache_lnp_data(smallint, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION cache_lnp_data(i_database_id smallint, i_dst character varying, i_lrn character varying, i_tag character varying, i_data character varying) RETURNS void +CREATE FUNCTION switch14.cache_lnp_data(i_database_id smallint, i_dst character varying, i_lrn character varying, i_tag character varying, i_data character varying) RETURNS void LANGUAGE plpgsql COST 10 AS $$ declare @@ -10121,7 +10086,7 @@ $$; -- Name: check_event(integer); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION check_event(i_event_id integer) RETURNS boolean +CREATE FUNCTION switch14.check_event(i_event_id integer) RETURNS boolean LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10135,7 +10100,7 @@ $$; -- Name: debug(smallint, inet, integer, character varying, character varying, integer, character varying, character varying, character varying, character varying, boolean, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION debug(i_transport_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_src_prefix character varying, i_dst_prefix character varying, i_pop_id integer, i_uri_domain character varying, i_from_domain character varying, i_to_domain character varying, i_x_yeti_auth character varying, i_release_mode boolean DEFAULT false, i_pai character varying DEFAULT NULL::character varying, i_ppi character varying DEFAULT NULL::character varying, i_privacy character varying DEFAULT NULL::character varying, i_rpid character varying DEFAULT NULL::character varying, i_rpid_privacy character varying DEFAULT NULL::character varying) RETURNS SETOF callprofile57_ty +CREATE FUNCTION switch14.debug(i_transport_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_src_prefix character varying, i_dst_prefix character varying, i_pop_id integer, i_uri_domain character varying, i_from_domain character varying, i_to_domain character varying, i_x_yeti_auth character varying, i_release_mode boolean DEFAULT false, i_pai character varying DEFAULT NULL::character varying, i_ppi character varying DEFAULT NULL::character varying, i_privacy character varying DEFAULT NULL::character varying, i_rpid character varying DEFAULT NULL::character varying, i_rpid_privacy character varying DEFAULT NULL::character varying) RETURNS SETOF switch14.callprofile57_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -10222,7 +10187,7 @@ $$; -- Name: detect_network(character varying); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION detect_network(i_dst character varying) RETURNS sys.network_prefixes +CREATE FUNCTION switch14.detect_network(i_dst character varying) RETURNS sys.network_prefixes LANGUAGE plpgsql COST 10 AS $$ declare @@ -10244,7 +10209,7 @@ $$; -- Name: init(integer, integer); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION init(i_node_id integer, i_pop_id integer) RETURNS void +CREATE FUNCTION switch14.init(i_node_id integer, i_pop_id integer) RETURNS void LANGUAGE plpgsql COST 10 AS $$ declare @@ -10265,7 +10230,7 @@ $$; -- Name: lnp_resolve(smallint, character varying); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION lnp_resolve(i_database_id smallint, i_dst character varying) RETURNS character varying +CREATE FUNCTION switch14.lnp_resolve(i_database_id smallint, i_dst character varying) RETURNS character varying LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10278,7 +10243,7 @@ $$; -- Name: lnp_resolve_tagged(smallint, character varying); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION lnp_resolve_tagged(i_database_id smallint, i_dst character varying) RETURNS lnp_resolve +CREATE FUNCTION switch14.lnp_resolve_tagged(i_database_id smallint, i_dst character varying) RETURNS switch14.lnp_resolve LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10291,7 +10256,7 @@ $$; -- Name: load_codecs(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_codecs() RETURNS TABLE(o_id integer, o_codec_group_id integer, o_codec_name character varying, o_priority integer, o_dynamic_payload_id integer, o_format_params character varying) +CREATE FUNCTION switch14.load_codecs() RETURNS TABLE(o_id integer, o_codec_group_id integer, o_codec_name character varying, o_priority integer, o_dynamic_payload_id integer, o_format_params character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10314,7 +10279,7 @@ $$; -- Name: load_disconnect_code_namespace(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_disconnect_code_namespace() RETURNS SETOF class4.disconnect_code_namespace +CREATE FUNCTION switch14.load_disconnect_code_namespace() RETURNS SETOF class4.disconnect_code_namespace LANGUAGE plpgsql COST 10 AS $$ @@ -10328,7 +10293,7 @@ $$; -- Name: load_disconnect_code_refuse(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_disconnect_code_refuse() RETURNS TABLE(o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) +CREATE FUNCTION switch14.load_disconnect_code_refuse() RETURNS TABLE(o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10345,7 +10310,7 @@ $$; -- Name: load_disconnect_code_rerouting(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_disconnect_code_rerouting() RETURNS TABLE(received_code integer, stop_rerouting boolean) +CREATE FUNCTION switch14.load_disconnect_code_rerouting() RETURNS TABLE(received_code integer, stop_rerouting boolean) LANGUAGE plpgsql COST 10 AS $$ @@ -10362,7 +10327,7 @@ $$; -- Name: load_disconnect_code_rerouting_overrides(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_disconnect_code_rerouting_overrides() RETURNS TABLE(policy_id integer, received_code integer, stop_rerouting boolean) +CREATE FUNCTION switch14.load_disconnect_code_rerouting_overrides() RETURNS TABLE(policy_id integer, received_code integer, stop_rerouting boolean) LANGUAGE plpgsql COST 10 AS $$ @@ -10381,7 +10346,7 @@ $$; -- Name: load_disconnect_code_rewrite(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_disconnect_code_rewrite() RETURNS TABLE(o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) +CREATE FUNCTION switch14.load_disconnect_code_rewrite() RETURNS TABLE(o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10398,7 +10363,7 @@ $$; -- Name: load_disconnect_code_rewrite_override(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_disconnect_code_rewrite_override() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) +CREATE FUNCTION switch14.load_disconnect_code_rewrite_override() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10417,7 +10382,7 @@ $$; -- Name: load_disconnect_code_rewrite_overrides(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_disconnect_code_rewrite_overrides() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) +CREATE FUNCTION switch14.load_disconnect_code_rewrite_overrides() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10436,7 +10401,7 @@ $$; -- Name: load_incoming_auth(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_incoming_auth() RETURNS TABLE(id integer, username character varying, password character varying) +CREATE FUNCTION switch14.load_incoming_auth() RETURNS TABLE(id integer, username character varying, password character varying) LANGUAGE plpgsql COST 10 ROWS 10 AS $$ BEGIN @@ -10449,7 +10414,7 @@ $$; -- Name: load_interface_in(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_interface_in() RETURNS TABLE(varname character varying, vartype character varying, varformat character varying, varhashkey boolean, varparam character varying) +CREATE FUNCTION switch14.load_interface_in() RETURNS TABLE(varname character varying, vartype character varying, varformat character varying, varhashkey boolean, varparam character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10462,7 +10427,7 @@ $$; -- Name: load_interface_out(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_interface_out() RETURNS TABLE(varname character varying, vartype character varying, forcdr boolean, forradius boolean) +CREATE FUNCTION switch14.load_interface_out() RETURNS TABLE(varname character varying, vartype character varying, forcdr boolean, forradius boolean) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10475,7 +10440,7 @@ $$; -- Name: load_lnp_databases(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_lnp_databases() RETURNS TABLE(o_id smallint, o_name character varying, o_driver_id smallint, o_host character varying, o_port integer, o_thinq_username character varying, o_thinq_token character varying, o_timeout smallint, o_csv_file character varying) +CREATE FUNCTION switch14.load_lnp_databases() RETURNS TABLE(o_id smallint, o_name character varying, o_driver_id smallint, o_host character varying, o_port integer, o_thinq_username character varying, o_thinq_token character varying, o_timeout smallint, o_csv_file character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10489,7 +10454,7 @@ $$; -- Name: load_radius_accounting_profiles(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_radius_accounting_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, timeout smallint, attempts smallint, enable_start_accounting boolean, enable_interim_accounting boolean, enable_stop_accounting boolean, interim_accounting_interval smallint, start_avps json, interim_avps json, stop_avps json) +CREATE FUNCTION switch14.load_radius_accounting_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, timeout smallint, attempts smallint, enable_start_accounting boolean, enable_interim_accounting boolean, enable_stop_accounting boolean, interim_accounting_interval smallint, start_avps json, interim_avps json, stop_avps json) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10519,7 +10484,7 @@ $$; -- Name: load_radius_profiles(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_radius_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, reject_on_error boolean, timeout smallint, attempts smallint, avps json) +CREATE FUNCTION switch14.load_radius_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, reject_on_error boolean, timeout smallint, attempts smallint, avps json) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10536,7 +10501,7 @@ $$; -- Name: load_registrations_out(integer, integer, integer); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_registrations_out(i_pop_id integer, i_node_id integer, i_registration_id integer DEFAULT NULL::integer) RETURNS TABLE(o_id integer, o_transport_protocol_id smallint, o_domain character varying, o_user character varying, o_display_name character varying, o_auth_user character varying, o_auth_password character varying, o_proxy character varying, o_proxy_transport_protocol_id smallint, o_contact character varying, o_expire integer, o_force_expire boolean, o_retry_delay smallint, o_max_attempts smallint) +CREATE FUNCTION switch14.load_registrations_out(i_pop_id integer, i_node_id integer, i_registration_id integer DEFAULT NULL::integer) RETURNS TABLE(o_id integer, o_transport_protocol_id smallint, o_domain character varying, o_user character varying, o_display_name character varying, o_auth_user character varying, o_auth_password character varying, o_proxy character varying, o_proxy_transport_protocol_id smallint, o_contact character varying, o_expire integer, o_force_expire boolean, o_retry_delay smallint, o_max_attempts smallint) LANGUAGE plpgsql COST 10 ROWS 100 AS $$ BEGIN @@ -10571,7 +10536,7 @@ $$; -- Name: resource_type; Type: TABLE; Schema: switch14; Owner: -; Tablespace: -- -CREATE TABLE resource_type ( +CREATE TABLE switch14.resource_type ( id integer NOT NULL, name character varying NOT NULL, reject_code integer, @@ -10584,7 +10549,7 @@ CREATE TABLE resource_type ( -- Name: load_resource_types(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_resource_types() RETURNS SETOF resource_type +CREATE FUNCTION switch14.load_resource_types() RETURNS SETOF switch14.resource_type LANGUAGE plpgsql COST 10 ROWS 10 AS $$ @@ -10598,7 +10563,7 @@ $$; -- Name: load_sensor(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_sensor() RETURNS TABLE(o_id smallint, o_name character varying, o_mode_id integer, o_source_interface character varying, o_target_mac macaddr, o_use_routing boolean, o_target_ip inet, o_target_port integer, o_hep_capture_id integer, o_source_ip inet) +CREATE FUNCTION switch14.load_sensor() RETURNS TABLE(o_id smallint, o_name character varying, o_mode_id integer, o_source_interface character varying, o_target_mac macaddr, o_use_routing boolean, o_target_ip inet, o_target_port integer, o_hep_capture_id integer, o_source_ip inet) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -10622,7 +10587,7 @@ $$; -- Name: load_trusted_headers(integer); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION load_trusted_headers(i_node_id integer) RETURNS TABLE(o_name character varying) +CREATE FUNCTION switch14.load_trusted_headers(i_node_id integer) RETURNS TABLE(o_name character varying) LANGUAGE plpgsql COST 10 ROWS 100 AS $$ BEGIN @@ -10635,7 +10600,7 @@ $$; -- Name: new_profile(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION new_profile() RETURNS callprofile56_ty +CREATE FUNCTION switch14.new_profile() RETURNS switch14.callprofile56_ty LANGUAGE plpgsql COST 10 AS $_$ DECLARE @@ -10780,7 +10745,7 @@ $_$; -- Name: preprocess(character varying, character varying, boolean); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION preprocess(i_namespace character varying, i_funcname character varying, i_comment boolean) RETURNS void +CREATE FUNCTION switch14.preprocess(i_namespace character varying, i_funcname character varying, i_comment boolean) RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -10837,7 +10802,7 @@ $$; -- Name: preprocess_all(); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION preprocess_all() RETURNS void +CREATE FUNCTION switch14.preprocess_all() RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -10855,10 +10820,10 @@ $$; -- --- Name: process_dp(callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - +-- Name: process_dp(switch14.callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION process_dp(i_profile callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile57_ty +CREATE FUNCTION switch14.process_dp(i_profile switch14.callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch14.callprofile57_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -10938,10 +10903,10 @@ $$; -- --- Name: process_dp_debug(callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - +-- Name: process_dp_debug(switch14.callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION process_dp_debug(i_profile callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile57_ty +CREATE FUNCTION switch14.process_dp_debug(i_profile switch14.callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch14.callprofile57_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -11008,10 +10973,10 @@ $$; -- --- Name: process_dp_release(callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - +-- Name: process_dp_release(switch14.callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION process_dp_release(i_profile callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile57_ty +CREATE FUNCTION switch14.process_dp_release(i_profile switch14.callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch14.callprofile57_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -11062,10 +11027,10 @@ $$; -- --- Name: process_gw(callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - +-- Name: process_gw(switch14.callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION process_gw(i_profile callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile57_ty +CREATE FUNCTION switch14.process_gw(i_profile switch14.callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch14.callprofile57_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -11447,10 +11412,10 @@ $_$; -- --- Name: process_gw_debug(callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - +-- Name: process_gw_debug(switch14.callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION process_gw_debug(i_profile callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile57_ty +CREATE FUNCTION switch14.process_gw_debug(i_profile switch14.callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch14.callprofile57_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -11832,10 +11797,10 @@ $_$; -- --- Name: process_gw_release(callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - +-- Name: process_gw_release(switch14.callprofile57_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION process_gw_release(i_profile callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile57_ty +CREATE FUNCTION switch14.process_gw_release(i_profile switch14.callprofile57_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch14.callprofile57_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -12197,7 +12162,7 @@ $_$; -- Name: recompile_interface(integer); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION recompile_interface(i_version integer) RETURNS void +CREATE FUNCTION switch14.recompile_interface(i_version integer) RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -12218,7 +12183,7 @@ $$; -- Name: route(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION route(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile57_ty +CREATE FUNCTION switch14.route(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch14.callprofile57_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -13141,7 +13106,7 @@ CREATE FUNCTION route(i_node_id integer, i_pop_id integer, i_protocol_id smallin -- Name: route_debug(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION route_debug(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile57_ty +CREATE FUNCTION switch14.route_debug(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch14.callprofile57_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -14064,7 +14029,7 @@ CREATE FUNCTION route_debug(i_node_id integer, i_pop_id integer, i_protocol_id s -- Name: route_release(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION route_release(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile57_ty +CREATE FUNCTION switch14.route_release(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch14.callprofile57_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -14884,7 +14849,7 @@ CREATE FUNCTION route_release(i_node_id integer, i_pop_id integer, i_protocol_id -- Name: tracelog(class4.destinations); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION tracelog(i_in class4.destinations) RETURNS void +CREATE FUNCTION switch14.tracelog(i_in class4.destinations) RETURNS void LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -14897,7 +14862,7 @@ $$; -- Name: tracelog(class4.dialpeers); Type: FUNCTION; Schema: switch14; Owner: - -- -CREATE FUNCTION tracelog(i_in class4.dialpeers) RETURNS void +CREATE FUNCTION switch14.tracelog(i_in class4.dialpeers) RETURNS void LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -14906,13 +14871,11 @@ END; $$; -SET search_path = switch15, pg_catalog; - -- -- Name: cache_lnp_data(smallint, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION cache_lnp_data(i_database_id smallint, i_dst character varying, i_lrn character varying, i_tag character varying, i_data character varying) RETURNS void +CREATE FUNCTION switch15.cache_lnp_data(i_database_id smallint, i_dst character varying, i_lrn character varying, i_tag character varying, i_data character varying) RETURNS void LANGUAGE plpgsql COST 10 AS $$ declare @@ -14935,7 +14898,7 @@ $$; -- Name: check_event(integer); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION check_event(i_event_id integer) RETURNS boolean +CREATE FUNCTION switch15.check_event(i_event_id integer) RETURNS boolean LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -14949,7 +14912,7 @@ $$; -- Name: debug(smallint, inet, integer, character varying, character varying, integer, character varying, character varying, character varying, character varying, boolean, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION debug(i_transport_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_src_prefix character varying, i_dst_prefix character varying, i_pop_id integer, i_uri_domain character varying, i_from_domain character varying, i_to_domain character varying, i_x_yeti_auth character varying, i_release_mode boolean DEFAULT false, i_pai character varying DEFAULT NULL::character varying, i_ppi character varying DEFAULT NULL::character varying, i_privacy character varying DEFAULT NULL::character varying, i_rpid character varying DEFAULT NULL::character varying, i_rpid_privacy character varying DEFAULT NULL::character varying) RETURNS SETOF callprofile58_ty +CREATE FUNCTION switch15.debug(i_transport_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_src_prefix character varying, i_dst_prefix character varying, i_pop_id integer, i_uri_domain character varying, i_from_domain character varying, i_to_domain character varying, i_x_yeti_auth character varying, i_release_mode boolean DEFAULT false, i_pai character varying DEFAULT NULL::character varying, i_ppi character varying DEFAULT NULL::character varying, i_privacy character varying DEFAULT NULL::character varying, i_rpid character varying DEFAULT NULL::character varying, i_rpid_privacy character varying DEFAULT NULL::character varying) RETURNS SETOF switch15.callprofile58_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -15036,7 +14999,7 @@ $$; -- Name: detect_network(character varying); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION detect_network(i_dst character varying) RETURNS sys.network_prefixes +CREATE FUNCTION switch15.detect_network(i_dst character varying) RETURNS sys.network_prefixes LANGUAGE plpgsql COST 10 AS $$ declare @@ -15058,7 +15021,7 @@ $$; -- Name: init(integer, integer); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION init(i_node_id integer, i_pop_id integer) RETURNS void +CREATE FUNCTION switch15.init(i_node_id integer, i_pop_id integer) RETURNS void LANGUAGE plpgsql COST 10 AS $$ declare @@ -15079,7 +15042,7 @@ $$; -- Name: lnp_resolve(smallint, character varying); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION lnp_resolve(i_database_id smallint, i_dst character varying) RETURNS character varying +CREATE FUNCTION switch15.lnp_resolve(i_database_id smallint, i_dst character varying) RETURNS character varying LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15092,7 +15055,7 @@ $$; -- Name: lnp_resolve_tagged(smallint, character varying); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION lnp_resolve_tagged(i_database_id smallint, i_dst character varying) RETURNS lnp_resolve +CREATE FUNCTION switch15.lnp_resolve_tagged(i_database_id smallint, i_dst character varying) RETURNS switch15.lnp_resolve LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15105,7 +15068,7 @@ $$; -- Name: load_codecs(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_codecs() RETURNS TABLE(o_id integer, o_codec_group_id integer, o_codec_name character varying, o_priority integer, o_dynamic_payload_id integer, o_format_params character varying) +CREATE FUNCTION switch15.load_codecs() RETURNS TABLE(o_id integer, o_codec_group_id integer, o_codec_name character varying, o_priority integer, o_dynamic_payload_id integer, o_format_params character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15128,7 +15091,7 @@ $$; -- Name: load_disconnect_code_namespace(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_disconnect_code_namespace() RETURNS SETOF class4.disconnect_code_namespace +CREATE FUNCTION switch15.load_disconnect_code_namespace() RETURNS SETOF class4.disconnect_code_namespace LANGUAGE plpgsql COST 10 AS $$ @@ -15142,7 +15105,7 @@ $$; -- Name: load_disconnect_code_refuse(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_disconnect_code_refuse() RETURNS TABLE(o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) +CREATE FUNCTION switch15.load_disconnect_code_refuse() RETURNS TABLE(o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15159,7 +15122,7 @@ $$; -- Name: load_disconnect_code_refuse_overrides(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_disconnect_code_refuse_overrides() RETURNS TABLE(o_policy_id integer, o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) +CREATE FUNCTION switch15.load_disconnect_code_refuse_overrides() RETURNS TABLE(o_policy_id integer, o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15186,7 +15149,7 @@ $$; -- Name: load_disconnect_code_rerouting(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_disconnect_code_rerouting() RETURNS TABLE(received_code integer, stop_rerouting boolean) +CREATE FUNCTION switch15.load_disconnect_code_rerouting() RETURNS TABLE(received_code integer, stop_rerouting boolean) LANGUAGE plpgsql COST 10 AS $$ @@ -15203,7 +15166,7 @@ $$; -- Name: load_disconnect_code_rerouting_overrides(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_disconnect_code_rerouting_overrides() RETURNS TABLE(policy_id integer, received_code integer, stop_rerouting boolean) +CREATE FUNCTION switch15.load_disconnect_code_rerouting_overrides() RETURNS TABLE(policy_id integer, received_code integer, stop_rerouting boolean) LANGUAGE plpgsql COST 10 AS $$ @@ -15222,7 +15185,7 @@ $$; -- Name: load_disconnect_code_rewrite(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_disconnect_code_rewrite() RETURNS TABLE(o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) +CREATE FUNCTION switch15.load_disconnect_code_rewrite() RETURNS TABLE(o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15239,7 +15202,7 @@ $$; -- Name: load_disconnect_code_rewrite_overrides(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_disconnect_code_rewrite_overrides() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) +CREATE FUNCTION switch15.load_disconnect_code_rewrite_overrides() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15258,7 +15221,7 @@ $$; -- Name: load_incoming_auth(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_incoming_auth() RETURNS TABLE(id integer, username character varying, password character varying) +CREATE FUNCTION switch15.load_incoming_auth() RETURNS TABLE(id integer, username character varying, password character varying) LANGUAGE plpgsql COST 10 ROWS 10 AS $$ BEGIN @@ -15271,7 +15234,7 @@ $$; -- Name: load_interface_in(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_interface_in() RETURNS TABLE(varname character varying, vartype character varying, varformat character varying, varhashkey boolean, varparam character varying) +CREATE FUNCTION switch15.load_interface_in() RETURNS TABLE(varname character varying, vartype character varying, varformat character varying, varhashkey boolean, varparam character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15284,7 +15247,7 @@ $$; -- Name: load_interface_out(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_interface_out() RETURNS TABLE(varname character varying, vartype character varying, forcdr boolean, forradius boolean) +CREATE FUNCTION switch15.load_interface_out() RETURNS TABLE(varname character varying, vartype character varying, forcdr boolean, forradius boolean) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15297,7 +15260,7 @@ $$; -- Name: load_lnp_databases(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_lnp_databases() RETURNS TABLE(o_id smallint, o_name character varying, o_driver_id smallint, o_host character varying, o_port integer, o_thinq_username character varying, o_thinq_token character varying, o_timeout smallint, o_csv_file character varying) +CREATE FUNCTION switch15.load_lnp_databases() RETURNS TABLE(o_id smallint, o_name character varying, o_driver_id smallint, o_host character varying, o_port integer, o_thinq_username character varying, o_thinq_token character varying, o_timeout smallint, o_csv_file character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15311,7 +15274,7 @@ $$; -- Name: load_radius_accounting_profiles(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_radius_accounting_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, timeout smallint, attempts smallint, enable_start_accounting boolean, enable_interim_accounting boolean, enable_stop_accounting boolean, interim_accounting_interval smallint, start_avps json, interim_avps json, stop_avps json) +CREATE FUNCTION switch15.load_radius_accounting_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, timeout smallint, attempts smallint, enable_start_accounting boolean, enable_interim_accounting boolean, enable_stop_accounting boolean, interim_accounting_interval smallint, start_avps json, interim_avps json, stop_avps json) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15341,7 +15304,7 @@ $$; -- Name: load_radius_profiles(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_radius_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, reject_on_error boolean, timeout smallint, attempts smallint, avps json) +CREATE FUNCTION switch15.load_radius_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, reject_on_error boolean, timeout smallint, attempts smallint, avps json) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15358,7 +15321,7 @@ $$; -- Name: load_registrations_out(integer, integer, integer); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_registrations_out(i_pop_id integer, i_node_id integer, i_registration_id integer DEFAULT NULL::integer) RETURNS TABLE(o_id integer, o_transport_protocol_id smallint, o_domain character varying, o_user character varying, o_display_name character varying, o_auth_user character varying, o_auth_password character varying, o_proxy character varying, o_proxy_transport_protocol_id smallint, o_contact character varying, o_expire integer, o_force_expire boolean, o_retry_delay smallint, o_max_attempts smallint) +CREATE FUNCTION switch15.load_registrations_out(i_pop_id integer, i_node_id integer, i_registration_id integer DEFAULT NULL::integer) RETURNS TABLE(o_id integer, o_transport_protocol_id smallint, o_domain character varying, o_user character varying, o_display_name character varying, o_auth_user character varying, o_auth_password character varying, o_proxy character varying, o_proxy_transport_protocol_id smallint, o_contact character varying, o_expire integer, o_force_expire boolean, o_retry_delay smallint, o_max_attempts smallint) LANGUAGE plpgsql COST 10 ROWS 100 AS $$ BEGIN @@ -15393,7 +15356,7 @@ $$; -- Name: resource_type; Type: TABLE; Schema: switch15; Owner: -; Tablespace: -- -CREATE TABLE resource_type ( +CREATE TABLE switch15.resource_type ( id integer NOT NULL, name character varying NOT NULL, internal_code_id integer NOT NULL, @@ -15405,7 +15368,7 @@ CREATE TABLE resource_type ( -- Name: load_resource_types(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_resource_types() RETURNS SETOF resource_type +CREATE FUNCTION switch15.load_resource_types() RETURNS SETOF switch15.resource_type LANGUAGE plpgsql COST 10 ROWS 10 AS $$ @@ -15419,7 +15382,7 @@ $$; -- Name: load_sensor(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_sensor() RETURNS TABLE(o_id smallint, o_name character varying, o_mode_id integer, o_source_interface character varying, o_target_mac macaddr, o_use_routing boolean, o_target_ip inet, o_target_port integer, o_hep_capture_id integer, o_source_ip inet) +CREATE FUNCTION switch15.load_sensor() RETURNS TABLE(o_id smallint, o_name character varying, o_mode_id integer, o_source_interface character varying, o_target_mac macaddr, o_use_routing boolean, o_target_ip inet, o_target_port integer, o_hep_capture_id integer, o_source_ip inet) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -15443,7 +15406,7 @@ $$; -- Name: load_trusted_headers(integer); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION load_trusted_headers(i_node_id integer) RETURNS TABLE(o_name character varying) +CREATE FUNCTION switch15.load_trusted_headers(i_node_id integer) RETURNS TABLE(o_name character varying) LANGUAGE plpgsql COST 10 ROWS 100 AS $$ BEGIN @@ -15456,7 +15419,7 @@ $$; -- Name: new_profile(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION new_profile() RETURNS callprofile58_ty +CREATE FUNCTION switch15.new_profile() RETURNS switch15.callprofile58_ty LANGUAGE plpgsql COST 10 AS $_$ DECLARE @@ -15571,7 +15534,7 @@ $_$; -- Name: preprocess(character varying, character varying, boolean); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION preprocess(i_namespace character varying, i_funcname character varying, i_comment boolean) RETURNS void +CREATE FUNCTION switch15.preprocess(i_namespace character varying, i_funcname character varying, i_comment boolean) RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -15628,7 +15591,7 @@ $$; -- Name: preprocess_all(); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION preprocess_all() RETURNS void +CREATE FUNCTION switch15.preprocess_all() RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -15646,10 +15609,10 @@ $$; -- --- Name: process_dp(callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - +-- Name: process_dp(switch15.callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION process_dp(i_profile callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile58_ty +CREATE FUNCTION switch15.process_dp(i_profile switch15.callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch15.callprofile58_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -15729,10 +15692,10 @@ $$; -- --- Name: process_dp_debug(callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - +-- Name: process_dp_debug(switch15.callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION process_dp_debug(i_profile callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile58_ty +CREATE FUNCTION switch15.process_dp_debug(i_profile switch15.callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch15.callprofile58_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -15799,10 +15762,10 @@ $$; -- --- Name: process_dp_release(callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - +-- Name: process_dp_release(switch15.callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION process_dp_release(i_profile callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile58_ty +CREATE FUNCTION switch15.process_dp_release(i_profile switch15.callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch15.callprofile58_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -15853,10 +15816,10 @@ $$; -- --- Name: process_gw(callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - +-- Name: process_gw(switch15.callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION process_gw(i_profile callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile58_ty +CREATE FUNCTION switch15.process_gw(i_profile switch15.callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch15.callprofile58_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -16238,10 +16201,10 @@ $_$; -- --- Name: process_gw_debug(callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - +-- Name: process_gw_debug(switch15.callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION process_gw_debug(i_profile callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile58_ty +CREATE FUNCTION switch15.process_gw_debug(i_profile switch15.callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch15.callprofile58_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -16623,10 +16586,10 @@ $_$; -- --- Name: process_gw_release(callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - +-- Name: process_gw_release(switch15.callprofile58_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION process_gw_release(i_profile callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile58_ty +CREATE FUNCTION switch15.process_gw_release(i_profile switch15.callprofile58_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch15.callprofile58_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -16988,7 +16951,7 @@ $_$; -- Name: recompile_interface(integer); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION recompile_interface(i_version integer) RETURNS void +CREATE FUNCTION switch15.recompile_interface(i_version integer) RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -17009,7 +16972,7 @@ $$; -- Name: route(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION route(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile58_ty +CREATE FUNCTION switch15.route(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch15.callprofile58_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -17996,7 +17959,7 @@ CREATE FUNCTION route(i_node_id integer, i_pop_id integer, i_protocol_id smallin -- Name: route_debug(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION route_debug(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile58_ty +CREATE FUNCTION switch15.route_debug(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch15.callprofile58_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -18983,7 +18946,7 @@ CREATE FUNCTION route_debug(i_node_id integer, i_pop_id integer, i_protocol_id s -- Name: route_release(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION route_release(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile58_ty +CREATE FUNCTION switch15.route_release(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch15.callprofile58_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -19858,7 +19821,7 @@ CREATE FUNCTION route_release(i_node_id integer, i_pop_id integer, i_protocol_id -- Name: tracelog(class4.destinations); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION tracelog(i_in class4.destinations) RETURNS void +CREATE FUNCTION switch15.tracelog(i_in class4.destinations) RETURNS void LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -19871,7 +19834,7 @@ $$; -- Name: tracelog(class4.dialpeers); Type: FUNCTION; Schema: switch15; Owner: - -- -CREATE FUNCTION tracelog(i_in class4.dialpeers) RETURNS void +CREATE FUNCTION switch15.tracelog(i_in class4.dialpeers) RETURNS void LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -19880,13 +19843,11 @@ END; $$; -SET search_path = switch16, pg_catalog; - -- -- Name: cache_lnp_data(smallint, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION cache_lnp_data(i_database_id smallint, i_dst character varying, i_lrn character varying, i_tag character varying, i_data character varying) RETURNS void +CREATE FUNCTION switch16.cache_lnp_data(i_database_id smallint, i_dst character varying, i_lrn character varying, i_tag character varying, i_data character varying) RETURNS void LANGUAGE plpgsql COST 10 AS $$ declare @@ -19909,7 +19870,7 @@ $$; -- Name: check_event(integer); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION check_event(i_event_id integer) RETURNS boolean +CREATE FUNCTION switch16.check_event(i_event_id integer) RETURNS boolean LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -19923,7 +19884,7 @@ $$; -- Name: debug(smallint, inet, integer, character varying, character varying, integer, character varying, character varying, character varying, character varying, boolean, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION debug(i_transport_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_src_prefix character varying, i_dst_prefix character varying, i_pop_id integer, i_uri_domain character varying, i_from_domain character varying, i_to_domain character varying, i_x_yeti_auth character varying, i_release_mode boolean DEFAULT false, i_pai character varying DEFAULT NULL::character varying, i_ppi character varying DEFAULT NULL::character varying, i_privacy character varying DEFAULT NULL::character varying, i_rpid character varying DEFAULT NULL::character varying, i_rpid_privacy character varying DEFAULT NULL::character varying) RETURNS SETOF callprofile59_ty +CREATE FUNCTION switch16.debug(i_transport_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_src_prefix character varying, i_dst_prefix character varying, i_pop_id integer, i_uri_domain character varying, i_from_domain character varying, i_to_domain character varying, i_x_yeti_auth character varying, i_release_mode boolean DEFAULT false, i_pai character varying DEFAULT NULL::character varying, i_ppi character varying DEFAULT NULL::character varying, i_privacy character varying DEFAULT NULL::character varying, i_rpid character varying DEFAULT NULL::character varying, i_rpid_privacy character varying DEFAULT NULL::character varying) RETURNS SETOF switch16.callprofile59_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -20010,7 +19971,7 @@ $$; -- Name: detect_network(character varying); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION detect_network(i_dst character varying) RETURNS sys.network_prefixes +CREATE FUNCTION switch16.detect_network(i_dst character varying) RETURNS sys.network_prefixes LANGUAGE plpgsql COST 10 AS $$ declare @@ -20032,7 +19993,7 @@ $$; -- Name: init(integer, integer); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION init(i_node_id integer, i_pop_id integer) RETURNS void +CREATE FUNCTION switch16.init(i_node_id integer, i_pop_id integer) RETURNS void LANGUAGE plpgsql COST 10 AS $$ declare @@ -20053,7 +20014,7 @@ $$; -- Name: lnp_resolve(smallint, character varying); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION lnp_resolve(i_database_id smallint, i_dst character varying) RETURNS character varying +CREATE FUNCTION switch16.lnp_resolve(i_database_id smallint, i_dst character varying) RETURNS character varying LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20066,7 +20027,7 @@ $$; -- Name: lnp_resolve_tagged(smallint, character varying); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION lnp_resolve_tagged(i_database_id smallint, i_dst character varying) RETURNS lnp_resolve +CREATE FUNCTION switch16.lnp_resolve_tagged(i_database_id smallint, i_dst character varying) RETURNS switch16.lnp_resolve LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20079,7 +20040,7 @@ $$; -- Name: load_codecs(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_codecs() RETURNS TABLE(o_id integer, o_codec_group_id integer, o_codec_name character varying, o_priority integer, o_dynamic_payload_id integer, o_format_params character varying) +CREATE FUNCTION switch16.load_codecs() RETURNS TABLE(o_id integer, o_codec_group_id integer, o_codec_name character varying, o_priority integer, o_dynamic_payload_id integer, o_format_params character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20102,7 +20063,7 @@ $$; -- Name: load_disconnect_code_namespace(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_disconnect_code_namespace() RETURNS SETOF class4.disconnect_code_namespace +CREATE FUNCTION switch16.load_disconnect_code_namespace() RETURNS SETOF class4.disconnect_code_namespace LANGUAGE plpgsql COST 10 AS $$ @@ -20116,7 +20077,7 @@ $$; -- Name: load_disconnect_code_refuse(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_disconnect_code_refuse() RETURNS TABLE(o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) +CREATE FUNCTION switch16.load_disconnect_code_refuse() RETURNS TABLE(o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20133,7 +20094,7 @@ $$; -- Name: load_disconnect_code_refuse_overrides(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_disconnect_code_refuse_overrides() RETURNS TABLE(o_policy_id integer, o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) +CREATE FUNCTION switch16.load_disconnect_code_refuse_overrides() RETURNS TABLE(o_policy_id integer, o_id integer, o_code integer, o_reason character varying, o_rewrited_code integer, o_rewrited_reason character varying, o_store_cdr boolean, o_silently_drop boolean) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20160,7 +20121,7 @@ $$; -- Name: load_disconnect_code_rerouting(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_disconnect_code_rerouting() RETURNS TABLE(received_code integer, stop_rerouting boolean) +CREATE FUNCTION switch16.load_disconnect_code_rerouting() RETURNS TABLE(received_code integer, stop_rerouting boolean) LANGUAGE plpgsql COST 10 AS $$ @@ -20177,7 +20138,7 @@ $$; -- Name: load_disconnect_code_rerouting_overrides(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_disconnect_code_rerouting_overrides() RETURNS TABLE(policy_id integer, received_code integer, stop_rerouting boolean) +CREATE FUNCTION switch16.load_disconnect_code_rerouting_overrides() RETURNS TABLE(policy_id integer, received_code integer, stop_rerouting boolean) LANGUAGE plpgsql COST 10 AS $$ @@ -20196,7 +20157,7 @@ $$; -- Name: load_disconnect_code_rewrite(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_disconnect_code_rewrite() RETURNS TABLE(o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) +CREATE FUNCTION switch16.load_disconnect_code_rewrite() RETURNS TABLE(o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20213,7 +20174,7 @@ $$; -- Name: load_disconnect_code_rewrite_overrides(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_disconnect_code_rewrite_overrides() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) +CREATE FUNCTION switch16.load_disconnect_code_rewrite_overrides() RETURNS TABLE(o_policy_id integer, o_code integer, o_reason character varying, o_pass_reason_to_originator boolean, o_rewrited_code integer, o_rewrited_reason character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20232,7 +20193,7 @@ $$; -- Name: load_incoming_auth(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_incoming_auth() RETURNS TABLE(id integer, username character varying, password character varying) +CREATE FUNCTION switch16.load_incoming_auth() RETURNS TABLE(id integer, username character varying, password character varying) LANGUAGE plpgsql COST 10 ROWS 10 AS $$ BEGIN @@ -20245,7 +20206,7 @@ $$; -- Name: load_interface_in(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_interface_in() RETURNS TABLE(varname character varying, vartype character varying, varformat character varying, varhashkey boolean, varparam character varying) +CREATE FUNCTION switch16.load_interface_in() RETURNS TABLE(varname character varying, vartype character varying, varformat character varying, varhashkey boolean, varparam character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20258,7 +20219,7 @@ $$; -- Name: load_interface_out(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_interface_out() RETURNS TABLE(varname character varying, vartype character varying, forcdr boolean, forradius boolean) +CREATE FUNCTION switch16.load_interface_out() RETURNS TABLE(varname character varying, vartype character varying, forcdr boolean, forradius boolean) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20271,7 +20232,7 @@ $$; -- Name: load_lnp_databases(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_lnp_databases() RETURNS TABLE(o_id smallint, o_name character varying, o_driver_id smallint, o_host character varying, o_port integer, o_thinq_username character varying, o_thinq_token character varying, o_timeout smallint, o_csv_file character varying) +CREATE FUNCTION switch16.load_lnp_databases() RETURNS TABLE(o_id smallint, o_name character varying, o_driver_id smallint, o_host character varying, o_port integer, o_thinq_username character varying, o_thinq_token character varying, o_timeout smallint, o_csv_file character varying) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20285,7 +20246,7 @@ $$; -- Name: load_radius_accounting_profiles(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_radius_accounting_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, timeout smallint, attempts smallint, enable_start_accounting boolean, enable_interim_accounting boolean, enable_stop_accounting boolean, interim_accounting_interval smallint, start_avps json, interim_avps json, stop_avps json) +CREATE FUNCTION switch16.load_radius_accounting_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, timeout smallint, attempts smallint, enable_start_accounting boolean, enable_interim_accounting boolean, enable_stop_accounting boolean, interim_accounting_interval smallint, start_avps json, interim_avps json, stop_avps json) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20315,7 +20276,7 @@ $$; -- Name: load_radius_profiles(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_radius_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, reject_on_error boolean, timeout smallint, attempts smallint, avps json) +CREATE FUNCTION switch16.load_radius_profiles() RETURNS TABLE(id smallint, name character varying, server character varying, port integer, secret character varying, reject_on_error boolean, timeout smallint, attempts smallint, avps json) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20332,7 +20293,7 @@ $$; -- Name: load_registrations_out(integer, integer, integer); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_registrations_out(i_pop_id integer, i_node_id integer, i_registration_id integer DEFAULT NULL::integer) RETURNS TABLE(o_id integer, o_transport_protocol_id smallint, o_domain character varying, o_user character varying, o_display_name character varying, o_auth_user character varying, o_auth_password character varying, o_proxy character varying, o_proxy_transport_protocol_id smallint, o_contact character varying, o_expire integer, o_force_expire boolean, o_retry_delay smallint, o_max_attempts smallint) +CREATE FUNCTION switch16.load_registrations_out(i_pop_id integer, i_node_id integer, i_registration_id integer DEFAULT NULL::integer) RETURNS TABLE(o_id integer, o_transport_protocol_id smallint, o_domain character varying, o_user character varying, o_display_name character varying, o_auth_user character varying, o_auth_password character varying, o_proxy character varying, o_proxy_transport_protocol_id smallint, o_contact character varying, o_expire integer, o_force_expire boolean, o_retry_delay smallint, o_max_attempts smallint) LANGUAGE plpgsql COST 10 ROWS 100 AS $$ BEGIN @@ -20367,7 +20328,7 @@ $$; -- Name: resource_type; Type: TABLE; Schema: switch16; Owner: -; Tablespace: -- -CREATE TABLE resource_type ( +CREATE TABLE switch16.resource_type ( id integer NOT NULL, name character varying NOT NULL, internal_code_id integer NOT NULL, @@ -20379,7 +20340,7 @@ CREATE TABLE resource_type ( -- Name: load_resource_types(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_resource_types() RETURNS SETOF resource_type +CREATE FUNCTION switch16.load_resource_types() RETURNS SETOF switch16.resource_type LANGUAGE plpgsql COST 10 ROWS 10 AS $$ @@ -20393,7 +20354,7 @@ $$; -- Name: load_sensor(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_sensor() RETURNS TABLE(o_id smallint, o_name character varying, o_mode_id integer, o_source_interface character varying, o_target_mac macaddr, o_use_routing boolean, o_target_ip inet, o_target_port integer, o_hep_capture_id integer, o_source_ip inet) +CREATE FUNCTION switch16.load_sensor() RETURNS TABLE(o_id smallint, o_name character varying, o_mode_id integer, o_source_interface character varying, o_target_mac macaddr, o_use_routing boolean, o_target_ip inet, o_target_port integer, o_hep_capture_id integer, o_source_ip inet) LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -20417,7 +20378,7 @@ $$; -- Name: load_trusted_headers(integer); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION load_trusted_headers(i_node_id integer) RETURNS TABLE(o_name character varying) +CREATE FUNCTION switch16.load_trusted_headers(i_node_id integer) RETURNS TABLE(o_name character varying) LANGUAGE plpgsql COST 10 ROWS 100 AS $$ BEGIN @@ -20430,7 +20391,7 @@ $$; -- Name: new_profile(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION new_profile() RETURNS callprofile59_ty +CREATE FUNCTION switch16.new_profile() RETURNS switch16.callprofile59_ty LANGUAGE plpgsql COST 10 AS $_$ DECLARE @@ -20545,7 +20506,7 @@ $_$; -- Name: preprocess(character varying, character varying, boolean); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION preprocess(i_namespace character varying, i_funcname character varying, i_comment boolean) RETURNS void +CREATE FUNCTION switch16.preprocess(i_namespace character varying, i_funcname character varying, i_comment boolean) RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -20602,7 +20563,7 @@ $$; -- Name: preprocess_all(); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION preprocess_all() RETURNS void +CREATE FUNCTION switch16.preprocess_all() RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -20620,10 +20581,10 @@ $$; -- --- Name: process_dp(callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - +-- Name: process_dp(switch16.callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION process_dp(i_profile callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile59_ty +CREATE FUNCTION switch16.process_dp(i_profile switch16.callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch16.callprofile59_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -20735,10 +20696,10 @@ $$; -- --- Name: process_dp_debug(callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - +-- Name: process_dp_debug(switch16.callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION process_dp_debug(i_profile callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile59_ty +CREATE FUNCTION switch16.process_dp_debug(i_profile switch16.callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch16.callprofile59_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -20820,10 +20781,10 @@ $$; -- --- Name: process_dp_release(callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - +-- Name: process_dp_release(switch16.callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, integer, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION process_dp_release(i_profile callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF callprofile59_ty +CREATE FUNCTION switch16.process_dp_release(i_profile switch16.callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_pop_id integer, i_send_billing_information boolean, i_max_call_length integer) RETURNS SETOF switch16.callprofile59_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 10000 AS $$ DECLARE @@ -20891,10 +20852,10 @@ $$; -- --- Name: process_gw(callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - +-- Name: process_gw(switch16.callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION process_gw(i_profile callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile59_ty +CREATE FUNCTION switch16.process_gw(i_profile switch16.callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch16.callprofile59_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -21301,10 +21262,10 @@ $_$; -- --- Name: process_gw_debug(callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - +-- Name: process_gw_debug(switch16.callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION process_gw_debug(i_profile callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile59_ty +CREATE FUNCTION switch16.process_gw_debug(i_profile switch16.callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch16.callprofile59_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -21711,10 +21672,10 @@ $_$; -- --- Name: process_gw_release(callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - +-- Name: process_gw_release(switch16.callprofile59_ty, class4.destinations, class4.dialpeers, billing.accounts, class4.gateways, billing.accounts, class4.gateways, boolean, integer); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION process_gw_release(i_profile callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS callprofile59_ty +CREATE FUNCTION switch16.process_gw_release(i_profile switch16.callprofile59_ty, i_destination class4.destinations, i_dp class4.dialpeers, i_customer_acc billing.accounts, i_customer_gw class4.gateways, i_vendor_acc billing.accounts, i_vendor_gw class4.gateways, i_send_billing_information boolean, i_max_call_length integer) RETURNS switch16.callprofile59_ty LANGUAGE plpgsql STABLE SECURITY DEFINER COST 100000 AS $_$ DECLARE @@ -22101,7 +22062,7 @@ $_$; -- Name: recompile_interface(integer); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION recompile_interface(i_version integer) RETURNS void +CREATE FUNCTION switch16.recompile_interface(i_version integer) RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -22122,7 +22083,7 @@ $$; -- Name: route(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION route(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile59_ty +CREATE FUNCTION switch16.route(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch16.callprofile59_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -23118,7 +23079,7 @@ CREATE FUNCTION route(i_node_id integer, i_pop_id integer, i_protocol_id smallin -- Name: route_debug(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION route_debug(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile59_ty +CREATE FUNCTION switch16.route_debug(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch16.callprofile59_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -24114,7 +24075,7 @@ CREATE FUNCTION route_debug(i_node_id integer, i_pop_id integer, i_protocol_id s -- Name: route_release(integer, integer, smallint, inet, integer, inet, integer, character varying, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, integer, character varying, character varying, inet, integer, smallint, character varying, character varying, character varying, character varying, character varying); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION route_release(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF callprofile59_ty +CREATE FUNCTION switch16.route_release(i_node_id integer, i_pop_id integer, i_protocol_id smallint, i_remote_ip inet, i_remote_port integer, i_local_ip inet, i_local_port integer, i_from_dsp character varying, i_from_name character varying, i_from_domain character varying, i_from_port integer, i_to_name character varying, i_to_domain character varying, i_to_port integer, i_contact_name character varying, i_contact_domain character varying, i_contact_port integer, i_uri_name character varying, i_uri_domain character varying, i_auth_id integer, i_x_yeti_auth character varying, i_diversion character varying, i_x_orig_ip inet, i_x_orig_port integer, i_x_orig_protocol_id smallint, i_pai character varying, i_ppi character varying, i_privacy character varying, i_rpid character varying, i_rpid_privacy character varying) RETURNS SETOF switch16.callprofile59_ty LANGUAGE plpgsql SECURITY DEFINER ROWS 10 AS $$ DECLARE @@ -24998,7 +24959,7 @@ CREATE FUNCTION route_release(i_node_id integer, i_pop_id integer, i_protocol_id -- Name: tracelog(class4.destinations); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION tracelog(i_in class4.destinations) RETURNS void +CREATE FUNCTION switch16.tracelog(i_in class4.destinations) RETURNS void LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -25011,7 +24972,7 @@ $$; -- Name: tracelog(class4.dialpeers); Type: FUNCTION; Schema: switch16; Owner: - -- -CREATE FUNCTION tracelog(i_in class4.dialpeers) RETURNS void +CREATE FUNCTION switch16.tracelog(i_in class4.dialpeers) RETURNS void LANGUAGE plpgsql COST 10 AS $$ BEGIN @@ -25020,13 +24981,11 @@ END; $$; -SET search_path = sys, pg_catalog; - -- -- Name: cdr_createtable(integer); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION cdr_createtable(i_offset integer) RETURNS void +CREATE FUNCTION sys.cdr_createtable(i_offset integer) RETURNS void LANGUAGE plpgsql COST 10000 AS $$ DECLARE @@ -25076,7 +25035,7 @@ $$; -- Name: cdr_drop_table(character varying); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION cdr_drop_table(i_tbname character varying) RETURNS void +CREATE FUNCTION sys.cdr_drop_table(i_tbname character varying) RETURNS void LANGUAGE plpgsql AS $$ DECLARE @@ -25100,7 +25059,7 @@ $$; -- Name: cdr_export_data(character varying); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION cdr_export_data(i_tbname character varying) RETURNS void +CREATE FUNCTION sys.cdr_export_data(i_tbname character varying) RETURNS void LANGUAGE plpgsql AS $$ DECLARE @@ -25116,7 +25075,7 @@ $$; -- Name: cdr_export_data(character varying, character varying); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION cdr_export_data(i_tbname character varying, i_dir character varying) RETURNS void +CREATE FUNCTION sys.cdr_export_data(i_tbname character varying, i_dir character varying) RETURNS void LANGUAGE plpgsql AS $$ DECLARE @@ -25132,7 +25091,7 @@ $$; -- Name: cdr_reindex(character varying); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION cdr_reindex(i_tbname character varying) RETURNS void +CREATE FUNCTION sys.cdr_reindex(i_tbname character varying) RETURNS void LANGUAGE plpgsql AS $$ DECLARE @@ -25191,7 +25150,7 @@ $$; -- Name: cdrtable_tgr_reload(); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION cdrtable_tgr_reload() RETURNS void +CREATE FUNCTION sys.cdrtable_tgr_reload() RETURNS void LANGUAGE plpgsql AS $_$ DECLARE @@ -25236,7 +25195,7 @@ $_$; -- Name: checkcode(); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION checkcode() RETURNS TABLE(o_schema character varying, o_name character varying, o_hash character varying) +CREATE FUNCTION sys.checkcode() RETURNS TABLE(o_schema character varying, o_name character varying, o_hash character varying) LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -25260,7 +25219,7 @@ $$; -- Name: checkstat(); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION checkstat() RETURNS void +CREATE FUNCTION sys.checkstat() RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -25329,7 +25288,7 @@ $$; -- Name: codecheck(); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION codecheck() RETURNS TABLE(o_schema character varying, o_name character varying, o_hash character varying) +CREATE FUNCTION sys.codecheck() RETURNS TABLE(o_schema character varying, o_name character varying, o_hash character varying) LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -25353,7 +25312,7 @@ $$; -- Name: codediff(character varying, smallint, character varying, character varying, character varying); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION codediff(i_host character varying, i_port smallint, i_dbname character varying, i_username character varying, i_password character varying) RETURNS TABLE(o_schema character varying, o_name character varying, o_local_hash character varying, o_remote_hash character varying, o_need_update boolean) +CREATE FUNCTION sys.codediff(i_host character varying, i_port smallint, i_dbname character varying, i_username character varying, i_password character varying) RETURNS TABLE(o_schema character varying, o_name character varying, o_local_hash character varying, o_remote_hash character varying, o_need_update boolean) LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -25400,7 +25359,7 @@ $$; -- Name: hex_to_int(text); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION hex_to_int(i_hex text, OUT o_dec integer) RETURNS integer +CREATE FUNCTION sys.hex_to_int(i_hex text, OUT o_dec integer) RETURNS integer LANGUAGE plpgsql IMMUTABLE STRICT AS $$ BEGIN @@ -25413,7 +25372,7 @@ END $$; -- Name: logic_log(character varying, integer, character varying); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION logic_log(i_source character varying, i_level integer, i_msg character varying) RETURNS void +CREATE FUNCTION sys.logic_log(i_source character varying, i_level integer, i_msg character varying) RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -25428,7 +25387,7 @@ $$; -- Name: system_clean(); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION system_clean() RETURNS void +CREATE FUNCTION sys.system_clean() RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -25454,7 +25413,7 @@ $$; -- Name: version_check(integer); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION version_check(i_ver integer) RETURNS void +CREATE FUNCTION sys.version_check(i_ver integer) RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -25473,7 +25432,7 @@ $$; -- Name: version_up(integer, character varying); Type: FUNCTION; Schema: sys; Owner: - -- -CREATE FUNCTION version_up(i_ver integer, i_comment character varying) RETURNS void +CREATE FUNCTION sys.version_up(i_ver integer, i_comment character varying) RETURNS void LANGUAGE plpgsql COST 10 AS $$ DECLARE @@ -25492,13 +25451,11 @@ END; $$; -SET search_path = billing, pg_catalog; - -- -- Name: accounts_id_seq; Type: SEQUENCE; Schema: billing; Owner: - -- -CREATE SEQUENCE accounts_id_seq +CREATE SEQUENCE billing.accounts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25510,14 +25467,14 @@ CREATE SEQUENCE accounts_id_seq -- Name: accounts_id_seq; Type: SEQUENCE OWNED BY; Schema: billing; Owner: - -- -ALTER SEQUENCE accounts_id_seq OWNED BY accounts.id; +ALTER SEQUENCE billing.accounts_id_seq OWNED BY billing.accounts.id; -- -- Name: cdr_batches; Type: TABLE; Schema: billing; Owner: -; Tablespace: -- -CREATE TABLE cdr_batches ( +CREATE TABLE billing.cdr_batches ( id bigint NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, size integer NOT NULL, @@ -25529,7 +25486,7 @@ CREATE TABLE cdr_batches ( -- Name: invoice_periods; Type: TABLE; Schema: billing; Owner: -; Tablespace: -- -CREATE TABLE invoice_periods ( +CREATE TABLE billing.invoice_periods ( id smallint NOT NULL, name character varying NOT NULL ); @@ -25539,7 +25496,7 @@ CREATE TABLE invoice_periods ( -- Name: invoice_periods_id_seq; Type: SEQUENCE; Schema: billing; Owner: - -- -CREATE SEQUENCE invoice_periods_id_seq +CREATE SEQUENCE billing.invoice_periods_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25551,14 +25508,14 @@ CREATE SEQUENCE invoice_periods_id_seq -- Name: invoice_periods_id_seq; Type: SEQUENCE OWNED BY; Schema: billing; Owner: - -- -ALTER SEQUENCE invoice_periods_id_seq OWNED BY invoice_periods.id; +ALTER SEQUENCE billing.invoice_periods_id_seq OWNED BY billing.invoice_periods.id; -- -- Name: invoice_templates; Type: TABLE; Schema: billing; Owner: -; Tablespace: -- -CREATE TABLE invoice_templates ( +CREATE TABLE billing.invoice_templates ( id integer NOT NULL, name character varying NOT NULL, filename character varying NOT NULL, @@ -25572,7 +25529,7 @@ CREATE TABLE invoice_templates ( -- Name: invoices_templates_id_seq; Type: SEQUENCE; Schema: billing; Owner: - -- -CREATE SEQUENCE invoices_templates_id_seq +CREATE SEQUENCE billing.invoices_templates_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25584,14 +25541,14 @@ CREATE SEQUENCE invoices_templates_id_seq -- Name: invoices_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: billing; Owner: - -- -ALTER SEQUENCE invoices_templates_id_seq OWNED BY invoice_templates.id; +ALTER SEQUENCE billing.invoices_templates_id_seq OWNED BY billing.invoice_templates.id; -- -- Name: payments; Type: TABLE; Schema: billing; Owner: -; Tablespace: -- -CREATE TABLE payments ( +CREATE TABLE billing.payments ( account_id integer NOT NULL, amount numeric NOT NULL, notes character varying, @@ -25604,7 +25561,7 @@ CREATE TABLE payments ( -- Name: payments_id_seq; Type: SEQUENCE; Schema: billing; Owner: - -- -CREATE SEQUENCE payments_id_seq +CREATE SEQUENCE billing.payments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25616,16 +25573,14 @@ CREATE SEQUENCE payments_id_seq -- Name: payments_id_seq; Type: SEQUENCE OWNED BY; Schema: billing; Owner: - -- -ALTER SEQUENCE payments_id_seq OWNED BY payments.id; +ALTER SEQUENCE billing.payments_id_seq OWNED BY billing.payments.id; -SET search_path = class4, pg_catalog; - -- -- Name: area_prefixes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE area_prefixes ( +CREATE TABLE class4.area_prefixes ( id bigint NOT NULL, area_id integer NOT NULL, prefix character varying NOT NULL @@ -25636,7 +25591,7 @@ CREATE TABLE area_prefixes ( -- Name: area_prefixes_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE area_prefixes_id_seq +CREATE SEQUENCE class4.area_prefixes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25648,14 +25603,14 @@ CREATE SEQUENCE area_prefixes_id_seq -- Name: area_prefixes_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE area_prefixes_id_seq OWNED BY area_prefixes.id; +ALTER SEQUENCE class4.area_prefixes_id_seq OWNED BY class4.area_prefixes.id; -- -- Name: areas; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE areas ( +CREATE TABLE class4.areas ( id integer NOT NULL, name character varying NOT NULL ); @@ -25665,7 +25620,7 @@ CREATE TABLE areas ( -- Name: areas_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE areas_id_seq +CREATE SEQUENCE class4.areas_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25677,14 +25632,14 @@ CREATE SEQUENCE areas_id_seq -- Name: areas_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE areas_id_seq OWNED BY areas.id; +ALTER SEQUENCE class4.areas_id_seq OWNED BY class4.areas.id; -- -- Name: numberlist_items; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE numberlist_items ( +CREATE TABLE class4.numberlist_items ( id integer NOT NULL, numberlist_id smallint NOT NULL, key character varying NOT NULL, @@ -25708,7 +25663,7 @@ CREATE TABLE numberlist_items ( -- Name: blacklist_items_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE blacklist_items_id_seq +CREATE SEQUENCE class4.blacklist_items_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25720,14 +25675,14 @@ CREATE SEQUENCE blacklist_items_id_seq -- Name: blacklist_items_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE blacklist_items_id_seq OWNED BY numberlist_items.id; +ALTER SEQUENCE class4.blacklist_items_id_seq OWNED BY class4.numberlist_items.id; -- -- Name: numberlists; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE numberlists ( +CREATE TABLE class4.numberlists ( id smallint NOT NULL, name character varying NOT NULL, created_at timestamp with time zone, @@ -25747,7 +25702,7 @@ CREATE TABLE numberlists ( -- Name: blacklists_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE blacklists_id_seq +CREATE SEQUENCE class4.blacklists_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25759,14 +25714,14 @@ CREATE SEQUENCE blacklists_id_seq -- Name: blacklists_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE blacklists_id_seq OWNED BY numberlists.id; +ALTER SEQUENCE class4.blacklists_id_seq OWNED BY class4.numberlists.id; -- -- Name: codec_group_codecs; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE codec_group_codecs ( +CREATE TABLE class4.codec_group_codecs ( id integer NOT NULL, codec_group_id integer NOT NULL, codec_id integer NOT NULL, @@ -25780,7 +25735,7 @@ CREATE TABLE codec_group_codecs ( -- Name: codec_group_codecs_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE codec_group_codecs_id_seq +CREATE SEQUENCE class4.codec_group_codecs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25792,14 +25747,14 @@ CREATE SEQUENCE codec_group_codecs_id_seq -- Name: codec_group_codecs_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE codec_group_codecs_id_seq OWNED BY codec_group_codecs.id; +ALTER SEQUENCE class4.codec_group_codecs_id_seq OWNED BY class4.codec_group_codecs.id; -- -- Name: codec_groups; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE codec_groups ( +CREATE TABLE class4.codec_groups ( id integer NOT NULL, name character varying NOT NULL ); @@ -25809,7 +25764,7 @@ CREATE TABLE codec_groups ( -- Name: codec_groups_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE codec_groups_id_seq +CREATE SEQUENCE class4.codec_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25821,14 +25776,14 @@ CREATE SEQUENCE codec_groups_id_seq -- Name: codec_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE codec_groups_id_seq OWNED BY codec_groups.id; +ALTER SEQUENCE class4.codec_groups_id_seq OWNED BY class4.codec_groups.id; -- -- Name: codecs; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE codecs ( +CREATE TABLE class4.codecs ( id integer NOT NULL, name character varying NOT NULL ); @@ -25838,7 +25793,7 @@ CREATE TABLE codecs ( -- Name: codecs_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE codecs_id_seq +CREATE SEQUENCE class4.codecs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25850,14 +25805,14 @@ CREATE SEQUENCE codecs_id_seq -- Name: codecs_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE codecs_id_seq OWNED BY codecs.id; +ALTER SEQUENCE class4.codecs_id_seq OWNED BY class4.codecs.id; -- -- Name: customers_auth; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE customers_auth ( +CREATE TABLE class4.customers_auth ( id integer NOT NULL, customer_id integer NOT NULL, rateplan_id integer NOT NULL, @@ -25915,7 +25870,7 @@ CREATE TABLE customers_auth ( -- Name: customers_auth_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE customers_auth_id_seq +CREATE SEQUENCE class4.customers_auth_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -25927,14 +25882,14 @@ CREATE SEQUENCE customers_auth_id_seq -- Name: customers_auth_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE customers_auth_id_seq OWNED BY customers_auth.id; +ALTER SEQUENCE class4.customers_auth_id_seq OWNED BY class4.customers_auth.id; -- -- Name: customers_auth_normalized; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE customers_auth_normalized ( +CREATE TABLE class4.customers_auth_normalized ( id integer NOT NULL, customers_auth_id integer NOT NULL, customer_id integer NOT NULL, @@ -25996,7 +25951,7 @@ CREATE TABLE customers_auth_normalized ( -- Name: customers_auth_normalized_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE customers_auth_normalized_id_seq +CREATE SEQUENCE class4.customers_auth_normalized_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26008,14 +25963,14 @@ CREATE SEQUENCE customers_auth_normalized_id_seq -- Name: customers_auth_normalized_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE customers_auth_normalized_id_seq OWNED BY customers_auth_normalized.id; +ALTER SEQUENCE class4.customers_auth_normalized_id_seq OWNED BY class4.customers_auth_normalized.id; -- -- Name: destination_next_rates; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE destination_next_rates ( +CREATE TABLE class4.destination_next_rates ( id bigint NOT NULL, destination_id bigint NOT NULL, initial_rate numeric NOT NULL, @@ -26035,7 +25990,7 @@ CREATE TABLE destination_next_rates ( -- Name: destination_next_rates_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE destination_next_rates_id_seq +CREATE SEQUENCE class4.destination_next_rates_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26047,14 +26002,14 @@ CREATE SEQUENCE destination_next_rates_id_seq -- Name: destination_next_rates_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE destination_next_rates_id_seq OWNED BY destination_next_rates.id; +ALTER SEQUENCE class4.destination_next_rates_id_seq OWNED BY class4.destination_next_rates.id; -- -- Name: destination_rate_policy; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE destination_rate_policy ( +CREATE TABLE class4.destination_rate_policy ( id integer NOT NULL, name character varying NOT NULL ); @@ -26064,7 +26019,7 @@ CREATE TABLE destination_rate_policy ( -- Name: destinations_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE destinations_id_seq +CREATE SEQUENCE class4.destinations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26076,14 +26031,14 @@ CREATE SEQUENCE destinations_id_seq -- Name: destinations_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE destinations_id_seq OWNED BY destinations.id; +ALTER SEQUENCE class4.destinations_id_seq OWNED BY class4.destinations.id; -- -- Name: dialpeer_next_rates; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE dialpeer_next_rates ( +CREATE TABLE class4.dialpeer_next_rates ( id bigint NOT NULL, dialpeer_id bigint NOT NULL, next_rate numeric NOT NULL, @@ -26105,7 +26060,7 @@ CREATE TABLE dialpeer_next_rates ( -- Name: dialpeer_next_rates_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE dialpeer_next_rates_id_seq +CREATE SEQUENCE class4.dialpeer_next_rates_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26117,14 +26072,14 @@ CREATE SEQUENCE dialpeer_next_rates_id_seq -- Name: dialpeer_next_rates_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE dialpeer_next_rates_id_seq OWNED BY dialpeer_next_rates.id; +ALTER SEQUENCE class4.dialpeer_next_rates_id_seq OWNED BY class4.dialpeer_next_rates.id; -- -- Name: dialpeers_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE dialpeers_id_seq +CREATE SEQUENCE class4.dialpeers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26136,14 +26091,14 @@ CREATE SEQUENCE dialpeers_id_seq -- Name: dialpeers_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE dialpeers_id_seq OWNED BY dialpeers.id; +ALTER SEQUENCE class4.dialpeers_id_seq OWNED BY class4.dialpeers.id; -- -- Name: disconnect_code; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE disconnect_code ( +CREATE TABLE class4.disconnect_code ( id integer NOT NULL, namespace_id integer NOT NULL, stop_hunting boolean DEFAULT true NOT NULL, @@ -26163,7 +26118,7 @@ CREATE TABLE disconnect_code ( -- Name: disconnect_code_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE disconnect_code_id_seq +CREATE SEQUENCE class4.disconnect_code_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26175,14 +26130,14 @@ CREATE SEQUENCE disconnect_code_id_seq -- Name: disconnect_code_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE disconnect_code_id_seq OWNED BY disconnect_code.id; +ALTER SEQUENCE class4.disconnect_code_id_seq OWNED BY class4.disconnect_code.id; -- -- Name: disconnect_policy_code; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE disconnect_policy_code ( +CREATE TABLE class4.disconnect_policy_code ( id integer NOT NULL, policy_id integer NOT NULL, code_id integer NOT NULL, @@ -26197,7 +26152,7 @@ CREATE TABLE disconnect_policy_code ( -- Name: disconnect_code_policy_codes_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE disconnect_code_policy_codes_id_seq +CREATE SEQUENCE class4.disconnect_code_policy_codes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26209,14 +26164,14 @@ CREATE SEQUENCE disconnect_code_policy_codes_id_seq -- Name: disconnect_code_policy_codes_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE disconnect_code_policy_codes_id_seq OWNED BY disconnect_policy_code.id; +ALTER SEQUENCE class4.disconnect_code_policy_codes_id_seq OWNED BY class4.disconnect_policy_code.id; -- -- Name: disconnect_policy; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE disconnect_policy ( +CREATE TABLE class4.disconnect_policy ( id integer NOT NULL, name character varying ); @@ -26226,7 +26181,7 @@ CREATE TABLE disconnect_policy ( -- Name: disconnect_code_policy_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE disconnect_code_policy_id_seq +CREATE SEQUENCE class4.disconnect_code_policy_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26238,14 +26193,14 @@ CREATE SEQUENCE disconnect_code_policy_id_seq -- Name: disconnect_code_policy_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE disconnect_code_policy_id_seq OWNED BY disconnect_policy.id; +ALTER SEQUENCE class4.disconnect_code_policy_id_seq OWNED BY class4.disconnect_policy.id; -- -- Name: disconnect_initiators; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE disconnect_initiators ( +CREATE TABLE class4.disconnect_initiators ( id integer NOT NULL, name character varying ); @@ -26255,7 +26210,7 @@ CREATE TABLE disconnect_initiators ( -- Name: diversion_policy; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE diversion_policy ( +CREATE TABLE class4.diversion_policy ( id integer NOT NULL, name character varying NOT NULL ); @@ -26265,7 +26220,7 @@ CREATE TABLE diversion_policy ( -- Name: dtmf_receive_modes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE dtmf_receive_modes ( +CREATE TABLE class4.dtmf_receive_modes ( id smallint NOT NULL, name character varying NOT NULL ); @@ -26275,7 +26230,7 @@ CREATE TABLE dtmf_receive_modes ( -- Name: dtmf_send_modes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE dtmf_send_modes ( +CREATE TABLE class4.dtmf_send_modes ( id smallint NOT NULL, name character varying NOT NULL ); @@ -26285,7 +26240,7 @@ CREATE TABLE dtmf_send_modes ( -- Name: dump_level; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE dump_level ( +CREATE TABLE class4.dump_level ( id integer NOT NULL, name character varying NOT NULL, log_sip boolean DEFAULT false NOT NULL, @@ -26297,7 +26252,7 @@ CREATE TABLE dump_level ( -- Name: filter_types; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE filter_types ( +CREATE TABLE class4.filter_types ( id integer NOT NULL, name character varying ); @@ -26307,7 +26262,7 @@ CREATE TABLE filter_types ( -- Name: gateway_groups; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE gateway_groups ( +CREATE TABLE class4.gateway_groups ( id integer NOT NULL, vendor_id integer NOT NULL, name character varying NOT NULL, @@ -26319,7 +26274,7 @@ CREATE TABLE gateway_groups ( -- Name: gateway_groups_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE gateway_groups_id_seq +CREATE SEQUENCE class4.gateway_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26331,14 +26286,14 @@ CREATE SEQUENCE gateway_groups_id_seq -- Name: gateway_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE gateway_groups_id_seq OWNED BY gateway_groups.id; +ALTER SEQUENCE class4.gateway_groups_id_seq OWNED BY class4.gateway_groups.id; -- -- Name: gateway_inband_dtmf_filtering_modes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE gateway_inband_dtmf_filtering_modes ( +CREATE TABLE class4.gateway_inband_dtmf_filtering_modes ( id smallint NOT NULL, name character varying NOT NULL ); @@ -26348,7 +26303,7 @@ CREATE TABLE gateway_inband_dtmf_filtering_modes ( -- Name: gateway_rel100_modes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE gateway_rel100_modes ( +CREATE TABLE class4.gateway_rel100_modes ( id smallint NOT NULL, name character varying NOT NULL ); @@ -26358,7 +26313,7 @@ CREATE TABLE gateway_rel100_modes ( -- Name: gateways_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE gateways_id_seq +CREATE SEQUENCE class4.gateways_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26370,14 +26325,14 @@ CREATE SEQUENCE gateways_id_seq -- Name: gateways_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE gateways_id_seq OWNED BY gateways.id; +ALTER SEQUENCE class4.gateways_id_seq OWNED BY class4.gateways.id; -- -- Name: lnp_cache; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE lnp_cache ( +CREATE TABLE class4.lnp_cache ( id integer NOT NULL, dst character varying NOT NULL, lrn character varying NOT NULL, @@ -26394,7 +26349,7 @@ CREATE TABLE lnp_cache ( -- Name: lnp_cache_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE lnp_cache_id_seq +CREATE SEQUENCE class4.lnp_cache_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26406,14 +26361,14 @@ CREATE SEQUENCE lnp_cache_id_seq -- Name: lnp_cache_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE lnp_cache_id_seq OWNED BY lnp_cache.id; +ALTER SEQUENCE class4.lnp_cache_id_seq OWNED BY class4.lnp_cache.id; -- -- Name: lnp_databases; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE lnp_databases ( +CREATE TABLE class4.lnp_databases ( id smallint NOT NULL, name character varying NOT NULL, host character varying NOT NULL, @@ -26431,7 +26386,7 @@ CREATE TABLE lnp_databases ( -- Name: lnp_databases_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE lnp_databases_id_seq +CREATE SEQUENCE class4.lnp_databases_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26443,14 +26398,14 @@ CREATE SEQUENCE lnp_databases_id_seq -- Name: lnp_databases_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE lnp_databases_id_seq OWNED BY lnp_databases.id; +ALTER SEQUENCE class4.lnp_databases_id_seq OWNED BY class4.lnp_databases.id; -- -- Name: numberlist_actions; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE numberlist_actions ( +CREATE TABLE class4.numberlist_actions ( id smallint NOT NULL, name character varying NOT NULL ); @@ -26460,7 +26415,7 @@ CREATE TABLE numberlist_actions ( -- Name: numberlist_modes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE numberlist_modes ( +CREATE TABLE class4.numberlist_modes ( id smallint NOT NULL, name character varying NOT NULL ); @@ -26470,7 +26425,7 @@ CREATE TABLE numberlist_modes ( -- Name: radius_accounting_profile_interim_attributes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE radius_accounting_profile_interim_attributes ( +CREATE TABLE class4.radius_accounting_profile_interim_attributes ( id smallint NOT NULL, profile_id smallint NOT NULL, type_id smallint NOT NULL, @@ -26487,7 +26442,7 @@ CREATE TABLE radius_accounting_profile_interim_attributes ( -- Name: radius_accounting_profile_interim_attributes_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE radius_accounting_profile_interim_attributes_id_seq +CREATE SEQUENCE class4.radius_accounting_profile_interim_attributes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26499,14 +26454,14 @@ CREATE SEQUENCE radius_accounting_profile_interim_attributes_id_seq -- Name: radius_accounting_profile_interim_attributes_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE radius_accounting_profile_interim_attributes_id_seq OWNED BY radius_accounting_profile_interim_attributes.id; +ALTER SEQUENCE class4.radius_accounting_profile_interim_attributes_id_seq OWNED BY class4.radius_accounting_profile_interim_attributes.id; -- -- Name: radius_accounting_profile_start_attributes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE radius_accounting_profile_start_attributes ( +CREATE TABLE class4.radius_accounting_profile_start_attributes ( id smallint NOT NULL, profile_id smallint NOT NULL, type_id smallint NOT NULL, @@ -26523,7 +26478,7 @@ CREATE TABLE radius_accounting_profile_start_attributes ( -- Name: radius_accounting_profile_start_attributes_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE radius_accounting_profile_start_attributes_id_seq +CREATE SEQUENCE class4.radius_accounting_profile_start_attributes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26535,14 +26490,14 @@ CREATE SEQUENCE radius_accounting_profile_start_attributes_id_seq -- Name: radius_accounting_profile_start_attributes_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE radius_accounting_profile_start_attributes_id_seq OWNED BY radius_accounting_profile_start_attributes.id; +ALTER SEQUENCE class4.radius_accounting_profile_start_attributes_id_seq OWNED BY class4.radius_accounting_profile_start_attributes.id; -- -- Name: radius_accounting_profile_stop_attributes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE radius_accounting_profile_stop_attributes ( +CREATE TABLE class4.radius_accounting_profile_stop_attributes ( id smallint NOT NULL, profile_id smallint NOT NULL, type_id smallint NOT NULL, @@ -26559,7 +26514,7 @@ CREATE TABLE radius_accounting_profile_stop_attributes ( -- Name: radius_accounting_profile_stop_attributes_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE radius_accounting_profile_stop_attributes_id_seq +CREATE SEQUENCE class4.radius_accounting_profile_stop_attributes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26571,14 +26526,14 @@ CREATE SEQUENCE radius_accounting_profile_stop_attributes_id_seq -- Name: radius_accounting_profile_stop_attributes_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE radius_accounting_profile_stop_attributes_id_seq OWNED BY radius_accounting_profile_stop_attributes.id; +ALTER SEQUENCE class4.radius_accounting_profile_stop_attributes_id_seq OWNED BY class4.radius_accounting_profile_stop_attributes.id; -- -- Name: radius_accounting_profiles; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE radius_accounting_profiles ( +CREATE TABLE class4.radius_accounting_profiles ( id smallint NOT NULL, name character varying NOT NULL, server character varying NOT NULL, @@ -26597,7 +26552,7 @@ CREATE TABLE radius_accounting_profiles ( -- Name: radius_accounting_profiles_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE radius_accounting_profiles_id_seq +CREATE SEQUENCE class4.radius_accounting_profiles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26609,14 +26564,14 @@ CREATE SEQUENCE radius_accounting_profiles_id_seq -- Name: radius_accounting_profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE radius_accounting_profiles_id_seq OWNED BY radius_accounting_profiles.id; +ALTER SEQUENCE class4.radius_accounting_profiles_id_seq OWNED BY class4.radius_accounting_profiles.id; -- -- Name: radius_auth_profile_attributes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE radius_auth_profile_attributes ( +CREATE TABLE class4.radius_auth_profile_attributes ( id smallint NOT NULL, profile_id smallint NOT NULL, type_id smallint NOT NULL, @@ -26633,7 +26588,7 @@ CREATE TABLE radius_auth_profile_attributes ( -- Name: radius_auth_profile_attributes_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE radius_auth_profile_attributes_id_seq +CREATE SEQUENCE class4.radius_auth_profile_attributes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26645,14 +26600,14 @@ CREATE SEQUENCE radius_auth_profile_attributes_id_seq -- Name: radius_auth_profile_attributes_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE radius_auth_profile_attributes_id_seq OWNED BY radius_auth_profile_attributes.id; +ALTER SEQUENCE class4.radius_auth_profile_attributes_id_seq OWNED BY class4.radius_auth_profile_attributes.id; -- -- Name: radius_auth_profiles; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE radius_auth_profiles ( +CREATE TABLE class4.radius_auth_profiles ( id smallint NOT NULL, name character varying NOT NULL, server character varying NOT NULL, @@ -26668,7 +26623,7 @@ CREATE TABLE radius_auth_profiles ( -- Name: radius_auth_profiles_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE radius_auth_profiles_id_seq +CREATE SEQUENCE class4.radius_auth_profiles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26680,14 +26635,14 @@ CREATE SEQUENCE radius_auth_profiles_id_seq -- Name: radius_auth_profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE radius_auth_profiles_id_seq OWNED BY radius_auth_profiles.id; +ALTER SEQUENCE class4.radius_auth_profiles_id_seq OWNED BY class4.radius_auth_profiles.id; -- -- Name: rate_profit_control_modes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE rate_profit_control_modes ( +CREATE TABLE class4.rate_profit_control_modes ( id smallint NOT NULL, name character varying NOT NULL ); @@ -26697,7 +26652,7 @@ CREATE TABLE rate_profit_control_modes ( -- Name: rateplans; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE rateplans ( +CREATE TABLE class4.rateplans ( id integer NOT NULL, name character varying, profit_control_mode_id smallint DEFAULT 1 NOT NULL, @@ -26710,7 +26665,7 @@ CREATE TABLE rateplans ( -- Name: rateplans_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE rateplans_id_seq +CREATE SEQUENCE class4.rateplans_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26722,14 +26677,14 @@ CREATE SEQUENCE rateplans_id_seq -- Name: rateplans_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE rateplans_id_seq OWNED BY rateplans.id; +ALTER SEQUENCE class4.rateplans_id_seq OWNED BY class4.rateplans.id; -- -- Name: registrations; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE registrations ( +CREATE TABLE class4.registrations ( id integer NOT NULL, name character varying NOT NULL, enabled boolean DEFAULT true NOT NULL, @@ -26755,7 +26710,7 @@ CREATE TABLE registrations ( -- Name: registrations_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE registrations_id_seq +CREATE SEQUENCE class4.registrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26767,14 +26722,14 @@ CREATE SEQUENCE registrations_id_seq -- Name: registrations_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE registrations_id_seq OWNED BY registrations.id; +ALTER SEQUENCE class4.registrations_id_seq OWNED BY class4.registrations.id; -- -- Name: routing_groups; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE routing_groups ( +CREATE TABLE class4.routing_groups ( id integer NOT NULL, name character varying NOT NULL ); @@ -26784,7 +26739,7 @@ CREATE TABLE routing_groups ( -- Name: routing_groups_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE routing_groups_id_seq +CREATE SEQUENCE class4.routing_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26796,14 +26751,14 @@ CREATE SEQUENCE routing_groups_id_seq -- Name: routing_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE routing_groups_id_seq OWNED BY routing_groups.id; +ALTER SEQUENCE class4.routing_groups_id_seq OWNED BY class4.routing_groups.id; -- -- Name: routing_plan_groups; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE routing_plan_groups ( +CREATE TABLE class4.routing_plan_groups ( id integer NOT NULL, routing_plan_id integer NOT NULL, routing_group_id integer NOT NULL @@ -26814,7 +26769,7 @@ CREATE TABLE routing_plan_groups ( -- Name: routing_plan_groups_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE routing_plan_groups_id_seq +CREATE SEQUENCE class4.routing_plan_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26826,14 +26781,14 @@ CREATE SEQUENCE routing_plan_groups_id_seq -- Name: routing_plan_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE routing_plan_groups_id_seq OWNED BY routing_plan_groups.id; +ALTER SEQUENCE class4.routing_plan_groups_id_seq OWNED BY class4.routing_plan_groups.id; -- -- Name: routing_plan_lnp_rules; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE routing_plan_lnp_rules ( +CREATE TABLE class4.routing_plan_lnp_rules ( id integer NOT NULL, routing_plan_id integer NOT NULL, dst_prefix character varying DEFAULT ''::character varying NOT NULL, @@ -26850,7 +26805,7 @@ CREATE TABLE routing_plan_lnp_rules ( -- Name: routing_plan_lnp_rules_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE routing_plan_lnp_rules_id_seq +CREATE SEQUENCE class4.routing_plan_lnp_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26862,14 +26817,14 @@ CREATE SEQUENCE routing_plan_lnp_rules_id_seq -- Name: routing_plan_lnp_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE routing_plan_lnp_rules_id_seq OWNED BY routing_plan_lnp_rules.id; +ALTER SEQUENCE class4.routing_plan_lnp_rules_id_seq OWNED BY class4.routing_plan_lnp_rules.id; -- -- Name: routing_plan_static_routes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE routing_plan_static_routes ( +CREATE TABLE class4.routing_plan_static_routes ( id integer NOT NULL, routing_plan_id integer NOT NULL, prefix character varying DEFAULT ''::character varying NOT NULL, @@ -26884,7 +26839,7 @@ CREATE TABLE routing_plan_static_routes ( -- Name: routing_plan_static_routes_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE routing_plan_static_routes_id_seq +CREATE SEQUENCE class4.routing_plan_static_routes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26896,14 +26851,14 @@ CREATE SEQUENCE routing_plan_static_routes_id_seq -- Name: routing_plan_static_routes_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE routing_plan_static_routes_id_seq OWNED BY routing_plan_static_routes.id; +ALTER SEQUENCE class4.routing_plan_static_routes_id_seq OWNED BY class4.routing_plan_static_routes.id; -- -- Name: routing_plans; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE routing_plans ( +CREATE TABLE class4.routing_plans ( id integer NOT NULL, name character varying NOT NULL, sorting_id integer DEFAULT 1 NOT NULL, @@ -26916,7 +26871,7 @@ CREATE TABLE routing_plans ( -- Name: routing_plans_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE routing_plans_id_seq +CREATE SEQUENCE class4.routing_plans_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26928,14 +26883,14 @@ CREATE SEQUENCE routing_plans_id_seq -- Name: routing_plans_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE routing_plans_id_seq OWNED BY routing_plans.id; +ALTER SEQUENCE class4.routing_plans_id_seq OWNED BY class4.routing_plans.id; -- -- Name: routing_tag_detection_rules; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE routing_tag_detection_rules ( +CREATE TABLE class4.routing_tag_detection_rules ( id smallint NOT NULL, dst_area_id integer, src_area_id integer, @@ -26952,7 +26907,7 @@ CREATE TABLE routing_tag_detection_rules ( -- Name: routing_tag_detection_rules_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE routing_tag_detection_rules_id_seq +CREATE SEQUENCE class4.routing_tag_detection_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -26964,14 +26919,14 @@ CREATE SEQUENCE routing_tag_detection_rules_id_seq -- Name: routing_tag_detection_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE routing_tag_detection_rules_id_seq OWNED BY routing_tag_detection_rules.id; +ALTER SEQUENCE class4.routing_tag_detection_rules_id_seq OWNED BY class4.routing_tag_detection_rules.id; -- -- Name: routing_tag_modes; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE routing_tag_modes ( +CREATE TABLE class4.routing_tag_modes ( id smallint NOT NULL, name character varying NOT NULL ); @@ -26981,7 +26936,7 @@ CREATE TABLE routing_tag_modes ( -- Name: routing_tags; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE routing_tags ( +CREATE TABLE class4.routing_tags ( id smallint NOT NULL, name character varying NOT NULL ); @@ -26991,7 +26946,7 @@ CREATE TABLE routing_tags ( -- Name: routing_tags_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE routing_tags_id_seq +CREATE SEQUENCE class4.routing_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27003,14 +26958,14 @@ CREATE SEQUENCE routing_tags_id_seq -- Name: routing_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE routing_tags_id_seq OWNED BY routing_tags.id; +ALTER SEQUENCE class4.routing_tags_id_seq OWNED BY class4.routing_tags.id; -- -- Name: sdp_c_location; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE sdp_c_location ( +CREATE TABLE class4.sdp_c_location ( id integer NOT NULL, name character varying NOT NULL ); @@ -27020,7 +26975,7 @@ CREATE TABLE sdp_c_location ( -- Name: session_refresh_methods; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE session_refresh_methods ( +CREATE TABLE class4.session_refresh_methods ( id integer NOT NULL, value character varying NOT NULL, name character varying @@ -27031,7 +26986,7 @@ CREATE TABLE session_refresh_methods ( -- Name: session_refresh_methods_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE session_refresh_methods_id_seq +CREATE SEQUENCE class4.session_refresh_methods_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27043,14 +26998,14 @@ CREATE SEQUENCE session_refresh_methods_id_seq -- Name: session_refresh_methods_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE session_refresh_methods_id_seq OWNED BY session_refresh_methods.id; +ALTER SEQUENCE class4.session_refresh_methods_id_seq OWNED BY class4.session_refresh_methods.id; -- -- Name: sortings; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE sortings ( +CREATE TABLE class4.sortings ( id integer NOT NULL, name character varying, description character varying, @@ -27062,7 +27017,7 @@ CREATE TABLE sortings ( -- Name: sortings_id_seq; Type: SEQUENCE; Schema: class4; Owner: - -- -CREATE SEQUENCE sortings_id_seq +CREATE SEQUENCE class4.sortings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27074,14 +27029,14 @@ CREATE SEQUENCE sortings_id_seq -- Name: sortings_id_seq; Type: SEQUENCE OWNED BY; Schema: class4; Owner: - -- -ALTER SEQUENCE sortings_id_seq OWNED BY sortings.id; +ALTER SEQUENCE class4.sortings_id_seq OWNED BY class4.sortings.id; -- -- Name: tag_actions; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE tag_actions ( +CREATE TABLE class4.tag_actions ( id smallint NOT NULL, name character varying NOT NULL ); @@ -27091,19 +27046,17 @@ CREATE TABLE tag_actions ( -- Name: transport_protocols; Type: TABLE; Schema: class4; Owner: -; Tablespace: -- -CREATE TABLE transport_protocols ( +CREATE TABLE class4.transport_protocols ( id smallint NOT NULL, name character varying NOT NULL ); -SET search_path = data_import, pg_catalog; - -- -- Name: import_accounts; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_accounts ( +CREATE TABLE data_import.import_accounts ( id bigint NOT NULL, o_id integer, contractor_name character varying, @@ -27128,7 +27081,7 @@ CREATE TABLE import_accounts ( -- Name: import_accounts_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_accounts_id_seq +CREATE SEQUENCE data_import.import_accounts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27140,14 +27093,14 @@ CREATE SEQUENCE import_accounts_id_seq -- Name: import_accounts_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_accounts_id_seq OWNED BY import_accounts.id; +ALTER SEQUENCE data_import.import_accounts_id_seq OWNED BY data_import.import_accounts.id; -- -- Name: import_codec_group_codecs; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_codec_group_codecs ( +CREATE TABLE data_import.import_codec_group_codecs ( id bigint NOT NULL, o_id integer, codec_group_name character varying, @@ -27163,7 +27116,7 @@ CREATE TABLE import_codec_group_codecs ( -- Name: import_codec_group_codecs_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_codec_group_codecs_id_seq +CREATE SEQUENCE data_import.import_codec_group_codecs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27175,14 +27128,14 @@ CREATE SEQUENCE import_codec_group_codecs_id_seq -- Name: import_codec_group_codecs_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_codec_group_codecs_id_seq OWNED BY import_codec_group_codecs.id; +ALTER SEQUENCE data_import.import_codec_group_codecs_id_seq OWNED BY data_import.import_codec_group_codecs.id; -- -- Name: import_codec_groups; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_codec_groups ( +CREATE TABLE data_import.import_codec_groups ( id bigint NOT NULL, o_id integer, name character varying, @@ -27194,7 +27147,7 @@ CREATE TABLE import_codec_groups ( -- Name: import_codec_groups_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_codec_groups_id_seq +CREATE SEQUENCE data_import.import_codec_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27206,14 +27159,14 @@ CREATE SEQUENCE import_codec_groups_id_seq -- Name: import_codec_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_codec_groups_id_seq OWNED BY import_codec_groups.id; +ALTER SEQUENCE data_import.import_codec_groups_id_seq OWNED BY data_import.import_codec_groups.id; -- -- Name: import_contractors; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_contractors ( +CREATE TABLE data_import.import_contractors ( id bigint NOT NULL, o_id integer, name character varying, @@ -27233,7 +27186,7 @@ CREATE TABLE import_contractors ( -- Name: import_contractors_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_contractors_id_seq +CREATE SEQUENCE data_import.import_contractors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27245,14 +27198,14 @@ CREATE SEQUENCE import_contractors_id_seq -- Name: import_contractors_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_contractors_id_seq OWNED BY import_contractors.id; +ALTER SEQUENCE data_import.import_contractors_id_seq OWNED BY data_import.import_contractors.id; -- -- Name: import_customers_auth; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_customers_auth ( +CREATE TABLE data_import.import_customers_auth ( id bigint NOT NULL, o_id bigint, customer_name character varying, @@ -27329,7 +27282,7 @@ CREATE TABLE import_customers_auth ( -- Name: import_customers_auth_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_customers_auth_id_seq +CREATE SEQUENCE data_import.import_customers_auth_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27341,14 +27294,14 @@ CREATE SEQUENCE import_customers_auth_id_seq -- Name: import_customers_auth_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_customers_auth_id_seq OWNED BY import_customers_auth.id; +ALTER SEQUENCE data_import.import_customers_auth_id_seq OWNED BY data_import.import_customers_auth.id; -- -- Name: import_destinations; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_destinations ( +CREATE TABLE data_import.import_destinations ( id bigint NOT NULL, o_id bigint, prefix character varying, @@ -27389,7 +27342,7 @@ CREATE TABLE import_destinations ( -- Name: import_destinations_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_destinations_id_seq +CREATE SEQUENCE data_import.import_destinations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27401,14 +27354,14 @@ CREATE SEQUENCE import_destinations_id_seq -- Name: import_destinations_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_destinations_id_seq OWNED BY import_destinations.id; +ALTER SEQUENCE data_import.import_destinations_id_seq OWNED BY data_import.import_destinations.id; -- -- Name: import_dialpeers; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_dialpeers ( +CREATE TABLE data_import.import_dialpeers ( id bigint NOT NULL, o_id bigint, enabled boolean, @@ -27458,7 +27411,7 @@ CREATE TABLE import_dialpeers ( -- Name: import_dialpeers_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_dialpeers_id_seq +CREATE SEQUENCE data_import.import_dialpeers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27470,14 +27423,14 @@ CREATE SEQUENCE import_dialpeers_id_seq -- Name: import_dialpeers_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_dialpeers_id_seq OWNED BY import_dialpeers.id; +ALTER SEQUENCE data_import.import_dialpeers_id_seq OWNED BY data_import.import_dialpeers.id; -- -- Name: import_disconnect_policies; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_disconnect_policies ( +CREATE TABLE data_import.import_disconnect_policies ( id bigint NOT NULL, o_id integer, name character varying, @@ -27489,7 +27442,7 @@ CREATE TABLE import_disconnect_policies ( -- Name: import_disconnect_policies_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_disconnect_policies_id_seq +CREATE SEQUENCE data_import.import_disconnect_policies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27501,14 +27454,14 @@ CREATE SEQUENCE import_disconnect_policies_id_seq -- Name: import_disconnect_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_disconnect_policies_id_seq OWNED BY import_disconnect_policies.id; +ALTER SEQUENCE data_import.import_disconnect_policies_id_seq OWNED BY data_import.import_disconnect_policies.id; -- -- Name: import_gateway_groups; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_gateway_groups ( +CREATE TABLE data_import.import_gateway_groups ( id bigint NOT NULL, o_id integer, name character varying, @@ -27523,7 +27476,7 @@ CREATE TABLE import_gateway_groups ( -- Name: import_gateway_groups_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_gateway_groups_id_seq +CREATE SEQUENCE data_import.import_gateway_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27535,14 +27488,14 @@ CREATE SEQUENCE import_gateway_groups_id_seq -- Name: import_gateway_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_gateway_groups_id_seq OWNED BY import_gateway_groups.id; +ALTER SEQUENCE data_import.import_gateway_groups_id_seq OWNED BY data_import.import_gateway_groups.id; -- -- Name: import_gateways; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_gateways ( +CREATE TABLE data_import.import_gateways ( host character varying, port integer, src_rewrite_rule character varying, @@ -27673,7 +27626,7 @@ CREATE TABLE import_gateways ( -- Name: import_gateways_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_gateways_id_seq +CREATE SEQUENCE data_import.import_gateways_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27685,7 +27638,7 @@ CREATE SEQUENCE import_gateways_id_seq -- Name: import_gateways_id_seq1; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_gateways_id_seq1 +CREATE SEQUENCE data_import.import_gateways_id_seq1 START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27697,14 +27650,14 @@ CREATE SEQUENCE import_gateways_id_seq1 -- Name: import_gateways_id_seq1; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_gateways_id_seq1 OWNED BY import_gateways.id; +ALTER SEQUENCE data_import.import_gateways_id_seq1 OWNED BY data_import.import_gateways.id; -- -- Name: import_numberlist_items; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_numberlist_items ( +CREATE TABLE data_import.import_numberlist_items ( id integer NOT NULL, o_id integer, error_string character varying, @@ -27730,7 +27683,7 @@ CREATE TABLE import_numberlist_items ( -- Name: import_numberlist_items_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_numberlist_items_id_seq +CREATE SEQUENCE data_import.import_numberlist_items_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27742,14 +27695,14 @@ CREATE SEQUENCE import_numberlist_items_id_seq -- Name: import_numberlist_items_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_numberlist_items_id_seq OWNED BY import_numberlist_items.id; +ALTER SEQUENCE data_import.import_numberlist_items_id_seq OWNED BY data_import.import_numberlist_items.id; -- -- Name: import_numberlists; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_numberlists ( +CREATE TABLE data_import.import_numberlists ( id integer NOT NULL, o_id smallint, error_string character varying, @@ -27773,7 +27726,7 @@ CREATE TABLE import_numberlists ( -- Name: import_numberlists_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_numberlists_id_seq +CREATE SEQUENCE data_import.import_numberlists_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27785,14 +27738,14 @@ CREATE SEQUENCE import_numberlists_id_seq -- Name: import_numberlists_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_numberlists_id_seq OWNED BY import_numberlists.id; +ALTER SEQUENCE data_import.import_numberlists_id_seq OWNED BY data_import.import_numberlists.id; -- -- Name: import_rateplans; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_rateplans ( +CREATE TABLE data_import.import_rateplans ( id bigint NOT NULL, o_id integer, name character varying, @@ -27806,7 +27759,7 @@ CREATE TABLE import_rateplans ( -- Name: import_rateplans_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_rateplans_id_seq +CREATE SEQUENCE data_import.import_rateplans_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27818,14 +27771,14 @@ CREATE SEQUENCE import_rateplans_id_seq -- Name: import_rateplans_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_rateplans_id_seq OWNED BY import_rateplans.id; +ALTER SEQUENCE data_import.import_rateplans_id_seq OWNED BY data_import.import_rateplans.id; -- -- Name: import_registrations; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_registrations ( +CREATE TABLE data_import.import_registrations ( id bigint NOT NULL, o_id integer, name character varying, @@ -27857,7 +27810,7 @@ CREATE TABLE import_registrations ( -- Name: import_registrations_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_registrations_id_seq +CREATE SEQUENCE data_import.import_registrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27869,14 +27822,14 @@ CREATE SEQUENCE import_registrations_id_seq -- Name: import_registrations_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_registrations_id_seq OWNED BY import_registrations.id; +ALTER SEQUENCE data_import.import_registrations_id_seq OWNED BY data_import.import_registrations.id; -- -- Name: import_routing_groups; Type: TABLE; Schema: data_import; Owner: -; Tablespace: -- -CREATE TABLE import_routing_groups ( +CREATE TABLE data_import.import_routing_groups ( id bigint NOT NULL, o_id integer, name character varying, @@ -27892,7 +27845,7 @@ CREATE TABLE import_routing_groups ( -- Name: import_routing_groups_id_seq; Type: SEQUENCE; Schema: data_import; Owner: - -- -CREATE SEQUENCE import_routing_groups_id_seq +CREATE SEQUENCE data_import.import_routing_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27904,16 +27857,14 @@ CREATE SEQUENCE import_routing_groups_id_seq -- Name: import_routing_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: data_import; Owner: - -- -ALTER SEQUENCE import_routing_groups_id_seq OWNED BY import_routing_groups.id; +ALTER SEQUENCE data_import.import_routing_groups_id_seq OWNED BY data_import.import_routing_groups.id; -SET search_path = gui, pg_catalog; - -- -- Name: active_admin_comments; Type: TABLE; Schema: gui; Owner: -; Tablespace: -- -CREATE TABLE active_admin_comments ( +CREATE TABLE gui.active_admin_comments ( id integer NOT NULL, resource_id character varying(255) NOT NULL, resource_type character varying(255) NOT NULL, @@ -27930,7 +27881,7 @@ CREATE TABLE active_admin_comments ( -- Name: admin_notes_id_seq; Type: SEQUENCE; Schema: gui; Owner: - -- -CREATE SEQUENCE admin_notes_id_seq +CREATE SEQUENCE gui.admin_notes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27942,14 +27893,14 @@ CREATE SEQUENCE admin_notes_id_seq -- Name: admin_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: gui; Owner: - -- -ALTER SEQUENCE admin_notes_id_seq OWNED BY active_admin_comments.id; +ALTER SEQUENCE gui.admin_notes_id_seq OWNED BY gui.active_admin_comments.id; -- -- Name: admin_users; Type: TABLE; Schema: gui; Owner: -; Tablespace: -- -CREATE TABLE admin_users ( +CREATE TABLE gui.admin_users ( id integer NOT NULL, encrypted_password character varying(255) DEFAULT ''::character varying NOT NULL, reset_password_token character varying(255), @@ -27977,7 +27928,7 @@ CREATE TABLE admin_users ( -- Name: admin_users_id_seq; Type: SEQUENCE; Schema: gui; Owner: - -- -CREATE SEQUENCE admin_users_id_seq +CREATE SEQUENCE gui.admin_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -27989,14 +27940,14 @@ CREATE SEQUENCE admin_users_id_seq -- Name: admin_users_id_seq; Type: SEQUENCE OWNED BY; Schema: gui; Owner: - -- -ALTER SEQUENCE admin_users_id_seq OWNED BY admin_users.id; +ALTER SEQUENCE gui.admin_users_id_seq OWNED BY gui.admin_users.id; -- -- Name: background_threads; Type: TABLE; Schema: gui; Owner: -; Tablespace: -- -CREATE TABLE background_threads ( +CREATE TABLE gui.background_threads ( id integer NOT NULL, name character varying, num integer, @@ -28012,7 +27963,7 @@ CREATE TABLE background_threads ( -- Name: background_threads_id_seq; Type: SEQUENCE; Schema: gui; Owner: - -- -CREATE SEQUENCE background_threads_id_seq +CREATE SEQUENCE gui.background_threads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28024,14 +27975,14 @@ CREATE SEQUENCE background_threads_id_seq -- Name: background_threads_id_seq; Type: SEQUENCE OWNED BY; Schema: gui; Owner: - -- -ALTER SEQUENCE background_threads_id_seq OWNED BY background_threads.id; +ALTER SEQUENCE gui.background_threads_id_seq OWNED BY gui.background_threads.id; -- -- Name: sessions; Type: TABLE; Schema: gui; Owner: -; Tablespace: -- -CREATE TABLE sessions ( +CREATE TABLE gui.sessions ( id integer NOT NULL, session_id character varying(255) NOT NULL, data text, @@ -28044,7 +27995,7 @@ CREATE TABLE sessions ( -- Name: sessions_id_seq; Type: SEQUENCE; Schema: gui; Owner: - -- -CREATE SEQUENCE sessions_id_seq +CREATE SEQUENCE gui.sessions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28056,14 +28007,14 @@ CREATE SEQUENCE sessions_id_seq -- Name: sessions_id_seq; Type: SEQUENCE OWNED BY; Schema: gui; Owner: - -- -ALTER SEQUENCE sessions_id_seq OWNED BY sessions.id; +ALTER SEQUENCE gui.sessions_id_seq OWNED BY gui.sessions.id; -- -- Name: versions; Type: TABLE; Schema: gui; Owner: -; Tablespace: -- -CREATE TABLE versions ( +CREATE TABLE gui.versions ( id integer NOT NULL, item_type character varying(255) NOT NULL, item_id integer NOT NULL, @@ -28081,7 +28032,7 @@ CREATE TABLE versions ( -- Name: versions_id_seq; Type: SEQUENCE; Schema: gui; Owner: - -- -CREATE SEQUENCE versions_id_seq +CREATE SEQUENCE gui.versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28093,16 +28044,14 @@ CREATE SEQUENCE versions_id_seq -- Name: versions_id_seq; Type: SEQUENCE OWNED BY; Schema: gui; Owner: - -- -ALTER SEQUENCE versions_id_seq OWNED BY versions.id; - +ALTER SEQUENCE gui.versions_id_seq OWNED BY gui.versions.id; -SET search_path = logs, pg_catalog; -- -- Name: api_requests; Type: TABLE; Schema: logs; Owner: -; Tablespace: -- -CREATE TABLE api_requests ( +CREATE TABLE logs.api_requests ( id bigint NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, path character varying, @@ -28124,7 +28073,7 @@ CREATE TABLE api_requests ( -- Name: api_requests_id_seq; Type: SEQUENCE; Schema: logs; Owner: - -- -CREATE SEQUENCE api_requests_id_seq +CREATE SEQUENCE logs.api_requests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28136,14 +28085,14 @@ CREATE SEQUENCE api_requests_id_seq -- Name: api_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: logs; Owner: - -- -ALTER SEQUENCE api_requests_id_seq OWNED BY api_requests.id; +ALTER SEQUENCE logs.api_requests_id_seq OWNED BY logs.api_requests.id; -- -- Name: balance_notifications; Type: TABLE; Schema: logs; Owner: -; Tablespace: -- -CREATE TABLE balance_notifications ( +CREATE TABLE logs.balance_notifications ( id bigint NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, is_processed boolean DEFAULT false NOT NULL, @@ -28158,7 +28107,7 @@ CREATE TABLE balance_notifications ( -- Name: balance_notifications_id_seq; Type: SEQUENCE; Schema: logs; Owner: - -- -CREATE SEQUENCE balance_notifications_id_seq +CREATE SEQUENCE logs.balance_notifications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28170,14 +28119,14 @@ CREATE SEQUENCE balance_notifications_id_seq -- Name: balance_notifications_id_seq; Type: SEQUENCE OWNED BY; Schema: logs; Owner: - -- -ALTER SEQUENCE balance_notifications_id_seq OWNED BY balance_notifications.id; +ALTER SEQUENCE logs.balance_notifications_id_seq OWNED BY logs.balance_notifications.id; -- -- Name: logic_log; Type: TABLE; Schema: logs; Owner: -; Tablespace: -- -CREATE TABLE logic_log ( +CREATE TABLE logs.logic_log ( id bigint NOT NULL, source character varying NOT NULL, level integer NOT NULL, @@ -28191,7 +28140,7 @@ CREATE TABLE logic_log ( -- Name: logic_log_id_seq; Type: SEQUENCE; Schema: logs; Owner: - -- -CREATE SEQUENCE logic_log_id_seq +CREATE SEQUENCE logs.logic_log_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28203,16 +28152,14 @@ CREATE SEQUENCE logic_log_id_seq -- Name: logic_log_id_seq; Type: SEQUENCE OWNED BY; Schema: logs; Owner: - -- -ALTER SEQUENCE logic_log_id_seq OWNED BY logic_log.id; +ALTER SEQUENCE logs.logic_log_id_seq OWNED BY logs.logic_log.id; -SET search_path = notifications, pg_catalog; - -- -- Name: alerts; Type: TABLE; Schema: notifications; Owner: -; Tablespace: -- -CREATE TABLE alerts ( +CREATE TABLE notifications.alerts ( id integer NOT NULL, event character varying NOT NULL, send_to integer[] @@ -28223,7 +28170,7 @@ CREATE TABLE alerts ( -- Name: alerts_id_seq; Type: SEQUENCE; Schema: notifications; Owner: - -- -CREATE SEQUENCE alerts_id_seq +CREATE SEQUENCE notifications.alerts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28235,14 +28182,14 @@ CREATE SEQUENCE alerts_id_seq -- Name: alerts_id_seq; Type: SEQUENCE OWNED BY; Schema: notifications; Owner: - -- -ALTER SEQUENCE alerts_id_seq OWNED BY alerts.id; +ALTER SEQUENCE notifications.alerts_id_seq OWNED BY notifications.alerts.id; -- -- Name: attachments; Type: TABLE; Schema: notifications; Owner: -; Tablespace: -- -CREATE TABLE attachments ( +CREATE TABLE notifications.attachments ( id integer NOT NULL, filename character varying NOT NULL, data bytea @@ -28253,7 +28200,7 @@ CREATE TABLE attachments ( -- Name: attachments_id_seq; Type: SEQUENCE; Schema: notifications; Owner: - -- -CREATE SEQUENCE attachments_id_seq +CREATE SEQUENCE notifications.attachments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28265,14 +28212,14 @@ CREATE SEQUENCE attachments_id_seq -- Name: attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: notifications; Owner: - -- -ALTER SEQUENCE attachments_id_seq OWNED BY attachments.id; +ALTER SEQUENCE notifications.attachments_id_seq OWNED BY notifications.attachments.id; -- -- Name: contacts; Type: TABLE; Schema: notifications; Owner: -; Tablespace: -- -CREATE TABLE contacts ( +CREATE TABLE notifications.contacts ( id integer NOT NULL, contractor_id integer, admin_user_id integer, @@ -28287,7 +28234,7 @@ CREATE TABLE contacts ( -- Name: contacts_id_seq; Type: SEQUENCE; Schema: notifications; Owner: - -- -CREATE SEQUENCE contacts_id_seq +CREATE SEQUENCE notifications.contacts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28299,14 +28246,14 @@ CREATE SEQUENCE contacts_id_seq -- Name: contacts_id_seq; Type: SEQUENCE OWNED BY; Schema: notifications; Owner: - -- -ALTER SEQUENCE contacts_id_seq OWNED BY contacts.id; +ALTER SEQUENCE notifications.contacts_id_seq OWNED BY notifications.contacts.id; -- -- Name: email_logs; Type: TABLE; Schema: notifications; Owner: -; Tablespace: -- -CREATE TABLE email_logs ( +CREATE TABLE notifications.email_logs ( id bigint NOT NULL, batch_id bigint, created_at timestamp with time zone, @@ -28326,7 +28273,7 @@ CREATE TABLE email_logs ( -- Name: email_log_id_seq; Type: SEQUENCE; Schema: notifications; Owner: - -- -CREATE SEQUENCE email_log_id_seq +CREATE SEQUENCE notifications.email_log_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28338,16 +28285,14 @@ CREATE SEQUENCE email_log_id_seq -- Name: email_log_id_seq; Type: SEQUENCE OWNED BY; Schema: notifications; Owner: - -- -ALTER SEQUENCE email_log_id_seq OWNED BY email_logs.id; - +ALTER SEQUENCE notifications.email_log_id_seq OWNED BY notifications.email_logs.id; -SET search_path = public, pg_catalog; -- -- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: -; Tablespace: -- -CREATE TABLE ar_internal_metadata ( +CREATE TABLE public.ar_internal_metadata ( key character varying NOT NULL, value character varying, created_at timestamp without time zone NOT NULL, @@ -28359,7 +28304,7 @@ CREATE TABLE ar_internal_metadata ( -- Name: contractors; Type: TABLE; Schema: public; Owner: -; Tablespace: -- -CREATE TABLE contractors ( +CREATE TABLE public.contractors ( id integer NOT NULL, name character varying, enabled boolean, @@ -28377,7 +28322,7 @@ CREATE TABLE contractors ( -- Name: contractors_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- -CREATE SEQUENCE contractors_id_seq +CREATE SEQUENCE public.contractors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28389,14 +28334,14 @@ CREATE SEQUENCE contractors_id_seq -- Name: contractors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- -ALTER SEQUENCE contractors_id_seq OWNED BY contractors.id; +ALTER SEQUENCE public.contractors_id_seq OWNED BY public.contractors.id; -- -- Name: new_table_0; Type: TABLE; Schema: public; Owner: -; Tablespace: -- -CREATE TABLE new_table_0 ( +CREATE TABLE public.new_table_0 ( id integer NOT NULL ); @@ -28405,7 +28350,7 @@ CREATE TABLE new_table_0 ( -- Name: new_table_0_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- -CREATE SEQUENCE new_table_0_id_seq +CREATE SEQUENCE public.new_table_0_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28417,25 +28362,23 @@ CREATE SEQUENCE new_table_0_id_seq -- Name: new_table_0_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- -ALTER SEQUENCE new_table_0_id_seq OWNED BY new_table_0.id; +ALTER SEQUENCE public.new_table_0_id_seq OWNED BY public.new_table_0.id; -- -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace: -- -CREATE TABLE schema_migrations ( +CREATE TABLE public.schema_migrations ( version character varying NOT NULL ); -SET search_path = runtime_stats, pg_catalog; - -- -- Name: dialpeers_stats; Type: TABLE; Schema: runtime_stats; Owner: -; Tablespace: -- -CREATE UNLOGGED TABLE dialpeers_stats ( +CREATE UNLOGGED TABLE runtime_stats.dialpeers_stats ( dialpeer_id bigint NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, updated_at timestamp with time zone DEFAULT now() NOT NULL, @@ -28455,7 +28398,7 @@ CREATE UNLOGGED TABLE dialpeers_stats ( -- Name: dialpeers_stats_id_seq; Type: SEQUENCE; Schema: runtime_stats; Owner: - -- -CREATE SEQUENCE dialpeers_stats_id_seq +CREATE SEQUENCE runtime_stats.dialpeers_stats_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28467,14 +28410,14 @@ CREATE SEQUENCE dialpeers_stats_id_seq -- Name: dialpeers_stats_id_seq; Type: SEQUENCE OWNED BY; Schema: runtime_stats; Owner: - -- -ALTER SEQUENCE dialpeers_stats_id_seq OWNED BY dialpeers_stats.id; +ALTER SEQUENCE runtime_stats.dialpeers_stats_id_seq OWNED BY runtime_stats.dialpeers_stats.id; -- -- Name: gateways_stats; Type: TABLE; Schema: runtime_stats; Owner: -; Tablespace: -- -CREATE UNLOGGED TABLE gateways_stats ( +CREATE UNLOGGED TABLE runtime_stats.gateways_stats ( id integer NOT NULL, gateway_id integer NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, @@ -28494,7 +28437,7 @@ CREATE UNLOGGED TABLE gateways_stats ( -- Name: gateways_stats_id_seq; Type: SEQUENCE; Schema: runtime_stats; Owner: - -- -CREATE SEQUENCE gateways_stats_id_seq +CREATE SEQUENCE runtime_stats.gateways_stats_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28506,16 +28449,14 @@ CREATE SEQUENCE gateways_stats_id_seq -- Name: gateways_stats_id_seq; Type: SEQUENCE OWNED BY; Schema: runtime_stats; Owner: - -- -ALTER SEQUENCE gateways_stats_id_seq OWNED BY gateways_stats.id; - +ALTER SEQUENCE runtime_stats.gateways_stats_id_seq OWNED BY runtime_stats.gateways_stats.id; -SET search_path = switch13, pg_catalog; -- -- Name: events_id_seq; Type: SEQUENCE; Schema: switch13; Owner: - -- -CREATE SEQUENCE events_id_seq +CREATE SEQUENCE switch13.events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28527,7 +28468,7 @@ CREATE SEQUENCE events_id_seq -- Name: resource_action; Type: TABLE; Schema: switch13; Owner: -; Tablespace: -- -CREATE TABLE resource_action ( +CREATE TABLE switch13.resource_action ( id integer NOT NULL, name character varying NOT NULL ); @@ -28537,7 +28478,7 @@ CREATE TABLE resource_action ( -- Name: resource_type_id_seq; Type: SEQUENCE; Schema: switch13; Owner: - -- -CREATE SEQUENCE resource_type_id_seq +CREATE SEQUENCE switch13.resource_type_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28549,14 +28490,14 @@ CREATE SEQUENCE resource_type_id_seq -- Name: resource_type_id_seq; Type: SEQUENCE OWNED BY; Schema: switch13; Owner: - -- -ALTER SEQUENCE resource_type_id_seq OWNED BY resource_type.id; +ALTER SEQUENCE switch13.resource_type_id_seq OWNED BY switch13.resource_type.id; -- -- Name: switch_in_interface_id_seq; Type: SEQUENCE; Schema: switch13; Owner: - -- -CREATE SEQUENCE switch_in_interface_id_seq +CREATE SEQUENCE switch13.switch_in_interface_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28568,7 +28509,7 @@ CREATE SEQUENCE switch_in_interface_id_seq -- Name: switch_interface_out; Type: TABLE; Schema: switch13; Owner: -; Tablespace: -- -CREATE TABLE switch_interface_out ( +CREATE TABLE switch13.switch_interface_out ( id integer NOT NULL, name character varying, type character varying, @@ -28582,7 +28523,7 @@ CREATE TABLE switch_interface_out ( -- Name: switch_interface_id_seq; Type: SEQUENCE; Schema: switch13; Owner: - -- -CREATE SEQUENCE switch_interface_id_seq +CREATE SEQUENCE switch13.switch_interface_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28594,15 +28535,15 @@ CREATE SEQUENCE switch_interface_id_seq -- Name: switch_interface_id_seq; Type: SEQUENCE OWNED BY; Schema: switch13; Owner: - -- -ALTER SEQUENCE switch_interface_id_seq OWNED BY switch_interface_out.id; +ALTER SEQUENCE switch13.switch_interface_id_seq OWNED BY switch13.switch_interface_out.id; -- -- Name: switch_interface_in; Type: TABLE; Schema: switch13; Owner: -; Tablespace: -- -CREATE TABLE switch_interface_in ( - id integer DEFAULT nextval('switch_in_interface_id_seq'::regclass) NOT NULL, +CREATE TABLE switch13.switch_interface_in ( + id integer DEFAULT nextval('switch13.switch_in_interface_id_seq'::regclass) NOT NULL, name character varying, type character varying, rank integer NOT NULL, @@ -28616,7 +28557,7 @@ CREATE TABLE switch_interface_in ( -- Name: trusted_headers; Type: TABLE; Schema: switch13; Owner: -; Tablespace: -- -CREATE TABLE trusted_headers ( +CREATE TABLE switch13.trusted_headers ( id integer NOT NULL, name character varying, rank integer NOT NULL @@ -28627,7 +28568,7 @@ CREATE TABLE trusted_headers ( -- Name: trusted_headers_id_seq; Type: SEQUENCE; Schema: switch13; Owner: - -- -CREATE SEQUENCE trusted_headers_id_seq +CREATE SEQUENCE switch13.trusted_headers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28639,16 +28580,14 @@ CREATE SEQUENCE trusted_headers_id_seq -- Name: trusted_headers_id_seq; Type: SEQUENCE OWNED BY; Schema: switch13; Owner: - -- -ALTER SEQUENCE trusted_headers_id_seq OWNED BY trusted_headers.id; - +ALTER SEQUENCE switch13.trusted_headers_id_seq OWNED BY switch13.trusted_headers.id; -SET search_path = switch14, pg_catalog; -- -- Name: events_id_seq; Type: SEQUENCE; Schema: switch14; Owner: - -- -CREATE SEQUENCE events_id_seq +CREATE SEQUENCE switch14.events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28660,7 +28599,7 @@ CREATE SEQUENCE events_id_seq -- Name: resource_action; Type: TABLE; Schema: switch14; Owner: -; Tablespace: -- -CREATE TABLE resource_action ( +CREATE TABLE switch14.resource_action ( id integer NOT NULL, name character varying NOT NULL ); @@ -28670,7 +28609,7 @@ CREATE TABLE resource_action ( -- Name: resource_type_id_seq; Type: SEQUENCE; Schema: switch14; Owner: - -- -CREATE SEQUENCE resource_type_id_seq +CREATE SEQUENCE switch14.resource_type_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28682,14 +28621,14 @@ CREATE SEQUENCE resource_type_id_seq -- Name: resource_type_id_seq; Type: SEQUENCE OWNED BY; Schema: switch14; Owner: - -- -ALTER SEQUENCE resource_type_id_seq OWNED BY resource_type.id; +ALTER SEQUENCE switch14.resource_type_id_seq OWNED BY switch14.resource_type.id; -- -- Name: switch_in_interface_id_seq; Type: SEQUENCE; Schema: switch14; Owner: - -- -CREATE SEQUENCE switch_in_interface_id_seq +CREATE SEQUENCE switch14.switch_in_interface_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28701,7 +28640,7 @@ CREATE SEQUENCE switch_in_interface_id_seq -- Name: switch_interface_out; Type: TABLE; Schema: switch14; Owner: -; Tablespace: -- -CREATE TABLE switch_interface_out ( +CREATE TABLE switch14.switch_interface_out ( id integer NOT NULL, name character varying, type character varying, @@ -28715,7 +28654,7 @@ CREATE TABLE switch_interface_out ( -- Name: switch_interface_id_seq; Type: SEQUENCE; Schema: switch14; Owner: - -- -CREATE SEQUENCE switch_interface_id_seq +CREATE SEQUENCE switch14.switch_interface_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28727,15 +28666,15 @@ CREATE SEQUENCE switch_interface_id_seq -- Name: switch_interface_id_seq; Type: SEQUENCE OWNED BY; Schema: switch14; Owner: - -- -ALTER SEQUENCE switch_interface_id_seq OWNED BY switch_interface_out.id; +ALTER SEQUENCE switch14.switch_interface_id_seq OWNED BY switch14.switch_interface_out.id; -- -- Name: switch_interface_in; Type: TABLE; Schema: switch14; Owner: -; Tablespace: -- -CREATE TABLE switch_interface_in ( - id integer DEFAULT nextval('switch_in_interface_id_seq'::regclass) NOT NULL, +CREATE TABLE switch14.switch_interface_in ( + id integer DEFAULT nextval('switch14.switch_in_interface_id_seq'::regclass) NOT NULL, name character varying, type character varying, rank integer NOT NULL, @@ -28749,7 +28688,7 @@ CREATE TABLE switch_interface_in ( -- Name: trusted_headers; Type: TABLE; Schema: switch14; Owner: -; Tablespace: -- -CREATE TABLE trusted_headers ( +CREATE TABLE switch14.trusted_headers ( id integer NOT NULL, name character varying, rank integer NOT NULL @@ -28760,7 +28699,7 @@ CREATE TABLE trusted_headers ( -- Name: trusted_headers_id_seq; Type: SEQUENCE; Schema: switch14; Owner: - -- -CREATE SEQUENCE trusted_headers_id_seq +CREATE SEQUENCE switch14.trusted_headers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28772,16 +28711,14 @@ CREATE SEQUENCE trusted_headers_id_seq -- Name: trusted_headers_id_seq; Type: SEQUENCE OWNED BY; Schema: switch14; Owner: - -- -ALTER SEQUENCE trusted_headers_id_seq OWNED BY trusted_headers.id; +ALTER SEQUENCE switch14.trusted_headers_id_seq OWNED BY switch14.trusted_headers.id; -SET search_path = switch15, pg_catalog; - -- -- Name: events_id_seq; Type: SEQUENCE; Schema: switch15; Owner: - -- -CREATE SEQUENCE events_id_seq +CREATE SEQUENCE switch15.events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28793,7 +28730,7 @@ CREATE SEQUENCE events_id_seq -- Name: resource_action; Type: TABLE; Schema: switch15; Owner: -; Tablespace: -- -CREATE TABLE resource_action ( +CREATE TABLE switch15.resource_action ( id integer NOT NULL, name character varying NOT NULL ); @@ -28803,7 +28740,7 @@ CREATE TABLE resource_action ( -- Name: resource_type_id_seq; Type: SEQUENCE; Schema: switch15; Owner: - -- -CREATE SEQUENCE resource_type_id_seq +CREATE SEQUENCE switch15.resource_type_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28815,14 +28752,14 @@ CREATE SEQUENCE resource_type_id_seq -- Name: resource_type_id_seq; Type: SEQUENCE OWNED BY; Schema: switch15; Owner: - -- -ALTER SEQUENCE resource_type_id_seq OWNED BY resource_type.id; +ALTER SEQUENCE switch15.resource_type_id_seq OWNED BY switch15.resource_type.id; -- -- Name: switch_in_interface_id_seq; Type: SEQUENCE; Schema: switch15; Owner: - -- -CREATE SEQUENCE switch_in_interface_id_seq +CREATE SEQUENCE switch15.switch_in_interface_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28834,7 +28771,7 @@ CREATE SEQUENCE switch_in_interface_id_seq -- Name: switch_interface_out; Type: TABLE; Schema: switch15; Owner: -; Tablespace: -- -CREATE TABLE switch_interface_out ( +CREATE TABLE switch15.switch_interface_out ( id integer NOT NULL, name character varying, type character varying, @@ -28848,7 +28785,7 @@ CREATE TABLE switch_interface_out ( -- Name: switch_interface_id_seq; Type: SEQUENCE; Schema: switch15; Owner: - -- -CREATE SEQUENCE switch_interface_id_seq +CREATE SEQUENCE switch15.switch_interface_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28860,15 +28797,15 @@ CREATE SEQUENCE switch_interface_id_seq -- Name: switch_interface_id_seq; Type: SEQUENCE OWNED BY; Schema: switch15; Owner: - -- -ALTER SEQUENCE switch_interface_id_seq OWNED BY switch_interface_out.id; +ALTER SEQUENCE switch15.switch_interface_id_seq OWNED BY switch15.switch_interface_out.id; -- -- Name: switch_interface_in; Type: TABLE; Schema: switch15; Owner: -; Tablespace: -- -CREATE TABLE switch_interface_in ( - id integer DEFAULT nextval('switch_in_interface_id_seq'::regclass) NOT NULL, +CREATE TABLE switch15.switch_interface_in ( + id integer DEFAULT nextval('switch15.switch_in_interface_id_seq'::regclass) NOT NULL, name character varying, type character varying, rank integer NOT NULL, @@ -28882,7 +28819,7 @@ CREATE TABLE switch_interface_in ( -- Name: trusted_headers; Type: TABLE; Schema: switch15; Owner: -; Tablespace: -- -CREATE TABLE trusted_headers ( +CREATE TABLE switch15.trusted_headers ( id integer NOT NULL, name character varying, rank integer NOT NULL @@ -28893,7 +28830,7 @@ CREATE TABLE trusted_headers ( -- Name: trusted_headers_id_seq; Type: SEQUENCE; Schema: switch15; Owner: - -- -CREATE SEQUENCE trusted_headers_id_seq +CREATE SEQUENCE switch15.trusted_headers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28905,16 +28842,14 @@ CREATE SEQUENCE trusted_headers_id_seq -- Name: trusted_headers_id_seq; Type: SEQUENCE OWNED BY; Schema: switch15; Owner: - -- -ALTER SEQUENCE trusted_headers_id_seq OWNED BY trusted_headers.id; - +ALTER SEQUENCE switch15.trusted_headers_id_seq OWNED BY switch15.trusted_headers.id; -SET search_path = switch16, pg_catalog; -- -- Name: events_id_seq; Type: SEQUENCE; Schema: switch16; Owner: - -- -CREATE SEQUENCE events_id_seq +CREATE SEQUENCE switch16.events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28926,7 +28861,7 @@ CREATE SEQUENCE events_id_seq -- Name: resource_action; Type: TABLE; Schema: switch16; Owner: -; Tablespace: -- -CREATE TABLE resource_action ( +CREATE TABLE switch16.resource_action ( id integer NOT NULL, name character varying NOT NULL ); @@ -28936,7 +28871,7 @@ CREATE TABLE resource_action ( -- Name: resource_type_id_seq; Type: SEQUENCE; Schema: switch16; Owner: - -- -CREATE SEQUENCE resource_type_id_seq +CREATE SEQUENCE switch16.resource_type_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28948,14 +28883,14 @@ CREATE SEQUENCE resource_type_id_seq -- Name: resource_type_id_seq; Type: SEQUENCE OWNED BY; Schema: switch16; Owner: - -- -ALTER SEQUENCE resource_type_id_seq OWNED BY resource_type.id; +ALTER SEQUENCE switch16.resource_type_id_seq OWNED BY switch16.resource_type.id; -- -- Name: switch_in_interface_id_seq; Type: SEQUENCE; Schema: switch16; Owner: - -- -CREATE SEQUENCE switch_in_interface_id_seq +CREATE SEQUENCE switch16.switch_in_interface_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28967,7 +28902,7 @@ CREATE SEQUENCE switch_in_interface_id_seq -- Name: switch_interface_out; Type: TABLE; Schema: switch16; Owner: -; Tablespace: -- -CREATE TABLE switch_interface_out ( +CREATE TABLE switch16.switch_interface_out ( id integer NOT NULL, name character varying, type character varying, @@ -28981,7 +28916,7 @@ CREATE TABLE switch_interface_out ( -- Name: switch_interface_id_seq; Type: SEQUENCE; Schema: switch16; Owner: - -- -CREATE SEQUENCE switch_interface_id_seq +CREATE SEQUENCE switch16.switch_interface_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -28993,15 +28928,15 @@ CREATE SEQUENCE switch_interface_id_seq -- Name: switch_interface_id_seq; Type: SEQUENCE OWNED BY; Schema: switch16; Owner: - -- -ALTER SEQUENCE switch_interface_id_seq OWNED BY switch_interface_out.id; +ALTER SEQUENCE switch16.switch_interface_id_seq OWNED BY switch16.switch_interface_out.id; -- -- Name: switch_interface_in; Type: TABLE; Schema: switch16; Owner: -; Tablespace: -- -CREATE TABLE switch_interface_in ( - id integer DEFAULT nextval('switch_in_interface_id_seq'::regclass) NOT NULL, +CREATE TABLE switch16.switch_interface_in ( + id integer DEFAULT nextval('switch16.switch_in_interface_id_seq'::regclass) NOT NULL, name character varying, type character varying, rank integer NOT NULL, @@ -29015,7 +28950,7 @@ CREATE TABLE switch_interface_in ( -- Name: trusted_headers; Type: TABLE; Schema: switch16; Owner: -; Tablespace: -- -CREATE TABLE trusted_headers ( +CREATE TABLE switch16.trusted_headers ( id integer NOT NULL, name character varying, rank integer NOT NULL @@ -29026,7 +28961,7 @@ CREATE TABLE trusted_headers ( -- Name: trusted_headers_id_seq; Type: SEQUENCE; Schema: switch16; Owner: - -- -CREATE SEQUENCE trusted_headers_id_seq +CREATE SEQUENCE switch16.trusted_headers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29038,16 +28973,14 @@ CREATE SEQUENCE trusted_headers_id_seq -- Name: trusted_headers_id_seq; Type: SEQUENCE OWNED BY; Schema: switch16; Owner: - -- -ALTER SEQUENCE trusted_headers_id_seq OWNED BY trusted_headers.id; +ALTER SEQUENCE switch16.trusted_headers_id_seq OWNED BY switch16.trusted_headers.id; -SET search_path = sys, pg_catalog; - -- -- Name: active_currencies; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE active_currencies ( +CREATE TABLE sys.active_currencies ( id integer NOT NULL, currency_id smallint NOT NULL, is_base boolean DEFAULT false NOT NULL, @@ -29063,7 +28996,7 @@ CREATE TABLE active_currencies ( -- Name: active_currencies_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE active_currencies_id_seq +CREATE SEQUENCE sys.active_currencies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29075,14 +29008,14 @@ CREATE SEQUENCE active_currencies_id_seq -- Name: active_currencies_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE active_currencies_id_seq OWNED BY active_currencies.id; +ALTER SEQUENCE sys.active_currencies_id_seq OWNED BY sys.active_currencies.id; -- -- Name: api_access; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE api_access ( +CREATE TABLE sys.api_access ( id integer NOT NULL, customer_id integer NOT NULL, login character varying NOT NULL, @@ -29096,7 +29029,7 @@ CREATE TABLE api_access ( -- Name: api_access_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE api_access_id_seq +CREATE SEQUENCE sys.api_access_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29108,14 +29041,14 @@ CREATE SEQUENCE api_access_id_seq -- Name: api_access_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE api_access_id_seq OWNED BY api_access.id; +ALTER SEQUENCE sys.api_access_id_seq OWNED BY sys.api_access.id; -- -- Name: api_log_config; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE api_log_config ( +CREATE TABLE sys.api_log_config ( id integer NOT NULL, controller character varying NOT NULL, debug boolean DEFAULT false NOT NULL @@ -29126,7 +29059,7 @@ CREATE TABLE api_log_config ( -- Name: api_log_config_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE api_log_config_id_seq +CREATE SEQUENCE sys.api_log_config_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29138,14 +29071,14 @@ CREATE SEQUENCE api_log_config_id_seq -- Name: api_log_config_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE api_log_config_id_seq OWNED BY api_log_config.id; +ALTER SEQUENCE sys.api_log_config_id_seq OWNED BY sys.api_log_config.id; -- -- Name: cdr_exports; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE cdr_exports ( +CREATE TABLE sys.cdr_exports ( id integer NOT NULL, status character varying NOT NULL, fields character varying[] DEFAULT '{}'::character varying[] NOT NULL, @@ -29162,7 +29095,7 @@ CREATE TABLE cdr_exports ( -- Name: cdr_exports_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE cdr_exports_id_seq +CREATE SEQUENCE sys.cdr_exports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29174,14 +29107,14 @@ CREATE SEQUENCE cdr_exports_id_seq -- Name: cdr_exports_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE cdr_exports_id_seq OWNED BY cdr_exports.id; +ALTER SEQUENCE sys.cdr_exports_id_seq OWNED BY sys.cdr_exports.id; -- -- Name: cdr_tables; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE cdr_tables ( +CREATE TABLE sys.cdr_tables ( id integer NOT NULL, name character varying NOT NULL, readable boolean DEFAULT true NOT NULL, @@ -29195,7 +29128,7 @@ CREATE TABLE cdr_tables ( -- Name: cdrtables_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE cdrtables_id_seq +CREATE SEQUENCE sys.cdrtables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29207,14 +29140,14 @@ CREATE SEQUENCE cdrtables_id_seq -- Name: cdrtables_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE cdrtables_id_seq OWNED BY cdr_tables.id; +ALTER SEQUENCE sys.cdrtables_id_seq OWNED BY sys.cdr_tables.id; -- -- Name: countries; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE countries ( +CREATE TABLE sys.countries ( id integer NOT NULL, name character varying NOT NULL, iso2 character varying(2) NOT NULL @@ -29225,7 +29158,7 @@ CREATE TABLE countries ( -- Name: countries_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE countries_id_seq +CREATE SEQUENCE sys.countries_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29237,14 +29170,14 @@ CREATE SEQUENCE countries_id_seq -- Name: countries_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE countries_id_seq OWNED BY countries.id; +ALTER SEQUENCE sys.countries_id_seq OWNED BY sys.countries.id; -- -- Name: currencies; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE currencies ( +CREATE TABLE sys.currencies ( id smallint NOT NULL, name character varying NOT NULL, country_id integer, @@ -29257,7 +29190,7 @@ CREATE TABLE currencies ( -- Name: currencies_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE currencies_id_seq +CREATE SEQUENCE sys.currencies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29269,14 +29202,14 @@ CREATE SEQUENCE currencies_id_seq -- Name: currencies_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE currencies_id_seq OWNED BY currencies.id; +ALTER SEQUENCE sys.currencies_id_seq OWNED BY sys.currencies.id; -- -- Name: delayed_jobs; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE delayed_jobs ( +CREATE TABLE sys.delayed_jobs ( id integer NOT NULL, priority integer DEFAULT 0 NOT NULL, attempts integer DEFAULT 0 NOT NULL, @@ -29296,7 +29229,7 @@ CREATE TABLE delayed_jobs ( -- Name: delayed_jobs_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE delayed_jobs_id_seq +CREATE SEQUENCE sys.delayed_jobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29308,14 +29241,14 @@ CREATE SEQUENCE delayed_jobs_id_seq -- Name: delayed_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE delayed_jobs_id_seq OWNED BY delayed_jobs.id; +ALTER SEQUENCE sys.delayed_jobs_id_seq OWNED BY sys.delayed_jobs.id; -- -- Name: events_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE events_id_seq +CREATE SEQUENCE sys.events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29327,8 +29260,8 @@ CREATE SEQUENCE events_id_seq -- Name: events; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE events ( - id integer DEFAULT nextval('events_id_seq'::regclass) NOT NULL, +CREATE TABLE sys.events ( + id integer DEFAULT nextval('sys.events_id_seq'::regclass) NOT NULL, command character varying NOT NULL, retries integer DEFAULT 0 NOT NULL, node_id integer NOT NULL, @@ -29342,7 +29275,7 @@ CREATE TABLE events ( -- Name: guiconfig; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE guiconfig ( +CREATE TABLE sys.guiconfig ( rows_per_page character varying DEFAULT '50,100'::character varying NOT NULL, id integer NOT NULL, cdr_unload_dir character varying, @@ -29374,7 +29307,7 @@ CREATE TABLE guiconfig ( -- Name: guiconfig_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE guiconfig_id_seq +CREATE SEQUENCE sys.guiconfig_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29386,14 +29319,14 @@ CREATE SEQUENCE guiconfig_id_seq -- Name: guiconfig_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE guiconfig_id_seq OWNED BY guiconfig.id; +ALTER SEQUENCE sys.guiconfig_id_seq OWNED BY sys.guiconfig.id; -- -- Name: jobs; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE jobs ( +CREATE TABLE sys.jobs ( id integer NOT NULL, type character varying NOT NULL, description character varying, @@ -29406,7 +29339,7 @@ CREATE TABLE jobs ( -- Name: jobs_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE jobs_id_seq +CREATE SEQUENCE sys.jobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29418,14 +29351,14 @@ CREATE SEQUENCE jobs_id_seq -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE jobs_id_seq OWNED BY jobs.id; +ALTER SEQUENCE sys.jobs_id_seq OWNED BY sys.jobs.id; -- -- Name: lnp_database_drivers; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE lnp_database_drivers ( +CREATE TABLE sys.lnp_database_drivers ( id smallint NOT NULL, name character varying NOT NULL, description text @@ -29436,7 +29369,7 @@ CREATE TABLE lnp_database_drivers ( -- Name: lnp_database_drivers_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE lnp_database_drivers_id_seq +CREATE SEQUENCE sys.lnp_database_drivers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29448,14 +29381,14 @@ CREATE SEQUENCE lnp_database_drivers_id_seq -- Name: lnp_database_drivers_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE lnp_database_drivers_id_seq OWNED BY lnp_database_drivers.id; +ALTER SEQUENCE sys.lnp_database_drivers_id_seq OWNED BY sys.lnp_database_drivers.id; -- -- Name: lnp_resolvers; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE lnp_resolvers ( +CREATE TABLE sys.lnp_resolvers ( id integer NOT NULL, name character varying NOT NULL, address character varying NOT NULL, @@ -29467,7 +29400,7 @@ CREATE TABLE lnp_resolvers ( -- Name: lnp_resolvers_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE lnp_resolvers_id_seq +CREATE SEQUENCE sys.lnp_resolvers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29479,14 +29412,14 @@ CREATE SEQUENCE lnp_resolvers_id_seq -- Name: lnp_resolvers_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE lnp_resolvers_id_seq OWNED BY lnp_resolvers.id; +ALTER SEQUENCE sys.lnp_resolvers_id_seq OWNED BY sys.lnp_resolvers.id; -- -- Name: load_balancers; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE load_balancers ( +CREATE TABLE sys.load_balancers ( id smallint NOT NULL, name character varying NOT NULL, signalling_ip character varying NOT NULL @@ -29497,7 +29430,7 @@ CREATE TABLE load_balancers ( -- Name: load_balancers_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE load_balancers_id_seq +CREATE SEQUENCE sys.load_balancers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29509,14 +29442,14 @@ CREATE SEQUENCE load_balancers_id_seq -- Name: load_balancers_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE load_balancers_id_seq OWNED BY load_balancers.id; +ALTER SEQUENCE sys.load_balancers_id_seq OWNED BY sys.load_balancers.id; -- -- Name: lua_scripts; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE lua_scripts ( +CREATE TABLE sys.lua_scripts ( id integer NOT NULL, name character varying NOT NULL, source character varying NOT NULL, @@ -29529,7 +29462,7 @@ CREATE TABLE lua_scripts ( -- Name: lua_scripts_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE lua_scripts_id_seq +CREATE SEQUENCE sys.lua_scripts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29541,14 +29474,14 @@ CREATE SEQUENCE lua_scripts_id_seq -- Name: lua_scripts_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE lua_scripts_id_seq OWNED BY lua_scripts.id; +ALTER SEQUENCE sys.lua_scripts_id_seq OWNED BY sys.lua_scripts.id; -- -- Name: network_prefixes_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE network_prefixes_id_seq +CREATE SEQUENCE sys.network_prefixes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29560,14 +29493,14 @@ CREATE SEQUENCE network_prefixes_id_seq -- Name: network_prefixes_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE network_prefixes_id_seq OWNED BY network_prefixes.id; +ALTER SEQUENCE sys.network_prefixes_id_seq OWNED BY sys.network_prefixes.id; -- -- Name: networks; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE networks ( +CREATE TABLE sys.networks ( id integer NOT NULL, name character varying NOT NULL ); @@ -29577,7 +29510,7 @@ CREATE TABLE networks ( -- Name: networks_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE networks_id_seq +CREATE SEQUENCE sys.networks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29589,14 +29522,14 @@ CREATE SEQUENCE networks_id_seq -- Name: networks_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE networks_id_seq OWNED BY networks.id; +ALTER SEQUENCE sys.networks_id_seq OWNED BY sys.networks.id; -- -- Name: nodes; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE nodes ( +CREATE TABLE sys.nodes ( id integer NOT NULL, signalling_ip character varying, signalling_port integer, @@ -29610,7 +29543,7 @@ CREATE TABLE nodes ( -- Name: node_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE node_id_seq +CREATE SEQUENCE sys.node_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29622,14 +29555,14 @@ CREATE SEQUENCE node_id_seq -- Name: node_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE node_id_seq OWNED BY nodes.id; +ALTER SEQUENCE sys.node_id_seq OWNED BY sys.nodes.id; -- -- Name: pops; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE pops ( +CREATE TABLE sys.pops ( id integer NOT NULL, name character varying NOT NULL ); @@ -29639,7 +29572,7 @@ CREATE TABLE pops ( -- Name: pop_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE pop_id_seq +CREATE SEQUENCE sys.pop_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29651,14 +29584,14 @@ CREATE SEQUENCE pop_id_seq -- Name: pop_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE pop_id_seq OWNED BY pops.id; +ALTER SEQUENCE sys.pop_id_seq OWNED BY sys.pops.id; -- -- Name: sensor_levels; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE sensor_levels ( +CREATE TABLE sys.sensor_levels ( id smallint NOT NULL, name character varying NOT NULL ); @@ -29668,7 +29601,7 @@ CREATE TABLE sensor_levels ( -- Name: sensor_modes; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE sensor_modes ( +CREATE TABLE sys.sensor_modes ( id integer NOT NULL, name character varying NOT NULL ); @@ -29678,7 +29611,7 @@ CREATE TABLE sensor_modes ( -- Name: sensors; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE sensors ( +CREATE TABLE sys.sensors ( id smallint NOT NULL, name character varying NOT NULL, mode_id integer NOT NULL, @@ -29696,7 +29629,7 @@ CREATE TABLE sensors ( -- Name: sensors_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE sensors_id_seq +CREATE SEQUENCE sys.sensors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29708,14 +29641,14 @@ CREATE SEQUENCE sensors_id_seq -- Name: sensors_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE sensors_id_seq OWNED BY sensors.id; +ALTER SEQUENCE sys.sensors_id_seq OWNED BY sys.sensors.id; -- -- Name: smtp_connections; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE smtp_connections ( +CREATE TABLE sys.smtp_connections ( id integer NOT NULL, name character varying NOT NULL, host character varying NOT NULL, @@ -29731,7 +29664,7 @@ CREATE TABLE smtp_connections ( -- Name: smtp_connections_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE smtp_connections_id_seq +CREATE SEQUENCE sys.smtp_connections_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29743,14 +29676,14 @@ CREATE SEQUENCE smtp_connections_id_seq -- Name: smtp_connections_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE smtp_connections_id_seq OWNED BY smtp_connections.id; +ALTER SEQUENCE sys.smtp_connections_id_seq OWNED BY sys.smtp_connections.id; -- -- Name: timezones; Type: TABLE; Schema: sys; Owner: -; Tablespace: -- -CREATE TABLE timezones ( +CREATE TABLE sys.timezones ( id integer NOT NULL, name character varying NOT NULL, abbrev character varying, @@ -29763,7 +29696,7 @@ CREATE TABLE timezones ( -- Name: timezones_id_seq; Type: SEQUENCE; Schema: sys; Owner: - -- -CREATE SEQUENCE timezones_id_seq +CREATE SEQUENCE sys.timezones_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -29775,777 +29708,749 @@ CREATE SEQUENCE timezones_id_seq -- Name: timezones_id_seq; Type: SEQUENCE OWNED BY; Schema: sys; Owner: - -- -ALTER SEQUENCE timezones_id_seq OWNED BY timezones.id; - +ALTER SEQUENCE sys.timezones_id_seq OWNED BY sys.timezones.id; -SET search_path = billing, pg_catalog; -- -- Name: id; Type: DEFAULT; Schema: billing; Owner: - -- -ALTER TABLE ONLY accounts ALTER COLUMN id SET DEFAULT nextval('accounts_id_seq'::regclass); +ALTER TABLE ONLY billing.accounts ALTER COLUMN id SET DEFAULT nextval('billing.accounts_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: billing; Owner: - -- -ALTER TABLE ONLY invoice_periods ALTER COLUMN id SET DEFAULT nextval('invoice_periods_id_seq'::regclass); +ALTER TABLE ONLY billing.invoice_periods ALTER COLUMN id SET DEFAULT nextval('billing.invoice_periods_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: billing; Owner: - -- -ALTER TABLE ONLY invoice_templates ALTER COLUMN id SET DEFAULT nextval('invoices_templates_id_seq'::regclass); +ALTER TABLE ONLY billing.invoice_templates ALTER COLUMN id SET DEFAULT nextval('billing.invoices_templates_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: billing; Owner: - -- -ALTER TABLE ONLY payments ALTER COLUMN id SET DEFAULT nextval('payments_id_seq'::regclass); +ALTER TABLE ONLY billing.payments ALTER COLUMN id SET DEFAULT nextval('billing.payments_id_seq'::regclass); -SET search_path = class4, pg_catalog; - -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY area_prefixes ALTER COLUMN id SET DEFAULT nextval('area_prefixes_id_seq'::regclass); +ALTER TABLE ONLY class4.area_prefixes ALTER COLUMN id SET DEFAULT nextval('class4.area_prefixes_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY areas ALTER COLUMN id SET DEFAULT nextval('areas_id_seq'::regclass); +ALTER TABLE ONLY class4.areas ALTER COLUMN id SET DEFAULT nextval('class4.areas_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY codec_group_codecs ALTER COLUMN id SET DEFAULT nextval('codec_group_codecs_id_seq'::regclass); +ALTER TABLE ONLY class4.codec_group_codecs ALTER COLUMN id SET DEFAULT nextval('class4.codec_group_codecs_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY codec_groups ALTER COLUMN id SET DEFAULT nextval('codec_groups_id_seq'::regclass); +ALTER TABLE ONLY class4.codec_groups ALTER COLUMN id SET DEFAULT nextval('class4.codec_groups_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY codecs ALTER COLUMN id SET DEFAULT nextval('codecs_id_seq'::regclass); +ALTER TABLE ONLY class4.codecs ALTER COLUMN id SET DEFAULT nextval('class4.codecs_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth ALTER COLUMN id SET DEFAULT nextval('customers_auth_id_seq'::regclass); +ALTER TABLE ONLY class4.customers_auth ALTER COLUMN id SET DEFAULT nextval('class4.customers_auth_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth_normalized ALTER COLUMN id SET DEFAULT nextval('customers_auth_normalized_id_seq'::regclass); +ALTER TABLE ONLY class4.customers_auth_normalized ALTER COLUMN id SET DEFAULT nextval('class4.customers_auth_normalized_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY destination_next_rates ALTER COLUMN id SET DEFAULT nextval('destination_next_rates_id_seq'::regclass); +ALTER TABLE ONLY class4.destination_next_rates ALTER COLUMN id SET DEFAULT nextval('class4.destination_next_rates_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY destinations ALTER COLUMN id SET DEFAULT nextval('destinations_id_seq'::regclass); +ALTER TABLE ONLY class4.destinations ALTER COLUMN id SET DEFAULT nextval('class4.destinations_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY dialpeer_next_rates ALTER COLUMN id SET DEFAULT nextval('dialpeer_next_rates_id_seq'::regclass); +ALTER TABLE ONLY class4.dialpeer_next_rates ALTER COLUMN id SET DEFAULT nextval('class4.dialpeer_next_rates_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY dialpeers ALTER COLUMN id SET DEFAULT nextval('dialpeers_id_seq'::regclass); +ALTER TABLE ONLY class4.dialpeers ALTER COLUMN id SET DEFAULT nextval('class4.dialpeers_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY disconnect_code ALTER COLUMN id SET DEFAULT nextval('disconnect_code_id_seq'::regclass); +ALTER TABLE ONLY class4.disconnect_code ALTER COLUMN id SET DEFAULT nextval('class4.disconnect_code_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY disconnect_policy ALTER COLUMN id SET DEFAULT nextval('disconnect_code_policy_id_seq'::regclass); +ALTER TABLE ONLY class4.disconnect_policy ALTER COLUMN id SET DEFAULT nextval('class4.disconnect_code_policy_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY disconnect_policy_code ALTER COLUMN id SET DEFAULT nextval('disconnect_code_policy_codes_id_seq'::regclass); +ALTER TABLE ONLY class4.disconnect_policy_code ALTER COLUMN id SET DEFAULT nextval('class4.disconnect_code_policy_codes_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateway_groups ALTER COLUMN id SET DEFAULT nextval('gateway_groups_id_seq'::regclass); +ALTER TABLE ONLY class4.gateway_groups ALTER COLUMN id SET DEFAULT nextval('class4.gateway_groups_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways ALTER COLUMN id SET DEFAULT nextval('gateways_id_seq'::regclass); +ALTER TABLE ONLY class4.gateways ALTER COLUMN id SET DEFAULT nextval('class4.gateways_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY lnp_cache ALTER COLUMN id SET DEFAULT nextval('lnp_cache_id_seq'::regclass); +ALTER TABLE ONLY class4.lnp_cache ALTER COLUMN id SET DEFAULT nextval('class4.lnp_cache_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY lnp_databases ALTER COLUMN id SET DEFAULT nextval('lnp_databases_id_seq'::regclass); +ALTER TABLE ONLY class4.lnp_databases ALTER COLUMN id SET DEFAULT nextval('class4.lnp_databases_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY numberlist_items ALTER COLUMN id SET DEFAULT nextval('blacklist_items_id_seq'::regclass); +ALTER TABLE ONLY class4.numberlist_items ALTER COLUMN id SET DEFAULT nextval('class4.blacklist_items_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY numberlists ALTER COLUMN id SET DEFAULT nextval('blacklists_id_seq'::regclass); +ALTER TABLE ONLY class4.numberlists ALTER COLUMN id SET DEFAULT nextval('class4.blacklists_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY radius_accounting_profile_interim_attributes ALTER COLUMN id SET DEFAULT nextval('radius_accounting_profile_interim_attributes_id_seq'::regclass); +ALTER TABLE ONLY class4.radius_accounting_profile_interim_attributes ALTER COLUMN id SET DEFAULT nextval('class4.radius_accounting_profile_interim_attributes_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY radius_accounting_profile_start_attributes ALTER COLUMN id SET DEFAULT nextval('radius_accounting_profile_start_attributes_id_seq'::regclass); +ALTER TABLE ONLY class4.radius_accounting_profile_start_attributes ALTER COLUMN id SET DEFAULT nextval('class4.radius_accounting_profile_start_attributes_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY radius_accounting_profile_stop_attributes ALTER COLUMN id SET DEFAULT nextval('radius_accounting_profile_stop_attributes_id_seq'::regclass); +ALTER TABLE ONLY class4.radius_accounting_profile_stop_attributes ALTER COLUMN id SET DEFAULT nextval('class4.radius_accounting_profile_stop_attributes_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY radius_accounting_profiles ALTER COLUMN id SET DEFAULT nextval('radius_accounting_profiles_id_seq'::regclass); +ALTER TABLE ONLY class4.radius_accounting_profiles ALTER COLUMN id SET DEFAULT nextval('class4.radius_accounting_profiles_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY radius_auth_profile_attributes ALTER COLUMN id SET DEFAULT nextval('radius_auth_profile_attributes_id_seq'::regclass); +ALTER TABLE ONLY class4.radius_auth_profile_attributes ALTER COLUMN id SET DEFAULT nextval('class4.radius_auth_profile_attributes_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY radius_auth_profiles ALTER COLUMN id SET DEFAULT nextval('radius_auth_profiles_id_seq'::regclass); +ALTER TABLE ONLY class4.radius_auth_profiles ALTER COLUMN id SET DEFAULT nextval('class4.radius_auth_profiles_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY rateplans ALTER COLUMN id SET DEFAULT nextval('rateplans_id_seq'::regclass); +ALTER TABLE ONLY class4.rateplans ALTER COLUMN id SET DEFAULT nextval('class4.rateplans_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY registrations ALTER COLUMN id SET DEFAULT nextval('registrations_id_seq'::regclass); +ALTER TABLE ONLY class4.registrations ALTER COLUMN id SET DEFAULT nextval('class4.registrations_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_groups ALTER COLUMN id SET DEFAULT nextval('routing_groups_id_seq'::regclass); +ALTER TABLE ONLY class4.routing_groups ALTER COLUMN id SET DEFAULT nextval('class4.routing_groups_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_plan_groups ALTER COLUMN id SET DEFAULT nextval('routing_plan_groups_id_seq'::regclass); +ALTER TABLE ONLY class4.routing_plan_groups ALTER COLUMN id SET DEFAULT nextval('class4.routing_plan_groups_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_plan_lnp_rules ALTER COLUMN id SET DEFAULT nextval('routing_plan_lnp_rules_id_seq'::regclass); +ALTER TABLE ONLY class4.routing_plan_lnp_rules ALTER COLUMN id SET DEFAULT nextval('class4.routing_plan_lnp_rules_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_plan_static_routes ALTER COLUMN id SET DEFAULT nextval('routing_plan_static_routes_id_seq'::regclass); +ALTER TABLE ONLY class4.routing_plan_static_routes ALTER COLUMN id SET DEFAULT nextval('class4.routing_plan_static_routes_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_plans ALTER COLUMN id SET DEFAULT nextval('routing_plans_id_seq'::regclass); +ALTER TABLE ONLY class4.routing_plans ALTER COLUMN id SET DEFAULT nextval('class4.routing_plans_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_tag_detection_rules ALTER COLUMN id SET DEFAULT nextval('routing_tag_detection_rules_id_seq'::regclass); +ALTER TABLE ONLY class4.routing_tag_detection_rules ALTER COLUMN id SET DEFAULT nextval('class4.routing_tag_detection_rules_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_tags ALTER COLUMN id SET DEFAULT nextval('routing_tags_id_seq'::regclass); +ALTER TABLE ONLY class4.routing_tags ALTER COLUMN id SET DEFAULT nextval('class4.routing_tags_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY session_refresh_methods ALTER COLUMN id SET DEFAULT nextval('session_refresh_methods_id_seq'::regclass); +ALTER TABLE ONLY class4.session_refresh_methods ALTER COLUMN id SET DEFAULT nextval('class4.session_refresh_methods_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: class4; Owner: - -- -ALTER TABLE ONLY sortings ALTER COLUMN id SET DEFAULT nextval('sortings_id_seq'::regclass); - +ALTER TABLE ONLY class4.sortings ALTER COLUMN id SET DEFAULT nextval('class4.sortings_id_seq'::regclass); -SET search_path = data_import, pg_catalog; -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_accounts ALTER COLUMN id SET DEFAULT nextval('import_accounts_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_accounts ALTER COLUMN id SET DEFAULT nextval('data_import.import_accounts_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_codec_group_codecs ALTER COLUMN id SET DEFAULT nextval('import_codec_group_codecs_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_codec_group_codecs ALTER COLUMN id SET DEFAULT nextval('data_import.import_codec_group_codecs_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_codec_groups ALTER COLUMN id SET DEFAULT nextval('import_codec_groups_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_codec_groups ALTER COLUMN id SET DEFAULT nextval('data_import.import_codec_groups_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_contractors ALTER COLUMN id SET DEFAULT nextval('import_contractors_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_contractors ALTER COLUMN id SET DEFAULT nextval('data_import.import_contractors_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_customers_auth ALTER COLUMN id SET DEFAULT nextval('import_customers_auth_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_customers_auth ALTER COLUMN id SET DEFAULT nextval('data_import.import_customers_auth_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_destinations ALTER COLUMN id SET DEFAULT nextval('import_destinations_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_destinations ALTER COLUMN id SET DEFAULT nextval('data_import.import_destinations_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_dialpeers ALTER COLUMN id SET DEFAULT nextval('import_dialpeers_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_dialpeers ALTER COLUMN id SET DEFAULT nextval('data_import.import_dialpeers_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_disconnect_policies ALTER COLUMN id SET DEFAULT nextval('import_disconnect_policies_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_disconnect_policies ALTER COLUMN id SET DEFAULT nextval('data_import.import_disconnect_policies_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_gateway_groups ALTER COLUMN id SET DEFAULT nextval('import_gateway_groups_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_gateway_groups ALTER COLUMN id SET DEFAULT nextval('data_import.import_gateway_groups_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_gateways ALTER COLUMN id SET DEFAULT nextval('import_gateways_id_seq1'::regclass); +ALTER TABLE ONLY data_import.import_gateways ALTER COLUMN id SET DEFAULT nextval('data_import.import_gateways_id_seq1'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_numberlist_items ALTER COLUMN id SET DEFAULT nextval('import_numberlist_items_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_numberlist_items ALTER COLUMN id SET DEFAULT nextval('data_import.import_numberlist_items_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_numberlists ALTER COLUMN id SET DEFAULT nextval('import_numberlists_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_numberlists ALTER COLUMN id SET DEFAULT nextval('data_import.import_numberlists_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_rateplans ALTER COLUMN id SET DEFAULT nextval('import_rateplans_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_rateplans ALTER COLUMN id SET DEFAULT nextval('data_import.import_rateplans_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_registrations ALTER COLUMN id SET DEFAULT nextval('import_registrations_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_registrations ALTER COLUMN id SET DEFAULT nextval('data_import.import_registrations_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: data_import; Owner: - -- -ALTER TABLE ONLY import_routing_groups ALTER COLUMN id SET DEFAULT nextval('import_routing_groups_id_seq'::regclass); +ALTER TABLE ONLY data_import.import_routing_groups ALTER COLUMN id SET DEFAULT nextval('data_import.import_routing_groups_id_seq'::regclass); -SET search_path = gui, pg_catalog; - -- -- Name: id; Type: DEFAULT; Schema: gui; Owner: - -- -ALTER TABLE ONLY active_admin_comments ALTER COLUMN id SET DEFAULT nextval('admin_notes_id_seq'::regclass); +ALTER TABLE ONLY gui.active_admin_comments ALTER COLUMN id SET DEFAULT nextval('gui.admin_notes_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: gui; Owner: - -- -ALTER TABLE ONLY admin_users ALTER COLUMN id SET DEFAULT nextval('admin_users_id_seq'::regclass); +ALTER TABLE ONLY gui.admin_users ALTER COLUMN id SET DEFAULT nextval('gui.admin_users_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: gui; Owner: - -- -ALTER TABLE ONLY background_threads ALTER COLUMN id SET DEFAULT nextval('background_threads_id_seq'::regclass); +ALTER TABLE ONLY gui.background_threads ALTER COLUMN id SET DEFAULT nextval('gui.background_threads_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: gui; Owner: - -- -ALTER TABLE ONLY sessions ALTER COLUMN id SET DEFAULT nextval('sessions_id_seq'::regclass); +ALTER TABLE ONLY gui.sessions ALTER COLUMN id SET DEFAULT nextval('gui.sessions_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: gui; Owner: - -- -ALTER TABLE ONLY versions ALTER COLUMN id SET DEFAULT nextval('versions_id_seq'::regclass); - +ALTER TABLE ONLY gui.versions ALTER COLUMN id SET DEFAULT nextval('gui.versions_id_seq'::regclass); -SET search_path = logs, pg_catalog; -- -- Name: id; Type: DEFAULT; Schema: logs; Owner: - -- -ALTER TABLE ONLY api_requests ALTER COLUMN id SET DEFAULT nextval('api_requests_id_seq'::regclass); +ALTER TABLE ONLY logs.api_requests ALTER COLUMN id SET DEFAULT nextval('logs.api_requests_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: logs; Owner: - -- -ALTER TABLE ONLY balance_notifications ALTER COLUMN id SET DEFAULT nextval('balance_notifications_id_seq'::regclass); +ALTER TABLE ONLY logs.balance_notifications ALTER COLUMN id SET DEFAULT nextval('logs.balance_notifications_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: logs; Owner: - -- -ALTER TABLE ONLY logic_log ALTER COLUMN id SET DEFAULT nextval('logic_log_id_seq'::regclass); - +ALTER TABLE ONLY logs.logic_log ALTER COLUMN id SET DEFAULT nextval('logs.logic_log_id_seq'::regclass); -SET search_path = notifications, pg_catalog; -- -- Name: id; Type: DEFAULT; Schema: notifications; Owner: - -- -ALTER TABLE ONLY alerts ALTER COLUMN id SET DEFAULT nextval('alerts_id_seq'::regclass); +ALTER TABLE ONLY notifications.alerts ALTER COLUMN id SET DEFAULT nextval('notifications.alerts_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: notifications; Owner: - -- -ALTER TABLE ONLY attachments ALTER COLUMN id SET DEFAULT nextval('attachments_id_seq'::regclass); +ALTER TABLE ONLY notifications.attachments ALTER COLUMN id SET DEFAULT nextval('notifications.attachments_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: notifications; Owner: - -- -ALTER TABLE ONLY contacts ALTER COLUMN id SET DEFAULT nextval('contacts_id_seq'::regclass); +ALTER TABLE ONLY notifications.contacts ALTER COLUMN id SET DEFAULT nextval('notifications.contacts_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: notifications; Owner: - -- -ALTER TABLE ONLY email_logs ALTER COLUMN id SET DEFAULT nextval('email_log_id_seq'::regclass); +ALTER TABLE ONLY notifications.email_logs ALTER COLUMN id SET DEFAULT nextval('notifications.email_log_id_seq'::regclass); -SET search_path = public, pg_catalog; - -- -- Name: id; Type: DEFAULT; Schema: public; Owner: - -- -ALTER TABLE ONLY contractors ALTER COLUMN id SET DEFAULT nextval('contractors_id_seq'::regclass); +ALTER TABLE ONLY public.contractors ALTER COLUMN id SET DEFAULT nextval('public.contractors_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: public; Owner: - -- -ALTER TABLE ONLY new_table_0 ALTER COLUMN id SET DEFAULT nextval('new_table_0_id_seq'::regclass); - +ALTER TABLE ONLY public.new_table_0 ALTER COLUMN id SET DEFAULT nextval('public.new_table_0_id_seq'::regclass); -SET search_path = runtime_stats, pg_catalog; -- -- Name: id; Type: DEFAULT; Schema: runtime_stats; Owner: - -- -ALTER TABLE ONLY dialpeers_stats ALTER COLUMN id SET DEFAULT nextval('dialpeers_stats_id_seq'::regclass); +ALTER TABLE ONLY runtime_stats.dialpeers_stats ALTER COLUMN id SET DEFAULT nextval('runtime_stats.dialpeers_stats_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: runtime_stats; Owner: - -- -ALTER TABLE ONLY gateways_stats ALTER COLUMN id SET DEFAULT nextval('gateways_stats_id_seq'::regclass); +ALTER TABLE ONLY runtime_stats.gateways_stats ALTER COLUMN id SET DEFAULT nextval('runtime_stats.gateways_stats_id_seq'::regclass); -SET search_path = switch13, pg_catalog; - -- -- Name: id; Type: DEFAULT; Schema: switch13; Owner: - -- -ALTER TABLE ONLY resource_type ALTER COLUMN id SET DEFAULT nextval('resource_type_id_seq'::regclass); +ALTER TABLE ONLY switch13.resource_type ALTER COLUMN id SET DEFAULT nextval('switch13.resource_type_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: switch13; Owner: - -- -ALTER TABLE ONLY switch_interface_out ALTER COLUMN id SET DEFAULT nextval('switch_interface_id_seq'::regclass); +ALTER TABLE ONLY switch13.switch_interface_out ALTER COLUMN id SET DEFAULT nextval('switch13.switch_interface_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: switch13; Owner: - -- -ALTER TABLE ONLY trusted_headers ALTER COLUMN id SET DEFAULT nextval('trusted_headers_id_seq'::regclass); - +ALTER TABLE ONLY switch13.trusted_headers ALTER COLUMN id SET DEFAULT nextval('switch13.trusted_headers_id_seq'::regclass); -SET search_path = switch14, pg_catalog; -- -- Name: id; Type: DEFAULT; Schema: switch14; Owner: - -- -ALTER TABLE ONLY resource_type ALTER COLUMN id SET DEFAULT nextval('resource_type_id_seq'::regclass); +ALTER TABLE ONLY switch14.resource_type ALTER COLUMN id SET DEFAULT nextval('switch14.resource_type_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: switch14; Owner: - -- -ALTER TABLE ONLY switch_interface_out ALTER COLUMN id SET DEFAULT nextval('switch_interface_id_seq'::regclass); +ALTER TABLE ONLY switch14.switch_interface_out ALTER COLUMN id SET DEFAULT nextval('switch14.switch_interface_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: switch14; Owner: - -- -ALTER TABLE ONLY trusted_headers ALTER COLUMN id SET DEFAULT nextval('trusted_headers_id_seq'::regclass); - +ALTER TABLE ONLY switch14.trusted_headers ALTER COLUMN id SET DEFAULT nextval('switch14.trusted_headers_id_seq'::regclass); -SET search_path = switch15, pg_catalog; -- -- Name: id; Type: DEFAULT; Schema: switch15; Owner: - -- -ALTER TABLE ONLY resource_type ALTER COLUMN id SET DEFAULT nextval('resource_type_id_seq'::regclass); +ALTER TABLE ONLY switch15.resource_type ALTER COLUMN id SET DEFAULT nextval('switch15.resource_type_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: switch15; Owner: - -- -ALTER TABLE ONLY switch_interface_out ALTER COLUMN id SET DEFAULT nextval('switch_interface_id_seq'::regclass); +ALTER TABLE ONLY switch15.switch_interface_out ALTER COLUMN id SET DEFAULT nextval('switch15.switch_interface_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: switch15; Owner: - -- -ALTER TABLE ONLY trusted_headers ALTER COLUMN id SET DEFAULT nextval('trusted_headers_id_seq'::regclass); +ALTER TABLE ONLY switch15.trusted_headers ALTER COLUMN id SET DEFAULT nextval('switch15.trusted_headers_id_seq'::regclass); -SET search_path = switch16, pg_catalog; - -- -- Name: id; Type: DEFAULT; Schema: switch16; Owner: - -- -ALTER TABLE ONLY resource_type ALTER COLUMN id SET DEFAULT nextval('resource_type_id_seq'::regclass); +ALTER TABLE ONLY switch16.resource_type ALTER COLUMN id SET DEFAULT nextval('switch16.resource_type_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: switch16; Owner: - -- -ALTER TABLE ONLY switch_interface_out ALTER COLUMN id SET DEFAULT nextval('switch_interface_id_seq'::regclass); +ALTER TABLE ONLY switch16.switch_interface_out ALTER COLUMN id SET DEFAULT nextval('switch16.switch_interface_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: switch16; Owner: - -- -ALTER TABLE ONLY trusted_headers ALTER COLUMN id SET DEFAULT nextval('trusted_headers_id_seq'::regclass); - +ALTER TABLE ONLY switch16.trusted_headers ALTER COLUMN id SET DEFAULT nextval('switch16.trusted_headers_id_seq'::regclass); -SET search_path = sys, pg_catalog; -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY active_currencies ALTER COLUMN id SET DEFAULT nextval('active_currencies_id_seq'::regclass); +ALTER TABLE ONLY sys.active_currencies ALTER COLUMN id SET DEFAULT nextval('sys.active_currencies_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY api_access ALTER COLUMN id SET DEFAULT nextval('api_access_id_seq'::regclass); +ALTER TABLE ONLY sys.api_access ALTER COLUMN id SET DEFAULT nextval('sys.api_access_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY api_log_config ALTER COLUMN id SET DEFAULT nextval('api_log_config_id_seq'::regclass); +ALTER TABLE ONLY sys.api_log_config ALTER COLUMN id SET DEFAULT nextval('sys.api_log_config_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY cdr_exports ALTER COLUMN id SET DEFAULT nextval('cdr_exports_id_seq'::regclass); +ALTER TABLE ONLY sys.cdr_exports ALTER COLUMN id SET DEFAULT nextval('sys.cdr_exports_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY cdr_tables ALTER COLUMN id SET DEFAULT nextval('cdrtables_id_seq'::regclass); +ALTER TABLE ONLY sys.cdr_tables ALTER COLUMN id SET DEFAULT nextval('sys.cdrtables_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY countries ALTER COLUMN id SET DEFAULT nextval('countries_id_seq'::regclass); +ALTER TABLE ONLY sys.countries ALTER COLUMN id SET DEFAULT nextval('sys.countries_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY currencies ALTER COLUMN id SET DEFAULT nextval('currencies_id_seq'::regclass); +ALTER TABLE ONLY sys.currencies ALTER COLUMN id SET DEFAULT nextval('sys.currencies_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY delayed_jobs ALTER COLUMN id SET DEFAULT nextval('delayed_jobs_id_seq'::regclass); +ALTER TABLE ONLY sys.delayed_jobs ALTER COLUMN id SET DEFAULT nextval('sys.delayed_jobs_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY guiconfig ALTER COLUMN id SET DEFAULT nextval('guiconfig_id_seq'::regclass); +ALTER TABLE ONLY sys.guiconfig ALTER COLUMN id SET DEFAULT nextval('sys.guiconfig_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY jobs ALTER COLUMN id SET DEFAULT nextval('jobs_id_seq'::regclass); +ALTER TABLE ONLY sys.jobs ALTER COLUMN id SET DEFAULT nextval('sys.jobs_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY lnp_database_drivers ALTER COLUMN id SET DEFAULT nextval('lnp_database_drivers_id_seq'::regclass); +ALTER TABLE ONLY sys.lnp_database_drivers ALTER COLUMN id SET DEFAULT nextval('sys.lnp_database_drivers_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY lnp_resolvers ALTER COLUMN id SET DEFAULT nextval('lnp_resolvers_id_seq'::regclass); +ALTER TABLE ONLY sys.lnp_resolvers ALTER COLUMN id SET DEFAULT nextval('sys.lnp_resolvers_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY load_balancers ALTER COLUMN id SET DEFAULT nextval('load_balancers_id_seq'::regclass); +ALTER TABLE ONLY sys.load_balancers ALTER COLUMN id SET DEFAULT nextval('sys.load_balancers_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY lua_scripts ALTER COLUMN id SET DEFAULT nextval('lua_scripts_id_seq'::regclass); +ALTER TABLE ONLY sys.lua_scripts ALTER COLUMN id SET DEFAULT nextval('sys.lua_scripts_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY network_prefixes ALTER COLUMN id SET DEFAULT nextval('network_prefixes_id_seq'::regclass); +ALTER TABLE ONLY sys.network_prefixes ALTER COLUMN id SET DEFAULT nextval('sys.network_prefixes_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY networks ALTER COLUMN id SET DEFAULT nextval('networks_id_seq'::regclass); +ALTER TABLE ONLY sys.networks ALTER COLUMN id SET DEFAULT nextval('sys.networks_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY nodes ALTER COLUMN id SET DEFAULT nextval('node_id_seq'::regclass); +ALTER TABLE ONLY sys.nodes ALTER COLUMN id SET DEFAULT nextval('sys.node_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY pops ALTER COLUMN id SET DEFAULT nextval('pop_id_seq'::regclass); +ALTER TABLE ONLY sys.pops ALTER COLUMN id SET DEFAULT nextval('sys.pop_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY sensors ALTER COLUMN id SET DEFAULT nextval('sensors_id_seq'::regclass); +ALTER TABLE ONLY sys.sensors ALTER COLUMN id SET DEFAULT nextval('sys.sensors_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY smtp_connections ALTER COLUMN id SET DEFAULT nextval('smtp_connections_id_seq'::regclass); +ALTER TABLE ONLY sys.smtp_connections ALTER COLUMN id SET DEFAULT nextval('sys.smtp_connections_id_seq'::regclass); -- -- Name: id; Type: DEFAULT; Schema: sys; Owner: - -- -ALTER TABLE ONLY timezones ALTER COLUMN id SET DEFAULT nextval('timezones_id_seq'::regclass); +ALTER TABLE ONLY sys.timezones ALTER COLUMN id SET DEFAULT nextval('sys.timezones_id_seq'::regclass); -SET search_path = billing, pg_catalog; - -- -- Name: accounts_external_id_key; Type: CONSTRAINT; Schema: billing; Owner: -; Tablespace: -- -ALTER TABLE ONLY accounts +ALTER TABLE ONLY billing.accounts ADD CONSTRAINT accounts_external_id_key UNIQUE (external_id); @@ -30553,7 +30458,7 @@ ALTER TABLE ONLY accounts -- Name: accounts_name_key; Type: CONSTRAINT; Schema: billing; Owner: -; Tablespace: -- -ALTER TABLE ONLY accounts +ALTER TABLE ONLY billing.accounts ADD CONSTRAINT accounts_name_key UNIQUE (name); @@ -30561,7 +30466,7 @@ ALTER TABLE ONLY accounts -- Name: accounts_pkey; Type: CONSTRAINT; Schema: billing; Owner: -; Tablespace: -- -ALTER TABLE ONLY accounts +ALTER TABLE ONLY billing.accounts ADD CONSTRAINT accounts_pkey PRIMARY KEY (id); @@ -30569,7 +30474,7 @@ ALTER TABLE ONLY accounts -- Name: accounts_uuid_key; Type: CONSTRAINT; Schema: billing; Owner: -; Tablespace: -- -ALTER TABLE ONLY accounts +ALTER TABLE ONLY billing.accounts ADD CONSTRAINT accounts_uuid_key UNIQUE (uuid); @@ -30577,7 +30482,7 @@ ALTER TABLE ONLY accounts -- Name: cdr_batches_pkey; Type: CONSTRAINT; Schema: billing; Owner: -; Tablespace: -- -ALTER TABLE ONLY cdr_batches +ALTER TABLE ONLY billing.cdr_batches ADD CONSTRAINT cdr_batches_pkey PRIMARY KEY (id); @@ -30585,7 +30490,7 @@ ALTER TABLE ONLY cdr_batches -- Name: invoice_periods_name_key; Type: CONSTRAINT; Schema: billing; Owner: -; Tablespace: -- -ALTER TABLE ONLY invoice_periods +ALTER TABLE ONLY billing.invoice_periods ADD CONSTRAINT invoice_periods_name_key UNIQUE (name); @@ -30593,7 +30498,7 @@ ALTER TABLE ONLY invoice_periods -- Name: invoice_periods_pkey; Type: CONSTRAINT; Schema: billing; Owner: -; Tablespace: -- -ALTER TABLE ONLY invoice_periods +ALTER TABLE ONLY billing.invoice_periods ADD CONSTRAINT invoice_periods_pkey PRIMARY KEY (id); @@ -30601,7 +30506,7 @@ ALTER TABLE ONLY invoice_periods -- Name: invoices_templates_name_key; Type: CONSTRAINT; Schema: billing; Owner: -; Tablespace: -- -ALTER TABLE ONLY invoice_templates +ALTER TABLE ONLY billing.invoice_templates ADD CONSTRAINT invoices_templates_name_key UNIQUE (name); @@ -30609,7 +30514,7 @@ ALTER TABLE ONLY invoice_templates -- Name: invoices_templates_pkey; Type: CONSTRAINT; Schema: billing; Owner: -; Tablespace: -- -ALTER TABLE ONLY invoice_templates +ALTER TABLE ONLY billing.invoice_templates ADD CONSTRAINT invoices_templates_pkey PRIMARY KEY (id); @@ -30617,17 +30522,15 @@ ALTER TABLE ONLY invoice_templates -- Name: payments_pkey; Type: CONSTRAINT; Schema: billing; Owner: -; Tablespace: -- -ALTER TABLE ONLY payments +ALTER TABLE ONLY billing.payments ADD CONSTRAINT payments_pkey PRIMARY KEY (id); -SET search_path = class4, pg_catalog; - -- -- Name: area_prefixes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY area_prefixes +ALTER TABLE ONLY class4.area_prefixes ADD CONSTRAINT area_prefixes_pkey PRIMARY KEY (id); @@ -30635,7 +30538,7 @@ ALTER TABLE ONLY area_prefixes -- Name: area_prefixes_prefix_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY area_prefixes +ALTER TABLE ONLY class4.area_prefixes ADD CONSTRAINT area_prefixes_prefix_key UNIQUE (prefix); @@ -30643,7 +30546,7 @@ ALTER TABLE ONLY area_prefixes -- Name: areas_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY areas +ALTER TABLE ONLY class4.areas ADD CONSTRAINT areas_name_key UNIQUE (name); @@ -30651,7 +30554,7 @@ ALTER TABLE ONLY areas -- Name: areas_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY areas +ALTER TABLE ONLY class4.areas ADD CONSTRAINT areas_pkey PRIMARY KEY (id); @@ -30659,7 +30562,7 @@ ALTER TABLE ONLY areas -- Name: blacklist_items_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY numberlist_items +ALTER TABLE ONLY class4.numberlist_items ADD CONSTRAINT blacklist_items_pkey PRIMARY KEY (id); @@ -30667,7 +30570,7 @@ ALTER TABLE ONLY numberlist_items -- Name: blacklist_modes_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY numberlist_modes +ALTER TABLE ONLY class4.numberlist_modes ADD CONSTRAINT blacklist_modes_name_key UNIQUE (name); @@ -30675,7 +30578,7 @@ ALTER TABLE ONLY numberlist_modes -- Name: blacklist_modes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY numberlist_modes +ALTER TABLE ONLY class4.numberlist_modes ADD CONSTRAINT blacklist_modes_pkey PRIMARY KEY (id); @@ -30683,7 +30586,7 @@ ALTER TABLE ONLY numberlist_modes -- Name: blacklists_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY numberlists +ALTER TABLE ONLY class4.numberlists ADD CONSTRAINT blacklists_name_key UNIQUE (name); @@ -30691,7 +30594,7 @@ ALTER TABLE ONLY numberlists -- Name: blacklists_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY numberlists +ALTER TABLE ONLY class4.numberlists ADD CONSTRAINT blacklists_pkey PRIMARY KEY (id); @@ -30699,7 +30602,7 @@ ALTER TABLE ONLY numberlists -- Name: codec_group_codecs_codec_group_id_codec_id_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY codec_group_codecs +ALTER TABLE ONLY class4.codec_group_codecs ADD CONSTRAINT codec_group_codecs_codec_group_id_codec_id_key UNIQUE (codec_group_id, codec_id); @@ -30707,7 +30610,7 @@ ALTER TABLE ONLY codec_group_codecs -- Name: codec_group_codecs_codec_group_id_priority_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY codec_group_codecs +ALTER TABLE ONLY class4.codec_group_codecs ADD CONSTRAINT codec_group_codecs_codec_group_id_priority_key UNIQUE (codec_group_id, priority); @@ -30715,7 +30618,7 @@ ALTER TABLE ONLY codec_group_codecs -- Name: codec_group_codecs_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY codec_group_codecs +ALTER TABLE ONLY class4.codec_group_codecs ADD CONSTRAINT codec_group_codecs_pkey PRIMARY KEY (id); @@ -30723,7 +30626,7 @@ ALTER TABLE ONLY codec_group_codecs -- Name: codec_groups_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY codec_groups +ALTER TABLE ONLY class4.codec_groups ADD CONSTRAINT codec_groups_name_key UNIQUE (name); @@ -30731,7 +30634,7 @@ ALTER TABLE ONLY codec_groups -- Name: codec_groups_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY codec_groups +ALTER TABLE ONLY class4.codec_groups ADD CONSTRAINT codec_groups_pkey PRIMARY KEY (id); @@ -30739,7 +30642,7 @@ ALTER TABLE ONLY codec_groups -- Name: codecs_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY codecs +ALTER TABLE ONLY class4.codecs ADD CONSTRAINT codecs_name_key UNIQUE (name); @@ -30747,7 +30650,7 @@ ALTER TABLE ONLY codecs -- Name: codecs_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY codecs +ALTER TABLE ONLY class4.codecs ADD CONSTRAINT codecs_pkey PRIMARY KEY (id); @@ -30755,7 +30658,7 @@ ALTER TABLE ONLY codecs -- Name: customers_auth_external_id_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY customers_auth +ALTER TABLE ONLY class4.customers_auth ADD CONSTRAINT customers_auth_external_id_key UNIQUE (external_id); @@ -30763,7 +30666,7 @@ ALTER TABLE ONLY customers_auth -- Name: customers_auth_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY customers_auth +ALTER TABLE ONLY class4.customers_auth ADD CONSTRAINT customers_auth_name_key UNIQUE (name); @@ -30771,7 +30674,7 @@ ALTER TABLE ONLY customers_auth -- Name: customers_auth_normalized_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY customers_auth_normalized +ALTER TABLE ONLY class4.customers_auth_normalized ADD CONSTRAINT customers_auth_normalized_pkey PRIMARY KEY (id); @@ -30779,7 +30682,7 @@ ALTER TABLE ONLY customers_auth_normalized -- Name: customers_auth_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY customers_auth +ALTER TABLE ONLY class4.customers_auth ADD CONSTRAINT customers_auth_pkey PRIMARY KEY (id); @@ -30787,7 +30690,7 @@ ALTER TABLE ONLY customers_auth -- Name: destination_next_rates_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY destination_next_rates +ALTER TABLE ONLY class4.destination_next_rates ADD CONSTRAINT destination_next_rates_pkey PRIMARY KEY (id); @@ -30795,7 +30698,7 @@ ALTER TABLE ONLY destination_next_rates -- Name: destination_rate_policy_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY destination_rate_policy +ALTER TABLE ONLY class4.destination_rate_policy ADD CONSTRAINT destination_rate_policy_name_key UNIQUE (name); @@ -30803,7 +30706,7 @@ ALTER TABLE ONLY destination_rate_policy -- Name: destination_rate_policy_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY destination_rate_policy +ALTER TABLE ONLY class4.destination_rate_policy ADD CONSTRAINT destination_rate_policy_pkey PRIMARY KEY (id); @@ -30811,7 +30714,7 @@ ALTER TABLE ONLY destination_rate_policy -- Name: destinations_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY destinations +ALTER TABLE ONLY class4.destinations ADD CONSTRAINT destinations_pkey PRIMARY KEY (id); @@ -30819,7 +30722,7 @@ ALTER TABLE ONLY destinations -- Name: destinations_uuid_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY destinations +ALTER TABLE ONLY class4.destinations ADD CONSTRAINT destinations_uuid_key UNIQUE (uuid); @@ -30827,7 +30730,7 @@ ALTER TABLE ONLY destinations -- Name: dialpeer_next_rates_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY dialpeer_next_rates +ALTER TABLE ONLY class4.dialpeer_next_rates ADD CONSTRAINT dialpeer_next_rates_pkey PRIMARY KEY (id); @@ -30835,7 +30738,7 @@ ALTER TABLE ONLY dialpeer_next_rates -- Name: dialpeers_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY dialpeers +ALTER TABLE ONLY class4.dialpeers ADD CONSTRAINT dialpeers_pkey PRIMARY KEY (id); @@ -30843,7 +30746,7 @@ ALTER TABLE ONLY dialpeers -- Name: disconnect_code_namespace_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY disconnect_code_namespace +ALTER TABLE ONLY class4.disconnect_code_namespace ADD CONSTRAINT disconnect_code_namespace_name_key UNIQUE (name); @@ -30851,7 +30754,7 @@ ALTER TABLE ONLY disconnect_code_namespace -- Name: disconnect_code_namespace_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY disconnect_code_namespace +ALTER TABLE ONLY class4.disconnect_code_namespace ADD CONSTRAINT disconnect_code_namespace_pkey PRIMARY KEY (id); @@ -30859,7 +30762,7 @@ ALTER TABLE ONLY disconnect_code_namespace -- Name: disconnect_code_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY disconnect_code +ALTER TABLE ONLY class4.disconnect_code ADD CONSTRAINT disconnect_code_pkey PRIMARY KEY (id); @@ -30867,7 +30770,7 @@ ALTER TABLE ONLY disconnect_code -- Name: disconnect_code_policy_codes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY disconnect_policy_code +ALTER TABLE ONLY class4.disconnect_policy_code ADD CONSTRAINT disconnect_code_policy_codes_pkey PRIMARY KEY (id); @@ -30875,7 +30778,7 @@ ALTER TABLE ONLY disconnect_policy_code -- Name: disconnect_code_policy_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY disconnect_policy +ALTER TABLE ONLY class4.disconnect_policy ADD CONSTRAINT disconnect_code_policy_name_key UNIQUE (name); @@ -30883,7 +30786,7 @@ ALTER TABLE ONLY disconnect_policy -- Name: disconnect_code_policy_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY disconnect_policy +ALTER TABLE ONLY class4.disconnect_policy ADD CONSTRAINT disconnect_code_policy_pkey PRIMARY KEY (id); @@ -30891,7 +30794,7 @@ ALTER TABLE ONLY disconnect_policy -- Name: disconnect_initiators_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY disconnect_initiators +ALTER TABLE ONLY class4.disconnect_initiators ADD CONSTRAINT disconnect_initiators_pkey PRIMARY KEY (id); @@ -30899,7 +30802,7 @@ ALTER TABLE ONLY disconnect_initiators -- Name: diversion_policy_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY diversion_policy +ALTER TABLE ONLY class4.diversion_policy ADD CONSTRAINT diversion_policy_name_key UNIQUE (name); @@ -30907,7 +30810,7 @@ ALTER TABLE ONLY diversion_policy -- Name: diversion_policy_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY diversion_policy +ALTER TABLE ONLY class4.diversion_policy ADD CONSTRAINT diversion_policy_pkey PRIMARY KEY (id); @@ -30915,7 +30818,7 @@ ALTER TABLE ONLY diversion_policy -- Name: dtmf_receive_modes_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY dtmf_receive_modes +ALTER TABLE ONLY class4.dtmf_receive_modes ADD CONSTRAINT dtmf_receive_modes_name_key UNIQUE (name); @@ -30923,7 +30826,7 @@ ALTER TABLE ONLY dtmf_receive_modes -- Name: dtmf_receive_modes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY dtmf_receive_modes +ALTER TABLE ONLY class4.dtmf_receive_modes ADD CONSTRAINT dtmf_receive_modes_pkey PRIMARY KEY (id); @@ -30931,7 +30834,7 @@ ALTER TABLE ONLY dtmf_receive_modes -- Name: dtmf_send_modes_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY dtmf_send_modes +ALTER TABLE ONLY class4.dtmf_send_modes ADD CONSTRAINT dtmf_send_modes_name_key UNIQUE (name); @@ -30939,7 +30842,7 @@ ALTER TABLE ONLY dtmf_send_modes -- Name: dtmf_send_modes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY dtmf_send_modes +ALTER TABLE ONLY class4.dtmf_send_modes ADD CONSTRAINT dtmf_send_modes_pkey PRIMARY KEY (id); @@ -30947,7 +30850,7 @@ ALTER TABLE ONLY dtmf_send_modes -- Name: dump_level_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY dump_level +ALTER TABLE ONLY class4.dump_level ADD CONSTRAINT dump_level_name_key UNIQUE (name); @@ -30955,7 +30858,7 @@ ALTER TABLE ONLY dump_level -- Name: dump_level_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY dump_level +ALTER TABLE ONLY class4.dump_level ADD CONSTRAINT dump_level_pkey PRIMARY KEY (id); @@ -30963,7 +30866,7 @@ ALTER TABLE ONLY dump_level -- Name: filter_types_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY filter_types +ALTER TABLE ONLY class4.filter_types ADD CONSTRAINT filter_types_pkey PRIMARY KEY (id); @@ -30971,7 +30874,7 @@ ALTER TABLE ONLY filter_types -- Name: gateway_groups_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY gateway_groups +ALTER TABLE ONLY class4.gateway_groups ADD CONSTRAINT gateway_groups_name_key UNIQUE (name); @@ -30979,7 +30882,7 @@ ALTER TABLE ONLY gateway_groups -- Name: gateway_groups_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY gateway_groups +ALTER TABLE ONLY class4.gateway_groups ADD CONSTRAINT gateway_groups_pkey PRIMARY KEY (id); @@ -30987,7 +30890,7 @@ ALTER TABLE ONLY gateway_groups -- Name: gateway_inband_dtmf_filtering_modes_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY gateway_inband_dtmf_filtering_modes +ALTER TABLE ONLY class4.gateway_inband_dtmf_filtering_modes ADD CONSTRAINT gateway_inband_dtmf_filtering_modes_name_key UNIQUE (name); @@ -30995,7 +30898,7 @@ ALTER TABLE ONLY gateway_inband_dtmf_filtering_modes -- Name: gateway_inband_dtmf_filtering_modes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY gateway_inband_dtmf_filtering_modes +ALTER TABLE ONLY class4.gateway_inband_dtmf_filtering_modes ADD CONSTRAINT gateway_inband_dtmf_filtering_modes_pkey PRIMARY KEY (id); @@ -31003,7 +30906,7 @@ ALTER TABLE ONLY gateway_inband_dtmf_filtering_modes -- Name: gateway_rel100_modes_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY gateway_rel100_modes +ALTER TABLE ONLY class4.gateway_rel100_modes ADD CONSTRAINT gateway_rel100_modes_name_key UNIQUE (name); @@ -31011,7 +30914,7 @@ ALTER TABLE ONLY gateway_rel100_modes -- Name: gateway_rel100_modes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY gateway_rel100_modes +ALTER TABLE ONLY class4.gateway_rel100_modes ADD CONSTRAINT gateway_rel100_modes_pkey PRIMARY KEY (id); @@ -31019,7 +30922,7 @@ ALTER TABLE ONLY gateway_rel100_modes -- Name: gateways_name_unique; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY gateways +ALTER TABLE ONLY class4.gateways ADD CONSTRAINT gateways_name_unique UNIQUE (name); @@ -31027,7 +30930,7 @@ ALTER TABLE ONLY gateways -- Name: gateways_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY gateways +ALTER TABLE ONLY class4.gateways ADD CONSTRAINT gateways_pkey PRIMARY KEY (id); @@ -31035,7 +30938,7 @@ ALTER TABLE ONLY gateways -- Name: lnp_cache_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY lnp_cache +ALTER TABLE ONLY class4.lnp_cache ADD CONSTRAINT lnp_cache_pkey PRIMARY KEY (id); @@ -31043,7 +30946,7 @@ ALTER TABLE ONLY lnp_cache -- Name: lnp_databases_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY lnp_databases +ALTER TABLE ONLY class4.lnp_databases ADD CONSTRAINT lnp_databases_name_key UNIQUE (name); @@ -31051,7 +30954,7 @@ ALTER TABLE ONLY lnp_databases -- Name: lnp_databases_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY lnp_databases +ALTER TABLE ONLY class4.lnp_databases ADD CONSTRAINT lnp_databases_pkey PRIMARY KEY (id); @@ -31059,7 +30962,7 @@ ALTER TABLE ONLY lnp_databases -- Name: numberlist_actions_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY numberlist_actions +ALTER TABLE ONLY class4.numberlist_actions ADD CONSTRAINT numberlist_actions_name_key UNIQUE (name); @@ -31067,7 +30970,7 @@ ALTER TABLE ONLY numberlist_actions -- Name: numberlist_actions_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY numberlist_actions +ALTER TABLE ONLY class4.numberlist_actions ADD CONSTRAINT numberlist_actions_pkey PRIMARY KEY (id); @@ -31075,7 +30978,7 @@ ALTER TABLE ONLY numberlist_actions -- Name: radius_accounting_profile_interim_attributes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY radius_accounting_profile_interim_attributes +ALTER TABLE ONLY class4.radius_accounting_profile_interim_attributes ADD CONSTRAINT radius_accounting_profile_interim_attributes_pkey PRIMARY KEY (id); @@ -31083,7 +30986,7 @@ ALTER TABLE ONLY radius_accounting_profile_interim_attributes -- Name: radius_accounting_profile_start_attributes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY radius_accounting_profile_start_attributes +ALTER TABLE ONLY class4.radius_accounting_profile_start_attributes ADD CONSTRAINT radius_accounting_profile_start_attributes_pkey PRIMARY KEY (id); @@ -31091,7 +30994,7 @@ ALTER TABLE ONLY radius_accounting_profile_start_attributes -- Name: radius_accounting_profile_stop_attributes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY radius_accounting_profile_stop_attributes +ALTER TABLE ONLY class4.radius_accounting_profile_stop_attributes ADD CONSTRAINT radius_accounting_profile_stop_attributes_pkey PRIMARY KEY (id); @@ -31099,7 +31002,7 @@ ALTER TABLE ONLY radius_accounting_profile_stop_attributes -- Name: radius_accounting_profiles_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY radius_accounting_profiles +ALTER TABLE ONLY class4.radius_accounting_profiles ADD CONSTRAINT radius_accounting_profiles_name_key UNIQUE (name); @@ -31107,7 +31010,7 @@ ALTER TABLE ONLY radius_accounting_profiles -- Name: radius_accounting_profiles_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY radius_accounting_profiles +ALTER TABLE ONLY class4.radius_accounting_profiles ADD CONSTRAINT radius_accounting_profiles_pkey PRIMARY KEY (id); @@ -31115,7 +31018,7 @@ ALTER TABLE ONLY radius_accounting_profiles -- Name: radius_auth_profile_attributes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY radius_auth_profile_attributes +ALTER TABLE ONLY class4.radius_auth_profile_attributes ADD CONSTRAINT radius_auth_profile_attributes_pkey PRIMARY KEY (id); @@ -31123,7 +31026,7 @@ ALTER TABLE ONLY radius_auth_profile_attributes -- Name: radius_auth_profiles_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY radius_auth_profiles +ALTER TABLE ONLY class4.radius_auth_profiles ADD CONSTRAINT radius_auth_profiles_name_key UNIQUE (name); @@ -31131,7 +31034,7 @@ ALTER TABLE ONLY radius_auth_profiles -- Name: radius_auth_profiles_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY radius_auth_profiles +ALTER TABLE ONLY class4.radius_auth_profiles ADD CONSTRAINT radius_auth_profiles_pkey PRIMARY KEY (id); @@ -31139,7 +31042,7 @@ ALTER TABLE ONLY radius_auth_profiles -- Name: rate_profit_control_modes_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY rate_profit_control_modes +ALTER TABLE ONLY class4.rate_profit_control_modes ADD CONSTRAINT rate_profit_control_modes_name_key UNIQUE (name); @@ -31147,7 +31050,7 @@ ALTER TABLE ONLY rate_profit_control_modes -- Name: rate_profit_control_modes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY rate_profit_control_modes +ALTER TABLE ONLY class4.rate_profit_control_modes ADD CONSTRAINT rate_profit_control_modes_pkey PRIMARY KEY (id); @@ -31155,7 +31058,7 @@ ALTER TABLE ONLY rate_profit_control_modes -- Name: rateplans_name_unique; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY rateplans +ALTER TABLE ONLY class4.rateplans ADD CONSTRAINT rateplans_name_unique UNIQUE (name); @@ -31163,7 +31066,7 @@ ALTER TABLE ONLY rateplans -- Name: rateplans_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY rateplans +ALTER TABLE ONLY class4.rateplans ADD CONSTRAINT rateplans_pkey PRIMARY KEY (id); @@ -31171,7 +31074,7 @@ ALTER TABLE ONLY rateplans -- Name: rateplans_uuid_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY rateplans +ALTER TABLE ONLY class4.rateplans ADD CONSTRAINT rateplans_uuid_key UNIQUE (uuid); @@ -31179,7 +31082,7 @@ ALTER TABLE ONLY rateplans -- Name: registrations_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY registrations +ALTER TABLE ONLY class4.registrations ADD CONSTRAINT registrations_name_key UNIQUE (name); @@ -31187,7 +31090,7 @@ ALTER TABLE ONLY registrations -- Name: registrations_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY registrations +ALTER TABLE ONLY class4.registrations ADD CONSTRAINT registrations_pkey PRIMARY KEY (id); @@ -31195,7 +31098,7 @@ ALTER TABLE ONLY registrations -- Name: routing_groups_name_unique; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_groups +ALTER TABLE ONLY class4.routing_groups ADD CONSTRAINT routing_groups_name_unique UNIQUE (name); @@ -31203,7 +31106,7 @@ ALTER TABLE ONLY routing_groups -- Name: routing_groups_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_groups +ALTER TABLE ONLY class4.routing_groups ADD CONSTRAINT routing_groups_pkey PRIMARY KEY (id); @@ -31211,7 +31114,7 @@ ALTER TABLE ONLY routing_groups -- Name: routing_plan_groups_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_plan_groups +ALTER TABLE ONLY class4.routing_plan_groups ADD CONSTRAINT routing_plan_groups_pkey PRIMARY KEY (id); @@ -31219,7 +31122,7 @@ ALTER TABLE ONLY routing_plan_groups -- Name: routing_plan_groups_routing_plan_id_routing_group_id_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_plan_groups +ALTER TABLE ONLY class4.routing_plan_groups ADD CONSTRAINT routing_plan_groups_routing_plan_id_routing_group_id_key UNIQUE (routing_plan_id, routing_group_id); @@ -31227,7 +31130,7 @@ ALTER TABLE ONLY routing_plan_groups -- Name: routing_plan_lnp_rules_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_plan_lnp_rules +ALTER TABLE ONLY class4.routing_plan_lnp_rules ADD CONSTRAINT routing_plan_lnp_rules_pkey PRIMARY KEY (id); @@ -31235,7 +31138,7 @@ ALTER TABLE ONLY routing_plan_lnp_rules -- Name: routing_plan_static_routes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_plan_static_routes +ALTER TABLE ONLY class4.routing_plan_static_routes ADD CONSTRAINT routing_plan_static_routes_pkey PRIMARY KEY (id); @@ -31243,7 +31146,7 @@ ALTER TABLE ONLY routing_plan_static_routes -- Name: routing_plans_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_plans +ALTER TABLE ONLY class4.routing_plans ADD CONSTRAINT routing_plans_name_key UNIQUE (name); @@ -31251,7 +31154,7 @@ ALTER TABLE ONLY routing_plans -- Name: routing_plans_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_plans +ALTER TABLE ONLY class4.routing_plans ADD CONSTRAINT routing_plans_pkey PRIMARY KEY (id); @@ -31259,7 +31162,7 @@ ALTER TABLE ONLY routing_plans -- Name: routing_tag_detection_rules_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_tag_detection_rules +ALTER TABLE ONLY class4.routing_tag_detection_rules ADD CONSTRAINT routing_tag_detection_rules_pkey PRIMARY KEY (id); @@ -31267,7 +31170,7 @@ ALTER TABLE ONLY routing_tag_detection_rules -- Name: routing_tag_modes_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_tag_modes +ALTER TABLE ONLY class4.routing_tag_modes ADD CONSTRAINT routing_tag_modes_name_key UNIQUE (name); @@ -31275,7 +31178,7 @@ ALTER TABLE ONLY routing_tag_modes -- Name: routing_tag_modes_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_tag_modes +ALTER TABLE ONLY class4.routing_tag_modes ADD CONSTRAINT routing_tag_modes_pkey PRIMARY KEY (id); @@ -31283,7 +31186,7 @@ ALTER TABLE ONLY routing_tag_modes -- Name: routing_tags_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_tags +ALTER TABLE ONLY class4.routing_tags ADD CONSTRAINT routing_tags_name_key UNIQUE (name); @@ -31291,7 +31194,7 @@ ALTER TABLE ONLY routing_tags -- Name: routing_tags_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY routing_tags +ALTER TABLE ONLY class4.routing_tags ADD CONSTRAINT routing_tags_pkey PRIMARY KEY (id); @@ -31299,7 +31202,7 @@ ALTER TABLE ONLY routing_tags -- Name: sdp_c_location_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY sdp_c_location +ALTER TABLE ONLY class4.sdp_c_location ADD CONSTRAINT sdp_c_location_name_key UNIQUE (name); @@ -31307,7 +31210,7 @@ ALTER TABLE ONLY sdp_c_location -- Name: sdp_c_location_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY sdp_c_location +ALTER TABLE ONLY class4.sdp_c_location ADD CONSTRAINT sdp_c_location_pkey PRIMARY KEY (id); @@ -31315,7 +31218,7 @@ ALTER TABLE ONLY sdp_c_location -- Name: session_refresh_methods_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY session_refresh_methods +ALTER TABLE ONLY class4.session_refresh_methods ADD CONSTRAINT session_refresh_methods_pkey PRIMARY KEY (id); @@ -31323,7 +31226,7 @@ ALTER TABLE ONLY session_refresh_methods -- Name: sortings_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY sortings +ALTER TABLE ONLY class4.sortings ADD CONSTRAINT sortings_pkey PRIMARY KEY (id); @@ -31331,7 +31234,7 @@ ALTER TABLE ONLY sortings -- Name: tag_actions_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY tag_actions +ALTER TABLE ONLY class4.tag_actions ADD CONSTRAINT tag_actions_name_key UNIQUE (name); @@ -31339,7 +31242,7 @@ ALTER TABLE ONLY tag_actions -- Name: tag_actions_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY tag_actions +ALTER TABLE ONLY class4.tag_actions ADD CONSTRAINT tag_actions_pkey PRIMARY KEY (id); @@ -31347,7 +31250,7 @@ ALTER TABLE ONLY tag_actions -- Name: transport_protocols_name_key; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY transport_protocols +ALTER TABLE ONLY class4.transport_protocols ADD CONSTRAINT transport_protocols_name_key UNIQUE (name); @@ -31355,17 +31258,15 @@ ALTER TABLE ONLY transport_protocols -- Name: transport_protocols_pkey; Type: CONSTRAINT; Schema: class4; Owner: -; Tablespace: -- -ALTER TABLE ONLY transport_protocols +ALTER TABLE ONLY class4.transport_protocols ADD CONSTRAINT transport_protocols_pkey PRIMARY KEY (id); -SET search_path = data_import, pg_catalog; - -- -- Name: import_accounts_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_accounts +ALTER TABLE ONLY data_import.import_accounts ADD CONSTRAINT import_accounts_pkey PRIMARY KEY (id); @@ -31373,7 +31274,7 @@ ALTER TABLE ONLY import_accounts -- Name: import_codec_group_codecs_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_codec_group_codecs +ALTER TABLE ONLY data_import.import_codec_group_codecs ADD CONSTRAINT import_codec_group_codecs_pkey PRIMARY KEY (id); @@ -31381,7 +31282,7 @@ ALTER TABLE ONLY import_codec_group_codecs -- Name: import_codec_groups_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_codec_groups +ALTER TABLE ONLY data_import.import_codec_groups ADD CONSTRAINT import_codec_groups_pkey PRIMARY KEY (id); @@ -31389,7 +31290,7 @@ ALTER TABLE ONLY import_codec_groups -- Name: import_contractors_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_contractors +ALTER TABLE ONLY data_import.import_contractors ADD CONSTRAINT import_contractors_pkey PRIMARY KEY (id); @@ -31397,7 +31298,7 @@ ALTER TABLE ONLY import_contractors -- Name: import_customers_auth_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_customers_auth +ALTER TABLE ONLY data_import.import_customers_auth ADD CONSTRAINT import_customers_auth_pkey PRIMARY KEY (id); @@ -31405,7 +31306,7 @@ ALTER TABLE ONLY import_customers_auth -- Name: import_destinations_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_destinations +ALTER TABLE ONLY data_import.import_destinations ADD CONSTRAINT import_destinations_pkey PRIMARY KEY (id); @@ -31413,7 +31314,7 @@ ALTER TABLE ONLY import_destinations -- Name: import_dialpeers_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_dialpeers +ALTER TABLE ONLY data_import.import_dialpeers ADD CONSTRAINT import_dialpeers_pkey PRIMARY KEY (id); @@ -31421,7 +31322,7 @@ ALTER TABLE ONLY import_dialpeers -- Name: import_disconnect_policies_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_disconnect_policies +ALTER TABLE ONLY data_import.import_disconnect_policies ADD CONSTRAINT import_disconnect_policies_pkey PRIMARY KEY (id); @@ -31429,7 +31330,7 @@ ALTER TABLE ONLY import_disconnect_policies -- Name: import_gateway_groups_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_gateway_groups +ALTER TABLE ONLY data_import.import_gateway_groups ADD CONSTRAINT import_gateway_groups_pkey PRIMARY KEY (id); @@ -31437,7 +31338,7 @@ ALTER TABLE ONLY import_gateway_groups -- Name: import_gateways_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_gateways +ALTER TABLE ONLY data_import.import_gateways ADD CONSTRAINT import_gateways_pkey PRIMARY KEY (id); @@ -31445,7 +31346,7 @@ ALTER TABLE ONLY import_gateways -- Name: import_numberlist_items_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_numberlist_items +ALTER TABLE ONLY data_import.import_numberlist_items ADD CONSTRAINT import_numberlist_items_pkey PRIMARY KEY (id); @@ -31453,7 +31354,7 @@ ALTER TABLE ONLY import_numberlist_items -- Name: import_numberlists_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_numberlists +ALTER TABLE ONLY data_import.import_numberlists ADD CONSTRAINT import_numberlists_pkey PRIMARY KEY (id); @@ -31461,7 +31362,7 @@ ALTER TABLE ONLY import_numberlists -- Name: import_rateplans_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_rateplans +ALTER TABLE ONLY data_import.import_rateplans ADD CONSTRAINT import_rateplans_pkey PRIMARY KEY (id); @@ -31469,7 +31370,7 @@ ALTER TABLE ONLY import_rateplans -- Name: import_registrations_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_registrations +ALTER TABLE ONLY data_import.import_registrations ADD CONSTRAINT import_registrations_pkey PRIMARY KEY (id); @@ -31477,17 +31378,15 @@ ALTER TABLE ONLY import_registrations -- Name: import_routing_groups_pkey; Type: CONSTRAINT; Schema: data_import; Owner: -; Tablespace: -- -ALTER TABLE ONLY import_routing_groups +ALTER TABLE ONLY data_import.import_routing_groups ADD CONSTRAINT import_routing_groups_pkey PRIMARY KEY (id); -SET search_path = gui, pg_catalog; - -- -- Name: admin_notes_pkey; Type: CONSTRAINT; Schema: gui; Owner: -; Tablespace: -- -ALTER TABLE ONLY active_admin_comments +ALTER TABLE ONLY gui.active_admin_comments ADD CONSTRAINT admin_notes_pkey PRIMARY KEY (id); @@ -31495,7 +31394,7 @@ ALTER TABLE ONLY active_admin_comments -- Name: admin_users_pkey; Type: CONSTRAINT; Schema: gui; Owner: -; Tablespace: -- -ALTER TABLE ONLY admin_users +ALTER TABLE ONLY gui.admin_users ADD CONSTRAINT admin_users_pkey PRIMARY KEY (id); @@ -31503,7 +31402,7 @@ ALTER TABLE ONLY admin_users -- Name: admin_users_username_key; Type: CONSTRAINT; Schema: gui; Owner: -; Tablespace: -- -ALTER TABLE ONLY admin_users +ALTER TABLE ONLY gui.admin_users ADD CONSTRAINT admin_users_username_key UNIQUE (username); @@ -31511,7 +31410,7 @@ ALTER TABLE ONLY admin_users -- Name: background_threads_pkey; Type: CONSTRAINT; Schema: gui; Owner: -; Tablespace: -- -ALTER TABLE ONLY background_threads +ALTER TABLE ONLY gui.background_threads ADD CONSTRAINT background_threads_pkey PRIMARY KEY (id); @@ -31519,7 +31418,7 @@ ALTER TABLE ONLY background_threads -- Name: sessions_pkey; Type: CONSTRAINT; Schema: gui; Owner: -; Tablespace: -- -ALTER TABLE ONLY sessions +ALTER TABLE ONLY gui.sessions ADD CONSTRAINT sessions_pkey PRIMARY KEY (id); @@ -31527,7 +31426,7 @@ ALTER TABLE ONLY sessions -- Name: sessions_session_id_key; Type: CONSTRAINT; Schema: gui; Owner: -; Tablespace: -- -ALTER TABLE ONLY sessions +ALTER TABLE ONLY gui.sessions ADD CONSTRAINT sessions_session_id_key UNIQUE (session_id); @@ -31535,17 +31434,15 @@ ALTER TABLE ONLY sessions -- Name: versions_pkey; Type: CONSTRAINT; Schema: gui; Owner: -; Tablespace: -- -ALTER TABLE ONLY versions +ALTER TABLE ONLY gui.versions ADD CONSTRAINT versions_pkey PRIMARY KEY (id); -SET search_path = logs, pg_catalog; - -- -- Name: api_requests_pkey; Type: CONSTRAINT; Schema: logs; Owner: -; Tablespace: -- -ALTER TABLE ONLY api_requests +ALTER TABLE ONLY logs.api_requests ADD CONSTRAINT api_requests_pkey PRIMARY KEY (id); @@ -31553,7 +31450,7 @@ ALTER TABLE ONLY api_requests -- Name: balance_notifications_pkey; Type: CONSTRAINT; Schema: logs; Owner: -; Tablespace: -- -ALTER TABLE ONLY balance_notifications +ALTER TABLE ONLY logs.balance_notifications ADD CONSTRAINT balance_notifications_pkey PRIMARY KEY (id); @@ -31561,17 +31458,15 @@ ALTER TABLE ONLY balance_notifications -- Name: logic_log_pkey; Type: CONSTRAINT; Schema: logs; Owner: -; Tablespace: -- -ALTER TABLE ONLY logic_log +ALTER TABLE ONLY logs.logic_log ADD CONSTRAINT logic_log_pkey PRIMARY KEY (id); -SET search_path = notifications, pg_catalog; - -- -- Name: alerts_event_key; Type: CONSTRAINT; Schema: notifications; Owner: -; Tablespace: -- -ALTER TABLE ONLY alerts +ALTER TABLE ONLY notifications.alerts ADD CONSTRAINT alerts_event_key UNIQUE (event); @@ -31579,7 +31474,7 @@ ALTER TABLE ONLY alerts -- Name: alerts_pkey; Type: CONSTRAINT; Schema: notifications; Owner: -; Tablespace: -- -ALTER TABLE ONLY alerts +ALTER TABLE ONLY notifications.alerts ADD CONSTRAINT alerts_pkey PRIMARY KEY (id); @@ -31587,7 +31482,7 @@ ALTER TABLE ONLY alerts -- Name: attachments_pkey; Type: CONSTRAINT; Schema: notifications; Owner: -; Tablespace: -- -ALTER TABLE ONLY attachments +ALTER TABLE ONLY notifications.attachments ADD CONSTRAINT attachments_pkey PRIMARY KEY (id); @@ -31595,7 +31490,7 @@ ALTER TABLE ONLY attachments -- Name: contacts_pkey; Type: CONSTRAINT; Schema: notifications; Owner: -; Tablespace: -- -ALTER TABLE ONLY contacts +ALTER TABLE ONLY notifications.contacts ADD CONSTRAINT contacts_pkey PRIMARY KEY (id); @@ -31603,17 +31498,15 @@ ALTER TABLE ONLY contacts -- Name: email_log_pkey; Type: CONSTRAINT; Schema: notifications; Owner: -; Tablespace: -- -ALTER TABLE ONLY email_logs +ALTER TABLE ONLY notifications.email_logs ADD CONSTRAINT email_log_pkey PRIMARY KEY (id); -SET search_path = public, pg_catalog; - -- -- Name: ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- -ALTER TABLE ONLY ar_internal_metadata +ALTER TABLE ONLY public.ar_internal_metadata ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key); @@ -31621,7 +31514,7 @@ ALTER TABLE ONLY ar_internal_metadata -- Name: contractors_external_id_key; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- -ALTER TABLE ONLY contractors +ALTER TABLE ONLY public.contractors ADD CONSTRAINT contractors_external_id_key UNIQUE (external_id); @@ -31629,7 +31522,7 @@ ALTER TABLE ONLY contractors -- Name: contractors_name_unique; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- -ALTER TABLE ONLY contractors +ALTER TABLE ONLY public.contractors ADD CONSTRAINT contractors_name_unique UNIQUE (name); @@ -31637,7 +31530,7 @@ ALTER TABLE ONLY contractors -- Name: contractors_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- -ALTER TABLE ONLY contractors +ALTER TABLE ONLY public.contractors ADD CONSTRAINT contractors_pkey PRIMARY KEY (id); @@ -31645,17 +31538,15 @@ ALTER TABLE ONLY contractors -- Name: new_table_0_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- -ALTER TABLE ONLY new_table_0 +ALTER TABLE ONLY public.new_table_0 ADD CONSTRAINT new_table_0_pkey PRIMARY KEY (id); -SET search_path = runtime_stats, pg_catalog; - -- -- Name: dialpeers_stats_pkey; Type: CONSTRAINT; Schema: runtime_stats; Owner: -; Tablespace: -- -ALTER TABLE ONLY dialpeers_stats +ALTER TABLE ONLY runtime_stats.dialpeers_stats ADD CONSTRAINT dialpeers_stats_pkey PRIMARY KEY (id); @@ -31663,7 +31554,7 @@ ALTER TABLE ONLY dialpeers_stats -- Name: gateways_stats_pkey; Type: CONSTRAINT; Schema: runtime_stats; Owner: -; Tablespace: -- -ALTER TABLE ONLY gateways_stats +ALTER TABLE ONLY runtime_stats.gateways_stats ADD CONSTRAINT gateways_stats_pkey PRIMARY KEY (id); @@ -31671,7 +31562,7 @@ ALTER TABLE ONLY gateways_stats -- Name: unique_dp; Type: CONSTRAINT; Schema: runtime_stats; Owner: -; Tablespace: -- -ALTER TABLE ONLY dialpeers_stats +ALTER TABLE ONLY runtime_stats.dialpeers_stats ADD CONSTRAINT unique_dp UNIQUE (dialpeer_id); @@ -31679,17 +31570,15 @@ ALTER TABLE ONLY dialpeers_stats -- Name: unique_gw; Type: CONSTRAINT; Schema: runtime_stats; Owner: -; Tablespace: -- -ALTER TABLE ONLY gateways_stats +ALTER TABLE ONLY runtime_stats.gateways_stats ADD CONSTRAINT unique_gw UNIQUE (gateway_id); -SET search_path = switch13, pg_catalog; - -- -- Name: resource_action_name_key; Type: CONSTRAINT; Schema: switch13; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_action +ALTER TABLE ONLY switch13.resource_action ADD CONSTRAINT resource_action_name_key UNIQUE (name); @@ -31697,7 +31586,7 @@ ALTER TABLE ONLY resource_action -- Name: resource_action_pkey; Type: CONSTRAINT; Schema: switch13; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_action +ALTER TABLE ONLY switch13.resource_action ADD CONSTRAINT resource_action_pkey PRIMARY KEY (id); @@ -31705,7 +31594,7 @@ ALTER TABLE ONLY resource_action -- Name: resource_type_name_key; Type: CONSTRAINT; Schema: switch13; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_type +ALTER TABLE ONLY switch13.resource_type ADD CONSTRAINT resource_type_name_key UNIQUE (name); @@ -31713,7 +31602,7 @@ ALTER TABLE ONLY resource_type -- Name: resource_type_pkey; Type: CONSTRAINT; Schema: switch13; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_type +ALTER TABLE ONLY switch13.resource_type ADD CONSTRAINT resource_type_pkey PRIMARY KEY (id); @@ -31721,7 +31610,7 @@ ALTER TABLE ONLY resource_type -- Name: switch_in_interface_pkey; Type: CONSTRAINT; Schema: switch13; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_in +ALTER TABLE ONLY switch13.switch_interface_in ADD CONSTRAINT switch_in_interface_pkey PRIMARY KEY (id); @@ -31729,7 +31618,7 @@ ALTER TABLE ONLY switch_interface_in -- Name: switch_in_interface_rank_key; Type: CONSTRAINT; Schema: switch13; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_in +ALTER TABLE ONLY switch13.switch_interface_in ADD CONSTRAINT switch_in_interface_rank_key UNIQUE (rank); @@ -31737,7 +31626,7 @@ ALTER TABLE ONLY switch_interface_in -- Name: switch_interface_pkey; Type: CONSTRAINT; Schema: switch13; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_out +ALTER TABLE ONLY switch13.switch_interface_out ADD CONSTRAINT switch_interface_pkey PRIMARY KEY (id); @@ -31745,7 +31634,7 @@ ALTER TABLE ONLY switch_interface_out -- Name: switch_interface_rank_key; Type: CONSTRAINT; Schema: switch13; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_out +ALTER TABLE ONLY switch13.switch_interface_out ADD CONSTRAINT switch_interface_rank_key UNIQUE (rank); @@ -31753,17 +31642,15 @@ ALTER TABLE ONLY switch_interface_out -- Name: trusted_headers_pkey; Type: CONSTRAINT; Schema: switch13; Owner: -; Tablespace: -- -ALTER TABLE ONLY trusted_headers +ALTER TABLE ONLY switch13.trusted_headers ADD CONSTRAINT trusted_headers_pkey PRIMARY KEY (id); -SET search_path = switch14, pg_catalog; - -- -- Name: resource_action_name_key; Type: CONSTRAINT; Schema: switch14; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_action +ALTER TABLE ONLY switch14.resource_action ADD CONSTRAINT resource_action_name_key UNIQUE (name); @@ -31771,7 +31658,7 @@ ALTER TABLE ONLY resource_action -- Name: resource_action_pkey; Type: CONSTRAINT; Schema: switch14; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_action +ALTER TABLE ONLY switch14.resource_action ADD CONSTRAINT resource_action_pkey PRIMARY KEY (id); @@ -31779,7 +31666,7 @@ ALTER TABLE ONLY resource_action -- Name: resource_type_name_key; Type: CONSTRAINT; Schema: switch14; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_type +ALTER TABLE ONLY switch14.resource_type ADD CONSTRAINT resource_type_name_key UNIQUE (name); @@ -31787,7 +31674,7 @@ ALTER TABLE ONLY resource_type -- Name: resource_type_pkey; Type: CONSTRAINT; Schema: switch14; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_type +ALTER TABLE ONLY switch14.resource_type ADD CONSTRAINT resource_type_pkey PRIMARY KEY (id); @@ -31795,7 +31682,7 @@ ALTER TABLE ONLY resource_type -- Name: switch_in_interface_pkey; Type: CONSTRAINT; Schema: switch14; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_in +ALTER TABLE ONLY switch14.switch_interface_in ADD CONSTRAINT switch_in_interface_pkey PRIMARY KEY (id); @@ -31803,7 +31690,7 @@ ALTER TABLE ONLY switch_interface_in -- Name: switch_in_interface_rank_key; Type: CONSTRAINT; Schema: switch14; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_in +ALTER TABLE ONLY switch14.switch_interface_in ADD CONSTRAINT switch_in_interface_rank_key UNIQUE (rank); @@ -31811,7 +31698,7 @@ ALTER TABLE ONLY switch_interface_in -- Name: switch_interface_pkey; Type: CONSTRAINT; Schema: switch14; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_out +ALTER TABLE ONLY switch14.switch_interface_out ADD CONSTRAINT switch_interface_pkey PRIMARY KEY (id); @@ -31819,7 +31706,7 @@ ALTER TABLE ONLY switch_interface_out -- Name: switch_interface_rank_key; Type: CONSTRAINT; Schema: switch14; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_out +ALTER TABLE ONLY switch14.switch_interface_out ADD CONSTRAINT switch_interface_rank_key UNIQUE (rank); @@ -31827,17 +31714,15 @@ ALTER TABLE ONLY switch_interface_out -- Name: trusted_headers_pkey; Type: CONSTRAINT; Schema: switch14; Owner: -; Tablespace: -- -ALTER TABLE ONLY trusted_headers +ALTER TABLE ONLY switch14.trusted_headers ADD CONSTRAINT trusted_headers_pkey PRIMARY KEY (id); -SET search_path = switch15, pg_catalog; - -- -- Name: resource_action_name_key; Type: CONSTRAINT; Schema: switch15; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_action +ALTER TABLE ONLY switch15.resource_action ADD CONSTRAINT resource_action_name_key UNIQUE (name); @@ -31845,7 +31730,7 @@ ALTER TABLE ONLY resource_action -- Name: resource_action_pkey; Type: CONSTRAINT; Schema: switch15; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_action +ALTER TABLE ONLY switch15.resource_action ADD CONSTRAINT resource_action_pkey PRIMARY KEY (id); @@ -31853,7 +31738,7 @@ ALTER TABLE ONLY resource_action -- Name: resource_type_name_key; Type: CONSTRAINT; Schema: switch15; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_type +ALTER TABLE ONLY switch15.resource_type ADD CONSTRAINT resource_type_name_key UNIQUE (name); @@ -31861,7 +31746,7 @@ ALTER TABLE ONLY resource_type -- Name: resource_type_pkey; Type: CONSTRAINT; Schema: switch15; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_type +ALTER TABLE ONLY switch15.resource_type ADD CONSTRAINT resource_type_pkey PRIMARY KEY (id); @@ -31869,7 +31754,7 @@ ALTER TABLE ONLY resource_type -- Name: switch_in_interface_pkey; Type: CONSTRAINT; Schema: switch15; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_in +ALTER TABLE ONLY switch15.switch_interface_in ADD CONSTRAINT switch_in_interface_pkey PRIMARY KEY (id); @@ -31877,7 +31762,7 @@ ALTER TABLE ONLY switch_interface_in -- Name: switch_in_interface_rank_key; Type: CONSTRAINT; Schema: switch15; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_in +ALTER TABLE ONLY switch15.switch_interface_in ADD CONSTRAINT switch_in_interface_rank_key UNIQUE (rank); @@ -31885,7 +31770,7 @@ ALTER TABLE ONLY switch_interface_in -- Name: switch_interface_pkey; Type: CONSTRAINT; Schema: switch15; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_out +ALTER TABLE ONLY switch15.switch_interface_out ADD CONSTRAINT switch_interface_pkey PRIMARY KEY (id); @@ -31893,7 +31778,7 @@ ALTER TABLE ONLY switch_interface_out -- Name: switch_interface_rank_key; Type: CONSTRAINT; Schema: switch15; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_out +ALTER TABLE ONLY switch15.switch_interface_out ADD CONSTRAINT switch_interface_rank_key UNIQUE (rank); @@ -31901,17 +31786,15 @@ ALTER TABLE ONLY switch_interface_out -- Name: trusted_headers_pkey; Type: CONSTRAINT; Schema: switch15; Owner: -; Tablespace: -- -ALTER TABLE ONLY trusted_headers +ALTER TABLE ONLY switch15.trusted_headers ADD CONSTRAINT trusted_headers_pkey PRIMARY KEY (id); -SET search_path = switch16, pg_catalog; - -- -- Name: resource_action_name_key; Type: CONSTRAINT; Schema: switch16; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_action +ALTER TABLE ONLY switch16.resource_action ADD CONSTRAINT resource_action_name_key UNIQUE (name); @@ -31919,7 +31802,7 @@ ALTER TABLE ONLY resource_action -- Name: resource_action_pkey; Type: CONSTRAINT; Schema: switch16; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_action +ALTER TABLE ONLY switch16.resource_action ADD CONSTRAINT resource_action_pkey PRIMARY KEY (id); @@ -31927,7 +31810,7 @@ ALTER TABLE ONLY resource_action -- Name: resource_type_name_key; Type: CONSTRAINT; Schema: switch16; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_type +ALTER TABLE ONLY switch16.resource_type ADD CONSTRAINT resource_type_name_key UNIQUE (name); @@ -31935,7 +31818,7 @@ ALTER TABLE ONLY resource_type -- Name: resource_type_pkey; Type: CONSTRAINT; Schema: switch16; Owner: -; Tablespace: -- -ALTER TABLE ONLY resource_type +ALTER TABLE ONLY switch16.resource_type ADD CONSTRAINT resource_type_pkey PRIMARY KEY (id); @@ -31943,7 +31826,7 @@ ALTER TABLE ONLY resource_type -- Name: switch_in_interface_pkey; Type: CONSTRAINT; Schema: switch16; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_in +ALTER TABLE ONLY switch16.switch_interface_in ADD CONSTRAINT switch_in_interface_pkey PRIMARY KEY (id); @@ -31951,7 +31834,7 @@ ALTER TABLE ONLY switch_interface_in -- Name: switch_in_interface_rank_key; Type: CONSTRAINT; Schema: switch16; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_in +ALTER TABLE ONLY switch16.switch_interface_in ADD CONSTRAINT switch_in_interface_rank_key UNIQUE (rank); @@ -31959,7 +31842,7 @@ ALTER TABLE ONLY switch_interface_in -- Name: switch_interface_pkey; Type: CONSTRAINT; Schema: switch16; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_out +ALTER TABLE ONLY switch16.switch_interface_out ADD CONSTRAINT switch_interface_pkey PRIMARY KEY (id); @@ -31967,7 +31850,7 @@ ALTER TABLE ONLY switch_interface_out -- Name: switch_interface_rank_key; Type: CONSTRAINT; Schema: switch16; Owner: -; Tablespace: -- -ALTER TABLE ONLY switch_interface_out +ALTER TABLE ONLY switch16.switch_interface_out ADD CONSTRAINT switch_interface_rank_key UNIQUE (rank); @@ -31975,17 +31858,15 @@ ALTER TABLE ONLY switch_interface_out -- Name: trusted_headers_pkey; Type: CONSTRAINT; Schema: switch16; Owner: -; Tablespace: -- -ALTER TABLE ONLY trusted_headers +ALTER TABLE ONLY switch16.trusted_headers ADD CONSTRAINT trusted_headers_pkey PRIMARY KEY (id); -SET search_path = sys, pg_catalog; - -- -- Name: active_currencies_currency_id_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY active_currencies +ALTER TABLE ONLY sys.active_currencies ADD CONSTRAINT active_currencies_currency_id_key UNIQUE (currency_id); @@ -31993,7 +31874,7 @@ ALTER TABLE ONLY active_currencies -- Name: active_currencies_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY active_currencies +ALTER TABLE ONLY sys.active_currencies ADD CONSTRAINT active_currencies_pkey PRIMARY KEY (id); @@ -32001,7 +31882,7 @@ ALTER TABLE ONLY active_currencies -- Name: api_access_login_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY api_access +ALTER TABLE ONLY sys.api_access ADD CONSTRAINT api_access_login_key UNIQUE (login); @@ -32009,7 +31890,7 @@ ALTER TABLE ONLY api_access -- Name: api_access_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY api_access +ALTER TABLE ONLY sys.api_access ADD CONSTRAINT api_access_pkey PRIMARY KEY (id); @@ -32017,7 +31898,7 @@ ALTER TABLE ONLY api_access -- Name: api_log_config_controller_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY api_log_config +ALTER TABLE ONLY sys.api_log_config ADD CONSTRAINT api_log_config_controller_key UNIQUE (controller); @@ -32025,7 +31906,7 @@ ALTER TABLE ONLY api_log_config -- Name: api_log_config_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY api_log_config +ALTER TABLE ONLY sys.api_log_config ADD CONSTRAINT api_log_config_pkey PRIMARY KEY (id); @@ -32033,7 +31914,7 @@ ALTER TABLE ONLY api_log_config -- Name: cdr_exports_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY cdr_exports +ALTER TABLE ONLY sys.cdr_exports ADD CONSTRAINT cdr_exports_pkey PRIMARY KEY (id); @@ -32041,7 +31922,7 @@ ALTER TABLE ONLY cdr_exports -- Name: cdrtables_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY cdr_tables +ALTER TABLE ONLY sys.cdr_tables ADD CONSTRAINT cdrtables_pkey PRIMARY KEY (id); @@ -32049,7 +31930,7 @@ ALTER TABLE ONLY cdr_tables -- Name: countries_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY countries +ALTER TABLE ONLY sys.countries ADD CONSTRAINT countries_name_key UNIQUE (name); @@ -32057,7 +31938,7 @@ ALTER TABLE ONLY countries -- Name: countries_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY countries +ALTER TABLE ONLY sys.countries ADD CONSTRAINT countries_pkey PRIMARY KEY (id); @@ -32065,7 +31946,7 @@ ALTER TABLE ONLY countries -- Name: currencies_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY currencies +ALTER TABLE ONLY sys.currencies ADD CONSTRAINT currencies_name_key UNIQUE (name); @@ -32073,7 +31954,7 @@ ALTER TABLE ONLY currencies -- Name: currencies_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY currencies +ALTER TABLE ONLY sys.currencies ADD CONSTRAINT currencies_pkey PRIMARY KEY (id); @@ -32081,7 +31962,7 @@ ALTER TABLE ONLY currencies -- Name: delayed_jobs_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY delayed_jobs +ALTER TABLE ONLY sys.delayed_jobs ADD CONSTRAINT delayed_jobs_pkey PRIMARY KEY (id); @@ -32089,7 +31970,7 @@ ALTER TABLE ONLY delayed_jobs -- Name: events_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY events +ALTER TABLE ONLY sys.events ADD CONSTRAINT events_pkey PRIMARY KEY (id); @@ -32097,7 +31978,7 @@ ALTER TABLE ONLY events -- Name: guiconfig_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY guiconfig +ALTER TABLE ONLY sys.guiconfig ADD CONSTRAINT guiconfig_pkey PRIMARY KEY (id); @@ -32105,7 +31986,7 @@ ALTER TABLE ONLY guiconfig -- Name: jobs_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY jobs +ALTER TABLE ONLY sys.jobs ADD CONSTRAINT jobs_pkey PRIMARY KEY (id); @@ -32113,7 +31994,7 @@ ALTER TABLE ONLY jobs -- Name: jobs_type_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY jobs +ALTER TABLE ONLY sys.jobs ADD CONSTRAINT jobs_type_key UNIQUE (type); @@ -32121,7 +32002,7 @@ ALTER TABLE ONLY jobs -- Name: lnp_database_drivers_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY lnp_database_drivers +ALTER TABLE ONLY sys.lnp_database_drivers ADD CONSTRAINT lnp_database_drivers_name_key UNIQUE (name); @@ -32129,7 +32010,7 @@ ALTER TABLE ONLY lnp_database_drivers -- Name: lnp_database_drivers_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY lnp_database_drivers +ALTER TABLE ONLY sys.lnp_database_drivers ADD CONSTRAINT lnp_database_drivers_pkey PRIMARY KEY (id); @@ -32137,7 +32018,7 @@ ALTER TABLE ONLY lnp_database_drivers -- Name: lnp_resolvers_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY lnp_resolvers +ALTER TABLE ONLY sys.lnp_resolvers ADD CONSTRAINT lnp_resolvers_name_key UNIQUE (name); @@ -32145,7 +32026,7 @@ ALTER TABLE ONLY lnp_resolvers -- Name: lnp_resolvers_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY lnp_resolvers +ALTER TABLE ONLY sys.lnp_resolvers ADD CONSTRAINT lnp_resolvers_pkey PRIMARY KEY (id); @@ -32153,7 +32034,7 @@ ALTER TABLE ONLY lnp_resolvers -- Name: load_balancers_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY load_balancers +ALTER TABLE ONLY sys.load_balancers ADD CONSTRAINT load_balancers_name_key UNIQUE (name); @@ -32161,7 +32042,7 @@ ALTER TABLE ONLY load_balancers -- Name: load_balancers_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY load_balancers +ALTER TABLE ONLY sys.load_balancers ADD CONSTRAINT load_balancers_pkey PRIMARY KEY (id); @@ -32169,7 +32050,7 @@ ALTER TABLE ONLY load_balancers -- Name: load_balancers_signalling_ip_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY load_balancers +ALTER TABLE ONLY sys.load_balancers ADD CONSTRAINT load_balancers_signalling_ip_key UNIQUE (signalling_ip); @@ -32177,7 +32058,7 @@ ALTER TABLE ONLY load_balancers -- Name: lua_scripts_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY lua_scripts +ALTER TABLE ONLY sys.lua_scripts ADD CONSTRAINT lua_scripts_name_key UNIQUE (name); @@ -32185,7 +32066,7 @@ ALTER TABLE ONLY lua_scripts -- Name: lua_scripts_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY lua_scripts +ALTER TABLE ONLY sys.lua_scripts ADD CONSTRAINT lua_scripts_pkey PRIMARY KEY (id); @@ -32193,7 +32074,7 @@ ALTER TABLE ONLY lua_scripts -- Name: network_prefixes_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY network_prefixes +ALTER TABLE ONLY sys.network_prefixes ADD CONSTRAINT network_prefixes_pkey PRIMARY KEY (id); @@ -32201,7 +32082,7 @@ ALTER TABLE ONLY network_prefixes -- Name: network_prefixes_prefix_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY network_prefixes +ALTER TABLE ONLY sys.network_prefixes ADD CONSTRAINT network_prefixes_prefix_key UNIQUE (prefix); @@ -32209,7 +32090,7 @@ ALTER TABLE ONLY network_prefixes -- Name: networks_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY networks +ALTER TABLE ONLY sys.networks ADD CONSTRAINT networks_name_key UNIQUE (name); @@ -32217,7 +32098,7 @@ ALTER TABLE ONLY networks -- Name: networks_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY networks +ALTER TABLE ONLY sys.networks ADD CONSTRAINT networks_pkey PRIMARY KEY (id); @@ -32225,7 +32106,7 @@ ALTER TABLE ONLY networks -- Name: node_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY nodes +ALTER TABLE ONLY sys.nodes ADD CONSTRAINT node_name_key UNIQUE (name); @@ -32233,7 +32114,7 @@ ALTER TABLE ONLY nodes -- Name: node_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY nodes +ALTER TABLE ONLY sys.nodes ADD CONSTRAINT node_pkey PRIMARY KEY (id); @@ -32241,7 +32122,7 @@ ALTER TABLE ONLY nodes -- Name: nodes_rpc_endpoint_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY nodes +ALTER TABLE ONLY sys.nodes ADD CONSTRAINT nodes_rpc_endpoint_key UNIQUE (rpc_endpoint); @@ -32249,7 +32130,7 @@ ALTER TABLE ONLY nodes -- Name: pop_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY pops +ALTER TABLE ONLY sys.pops ADD CONSTRAINT pop_name_key UNIQUE (name); @@ -32257,7 +32138,7 @@ ALTER TABLE ONLY pops -- Name: pop_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY pops +ALTER TABLE ONLY sys.pops ADD CONSTRAINT pop_pkey PRIMARY KEY (id); @@ -32265,7 +32146,7 @@ ALTER TABLE ONLY pops -- Name: sensor_levels_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY sensor_levels +ALTER TABLE ONLY sys.sensor_levels ADD CONSTRAINT sensor_levels_name_key UNIQUE (name); @@ -32273,7 +32154,7 @@ ALTER TABLE ONLY sensor_levels -- Name: sensor_levels_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY sensor_levels +ALTER TABLE ONLY sys.sensor_levels ADD CONSTRAINT sensor_levels_pkey PRIMARY KEY (id); @@ -32281,7 +32162,7 @@ ALTER TABLE ONLY sensor_levels -- Name: sensor_modes_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY sensor_modes +ALTER TABLE ONLY sys.sensor_modes ADD CONSTRAINT sensor_modes_pkey PRIMARY KEY (id); @@ -32289,7 +32170,7 @@ ALTER TABLE ONLY sensor_modes -- Name: sensors_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY sensors +ALTER TABLE ONLY sys.sensors ADD CONSTRAINT sensors_name_key UNIQUE (name); @@ -32297,7 +32178,7 @@ ALTER TABLE ONLY sensors -- Name: sensors_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY sensors +ALTER TABLE ONLY sys.sensors ADD CONSTRAINT sensors_pkey PRIMARY KEY (id); @@ -32305,7 +32186,7 @@ ALTER TABLE ONLY sensors -- Name: smtp_connections_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY smtp_connections +ALTER TABLE ONLY sys.smtp_connections ADD CONSTRAINT smtp_connections_name_key UNIQUE (name); @@ -32313,7 +32194,7 @@ ALTER TABLE ONLY smtp_connections -- Name: smtp_connections_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY smtp_connections +ALTER TABLE ONLY sys.smtp_connections ADD CONSTRAINT smtp_connections_pkey PRIMARY KEY (id); @@ -32321,7 +32202,7 @@ ALTER TABLE ONLY smtp_connections -- Name: timezones_name_key; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY timezones +ALTER TABLE ONLY sys.timezones ADD CONSTRAINT timezones_name_key UNIQUE (name); @@ -32329,12 +32210,10 @@ ALTER TABLE ONLY timezones -- Name: timezones_pkey; Type: CONSTRAINT; Schema: sys; Owner: -; Tablespace: -- -ALTER TABLE ONLY timezones +ALTER TABLE ONLY sys.timezones ADD CONSTRAINT timezones_pkey PRIMARY KEY (id); -SET search_path = class4, pg_catalog; - -- -- Name: blacklist_items_blacklist_id_key_idx; Type: INDEX; Schema: class4; Owner: -; Tablespace: -- @@ -32447,8 +32326,6 @@ CREATE INDEX routing_plan_static_routes_prefix_range_vendor_id_routing_p_idx ON CREATE INDEX routing_tag_detection_rules_prefix_range_idx ON class4.routing_tag_detection_rules USING gist (((src_prefix)::public.prefix_range), ((dst_prefix)::public.prefix_range)); -SET search_path = gui, pg_catalog; - -- -- Name: admin_users_username_idx; Type: INDEX; Schema: gui; Owner: -; Tablespace: -- @@ -32498,8 +32375,6 @@ CREATE INDEX index_versions_on_item_type_and_item_id ON gui.versions USING btree CREATE INDEX sessions_updated_at_idx ON gui.sessions USING btree (updated_at); -SET search_path = logs, pg_catalog; - -- -- Name: api_requests_created_at_idx; Type: INDEX; Schema: logs; Owner: -; Tablespace: -- @@ -32507,8 +32382,6 @@ SET search_path = logs, pg_catalog; CREATE INDEX api_requests_created_at_idx ON logs.api_requests USING btree (created_at); -SET search_path = public, pg_catalog; - -- -- Name: unique_public.schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace: -- @@ -32516,8 +32389,6 @@ SET search_path = public, pg_catalog; CREATE UNIQUE INDEX "unique_public.schema_migrations" ON public.schema_migrations USING btree (version); -SET search_path = sys, pg_catalog; - -- -- Name: cdr_tables_name_idx; Type: INDEX; Schema: sys; Owner: -; Tablespace: -- @@ -32539,20 +32410,18 @@ CREATE INDEX delayed_jobs_priority ON sys.delayed_jobs USING btree (priority, ru CREATE INDEX network_prefixes_prefix_range_idx ON sys.network_prefixes USING gist (((prefix)::public.prefix_range)); -SET search_path = billing, pg_catalog; - -- -- Name: account_notification_tgf; Type: TRIGGER; Schema: billing; Owner: - -- -CREATE TRIGGER account_notification_tgf AFTER INSERT OR UPDATE ON billing.accounts FOR EACH ROW EXECUTE PROCEDURE account_change_iu_tgf(); +CREATE TRIGGER account_notification_tgf AFTER INSERT OR UPDATE ON billing.accounts FOR EACH ROW EXECUTE PROCEDURE billing.account_change_iu_tgf(); -- -- Name: accounts_contractor_id_fkey; Type: FK CONSTRAINT; Schema: billing; Owner: - -- -ALTER TABLE ONLY accounts +ALTER TABLE ONLY billing.accounts ADD CONSTRAINT accounts_contractor_id_fkey FOREIGN KEY (contractor_id) REFERENCES public.contractors(id); @@ -32560,15 +32429,15 @@ ALTER TABLE ONLY accounts -- Name: accounts_invoice_period_id_fkey; Type: FK CONSTRAINT; Schema: billing; Owner: - -- -ALTER TABLE ONLY accounts - ADD CONSTRAINT accounts_invoice_period_id_fkey FOREIGN KEY (customer_invoice_period_id) REFERENCES invoice_periods(id); +ALTER TABLE ONLY billing.accounts + ADD CONSTRAINT accounts_invoice_period_id_fkey FOREIGN KEY (customer_invoice_period_id) REFERENCES billing.invoice_periods(id); -- -- Name: accounts_timezone_id_fkey; Type: FK CONSTRAINT; Schema: billing; Owner: - -- -ALTER TABLE ONLY accounts +ALTER TABLE ONLY billing.accounts ADD CONSTRAINT accounts_timezone_id_fkey FOREIGN KEY (timezone_id) REFERENCES sys.timezones(id); @@ -32576,65 +32445,63 @@ ALTER TABLE ONLY accounts -- Name: accounts_vendor_invoice_period_id_fkey; Type: FK CONSTRAINT; Schema: billing; Owner: - -- -ALTER TABLE ONLY accounts - ADD CONSTRAINT accounts_vendor_invoice_period_id_fkey FOREIGN KEY (vendor_invoice_period_id) REFERENCES invoice_periods(id); +ALTER TABLE ONLY billing.accounts + ADD CONSTRAINT accounts_vendor_invoice_period_id_fkey FOREIGN KEY (vendor_invoice_period_id) REFERENCES billing.invoice_periods(id); -- -- Name: payments_account_id_fkey; Type: FK CONSTRAINT; Schema: billing; Owner: - -- -ALTER TABLE ONLY payments - ADD CONSTRAINT payments_account_id_fkey FOREIGN KEY (account_id) REFERENCES accounts(id); - +ALTER TABLE ONLY billing.payments + ADD CONSTRAINT payments_account_id_fkey FOREIGN KEY (account_id) REFERENCES billing.accounts(id); -SET search_path = class4, pg_catalog; -- -- Name: area_prefixes_area_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY area_prefixes - ADD CONSTRAINT area_prefixes_area_id_fkey FOREIGN KEY (area_id) REFERENCES areas(id); +ALTER TABLE ONLY class4.area_prefixes + ADD CONSTRAINT area_prefixes_area_id_fkey FOREIGN KEY (area_id) REFERENCES class4.areas(id); -- -- Name: blacklist_items_blacklist_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY numberlist_items - ADD CONSTRAINT blacklist_items_blacklist_id_fkey FOREIGN KEY (numberlist_id) REFERENCES numberlists(id); +ALTER TABLE ONLY class4.numberlist_items + ADD CONSTRAINT blacklist_items_blacklist_id_fkey FOREIGN KEY (numberlist_id) REFERENCES class4.numberlists(id); -- -- Name: blacklists_mode_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY numberlists - ADD CONSTRAINT blacklists_mode_id_fkey FOREIGN KEY (mode_id) REFERENCES numberlist_modes(id); +ALTER TABLE ONLY class4.numberlists + ADD CONSTRAINT blacklists_mode_id_fkey FOREIGN KEY (mode_id) REFERENCES class4.numberlist_modes(id); -- -- Name: codec_group_codecs_codec_group_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY codec_group_codecs - ADD CONSTRAINT codec_group_codecs_codec_group_id_fkey FOREIGN KEY (codec_group_id) REFERENCES codec_groups(id); +ALTER TABLE ONLY class4.codec_group_codecs + ADD CONSTRAINT codec_group_codecs_codec_group_id_fkey FOREIGN KEY (codec_group_id) REFERENCES class4.codec_groups(id); -- -- Name: codec_group_codecs_codec_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY codec_group_codecs - ADD CONSTRAINT codec_group_codecs_codec_id_fkey FOREIGN KEY (codec_id) REFERENCES codecs(id); +ALTER TABLE ONLY class4.codec_group_codecs + ADD CONSTRAINT codec_group_codecs_codec_id_fkey FOREIGN KEY (codec_id) REFERENCES class4.codecs(id); -- -- Name: customers_auth_account_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth +ALTER TABLE ONLY class4.customers_auth ADD CONSTRAINT customers_auth_account_id_fkey FOREIGN KEY (account_id) REFERENCES billing.accounts(id); @@ -32642,7 +32509,7 @@ ALTER TABLE ONLY customers_auth -- Name: customers_auth_customer_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth +ALTER TABLE ONLY class4.customers_auth ADD CONSTRAINT customers_auth_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.contractors(id); @@ -32650,47 +32517,47 @@ ALTER TABLE ONLY customers_auth -- Name: customers_auth_diversion_policy_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth - ADD CONSTRAINT customers_auth_diversion_policy_id_fkey FOREIGN KEY (diversion_policy_id) REFERENCES diversion_policy(id); +ALTER TABLE ONLY class4.customers_auth + ADD CONSTRAINT customers_auth_diversion_policy_id_fkey FOREIGN KEY (diversion_policy_id) REFERENCES class4.diversion_policy(id); -- -- Name: customers_auth_dst_blacklist_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth - ADD CONSTRAINT customers_auth_dst_blacklist_id_fkey FOREIGN KEY (dst_numberlist_id) REFERENCES numberlists(id); +ALTER TABLE ONLY class4.customers_auth + ADD CONSTRAINT customers_auth_dst_blacklist_id_fkey FOREIGN KEY (dst_numberlist_id) REFERENCES class4.numberlists(id); -- -- Name: customers_auth_dump_level_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth - ADD CONSTRAINT customers_auth_dump_level_id_fkey FOREIGN KEY (dump_level_id) REFERENCES dump_level(id); +ALTER TABLE ONLY class4.customers_auth + ADD CONSTRAINT customers_auth_dump_level_id_fkey FOREIGN KEY (dump_level_id) REFERENCES class4.dump_level(id); -- -- Name: customers_auth_gateway_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth - ADD CONSTRAINT customers_auth_gateway_id_fkey FOREIGN KEY (gateway_id) REFERENCES gateways(id); +ALTER TABLE ONLY class4.customers_auth + ADD CONSTRAINT customers_auth_gateway_id_fkey FOREIGN KEY (gateway_id) REFERENCES class4.gateways(id); -- -- Name: customers_auth_normalized_customers_auth_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth_normalized - ADD CONSTRAINT customers_auth_normalized_customers_auth_id_fkey FOREIGN KEY (customers_auth_id) REFERENCES customers_auth(id); +ALTER TABLE ONLY class4.customers_auth_normalized + ADD CONSTRAINT customers_auth_normalized_customers_auth_id_fkey FOREIGN KEY (customers_auth_id) REFERENCES class4.customers_auth(id); -- -- Name: customers_auth_pop_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth +ALTER TABLE ONLY class4.customers_auth ADD CONSTRAINT customers_auth_pop_id_fkey FOREIGN KEY (pop_id) REFERENCES sys.pops(id); @@ -32698,111 +32565,111 @@ ALTER TABLE ONLY customers_auth -- Name: customers_auth_radius_accounting_profile_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth - ADD CONSTRAINT customers_auth_radius_accounting_profile_id_fkey FOREIGN KEY (radius_accounting_profile_id) REFERENCES radius_accounting_profiles(id); +ALTER TABLE ONLY class4.customers_auth + ADD CONSTRAINT customers_auth_radius_accounting_profile_id_fkey FOREIGN KEY (radius_accounting_profile_id) REFERENCES class4.radius_accounting_profiles(id); -- -- Name: customers_auth_radius_auth_profile_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth - ADD CONSTRAINT customers_auth_radius_auth_profile_id_fkey FOREIGN KEY (radius_auth_profile_id) REFERENCES radius_auth_profiles(id); +ALTER TABLE ONLY class4.customers_auth + ADD CONSTRAINT customers_auth_radius_auth_profile_id_fkey FOREIGN KEY (radius_auth_profile_id) REFERENCES class4.radius_auth_profiles(id); -- -- Name: customers_auth_rateplan_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth - ADD CONSTRAINT customers_auth_rateplan_id_fkey FOREIGN KEY (rateplan_id) REFERENCES rateplans(id); +ALTER TABLE ONLY class4.customers_auth + ADD CONSTRAINT customers_auth_rateplan_id_fkey FOREIGN KEY (rateplan_id) REFERENCES class4.rateplans(id); -- -- Name: customers_auth_routing_plan_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth - ADD CONSTRAINT customers_auth_routing_plan_id_fkey FOREIGN KEY (routing_plan_id) REFERENCES routing_plans(id); +ALTER TABLE ONLY class4.customers_auth + ADD CONSTRAINT customers_auth_routing_plan_id_fkey FOREIGN KEY (routing_plan_id) REFERENCES class4.routing_plans(id); -- -- Name: customers_auth_src_blacklist_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth - ADD CONSTRAINT customers_auth_src_blacklist_id_fkey FOREIGN KEY (src_numberlist_id) REFERENCES numberlists(id); +ALTER TABLE ONLY class4.customers_auth + ADD CONSTRAINT customers_auth_src_blacklist_id_fkey FOREIGN KEY (src_numberlist_id) REFERENCES class4.numberlists(id); -- -- Name: customers_auth_tag_action_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth - ADD CONSTRAINT customers_auth_tag_action_id_fkey FOREIGN KEY (tag_action_id) REFERENCES tag_actions(id); +ALTER TABLE ONLY class4.customers_auth + ADD CONSTRAINT customers_auth_tag_action_id_fkey FOREIGN KEY (tag_action_id) REFERENCES class4.tag_actions(id); -- -- Name: customers_auth_transport_protocol_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY customers_auth - ADD CONSTRAINT customers_auth_transport_protocol_id_fkey FOREIGN KEY (transport_protocol_id) REFERENCES transport_protocols(id); +ALTER TABLE ONLY class4.customers_auth + ADD CONSTRAINT customers_auth_transport_protocol_id_fkey FOREIGN KEY (transport_protocol_id) REFERENCES class4.transport_protocols(id); -- -- Name: destination_next_rates_destination_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY destination_next_rates - ADD CONSTRAINT destination_next_rates_destination_id_fkey FOREIGN KEY (destination_id) REFERENCES destinations(id); +ALTER TABLE ONLY class4.destination_next_rates + ADD CONSTRAINT destination_next_rates_destination_id_fkey FOREIGN KEY (destination_id) REFERENCES class4.destinations(id); -- -- Name: destinations_profit_control_mode_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY destinations - ADD CONSTRAINT destinations_profit_control_mode_id_fkey FOREIGN KEY (profit_control_mode_id) REFERENCES rate_profit_control_modes(id); +ALTER TABLE ONLY class4.destinations + ADD CONSTRAINT destinations_profit_control_mode_id_fkey FOREIGN KEY (profit_control_mode_id) REFERENCES class4.rate_profit_control_modes(id); -- -- Name: destinations_rate_policy_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY destinations - ADD CONSTRAINT destinations_rate_policy_id_fkey FOREIGN KEY (rate_policy_id) REFERENCES destination_rate_policy(id); +ALTER TABLE ONLY class4.destinations + ADD CONSTRAINT destinations_rate_policy_id_fkey FOREIGN KEY (rate_policy_id) REFERENCES class4.destination_rate_policy(id); -- -- Name: destinations_rateplan_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY destinations - ADD CONSTRAINT destinations_rateplan_id_fkey FOREIGN KEY (rateplan_id) REFERENCES rateplans(id); +ALTER TABLE ONLY class4.destinations + ADD CONSTRAINT destinations_rateplan_id_fkey FOREIGN KEY (rateplan_id) REFERENCES class4.rateplans(id); -- -- Name: destinations_routing_tag_mode_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY destinations - ADD CONSTRAINT destinations_routing_tag_mode_id_fkey FOREIGN KEY (routing_tag_mode_id) REFERENCES routing_tag_modes(id); +ALTER TABLE ONLY class4.destinations + ADD CONSTRAINT destinations_routing_tag_mode_id_fkey FOREIGN KEY (routing_tag_mode_id) REFERENCES class4.routing_tag_modes(id); -- -- Name: dialpeer_next_rates_dialpeer_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY dialpeer_next_rates - ADD CONSTRAINT dialpeer_next_rates_dialpeer_id_fkey FOREIGN KEY (dialpeer_id) REFERENCES dialpeers(id); +ALTER TABLE ONLY class4.dialpeer_next_rates + ADD CONSTRAINT dialpeer_next_rates_dialpeer_id_fkey FOREIGN KEY (dialpeer_id) REFERENCES class4.dialpeers(id); -- -- Name: dialpeers_account_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY dialpeers +ALTER TABLE ONLY class4.dialpeers ADD CONSTRAINT dialpeers_account_id_fkey FOREIGN KEY (account_id) REFERENCES billing.accounts(id); @@ -32810,39 +32677,39 @@ ALTER TABLE ONLY dialpeers -- Name: dialpeers_gateway_group_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY dialpeers - ADD CONSTRAINT dialpeers_gateway_group_id_fkey FOREIGN KEY (gateway_group_id) REFERENCES gateway_groups(id); +ALTER TABLE ONLY class4.dialpeers + ADD CONSTRAINT dialpeers_gateway_group_id_fkey FOREIGN KEY (gateway_group_id) REFERENCES class4.gateway_groups(id); -- -- Name: dialpeers_gateway_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY dialpeers - ADD CONSTRAINT dialpeers_gateway_id_fkey FOREIGN KEY (gateway_id) REFERENCES gateways(id); +ALTER TABLE ONLY class4.dialpeers + ADD CONSTRAINT dialpeers_gateway_id_fkey FOREIGN KEY (gateway_id) REFERENCES class4.gateways(id); -- -- Name: dialpeers_routing_group_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY dialpeers - ADD CONSTRAINT dialpeers_routing_group_id_fkey FOREIGN KEY (routing_group_id) REFERENCES routing_groups(id); +ALTER TABLE ONLY class4.dialpeers + ADD CONSTRAINT dialpeers_routing_group_id_fkey FOREIGN KEY (routing_group_id) REFERENCES class4.routing_groups(id); -- -- Name: dialpeers_routing_tag_mode_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY dialpeers - ADD CONSTRAINT dialpeers_routing_tag_mode_id_fkey FOREIGN KEY (routing_tag_mode_id) REFERENCES routing_tag_modes(id); +ALTER TABLE ONLY class4.dialpeers + ADD CONSTRAINT dialpeers_routing_tag_mode_id_fkey FOREIGN KEY (routing_tag_mode_id) REFERENCES class4.routing_tag_modes(id); -- -- Name: dialpeers_vendor_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY dialpeers +ALTER TABLE ONLY class4.dialpeers ADD CONSTRAINT dialpeers_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.contractors(id); @@ -32850,31 +32717,31 @@ ALTER TABLE ONLY dialpeers -- Name: disconnect_code_namespace_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY disconnect_code - ADD CONSTRAINT disconnect_code_namespace_id_fkey FOREIGN KEY (namespace_id) REFERENCES disconnect_code_namespace(id); +ALTER TABLE ONLY class4.disconnect_code + ADD CONSTRAINT disconnect_code_namespace_id_fkey FOREIGN KEY (namespace_id) REFERENCES class4.disconnect_code_namespace(id); -- -- Name: disconnect_code_policy_codes_code_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY disconnect_policy_code - ADD CONSTRAINT disconnect_code_policy_codes_code_id_fkey FOREIGN KEY (code_id) REFERENCES disconnect_code(id); +ALTER TABLE ONLY class4.disconnect_policy_code + ADD CONSTRAINT disconnect_code_policy_codes_code_id_fkey FOREIGN KEY (code_id) REFERENCES class4.disconnect_code(id); -- -- Name: disconnect_code_policy_codes_policy_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY disconnect_policy_code - ADD CONSTRAINT disconnect_code_policy_codes_policy_id_fkey FOREIGN KEY (policy_id) REFERENCES disconnect_policy(id); +ALTER TABLE ONLY class4.disconnect_policy_code + ADD CONSTRAINT disconnect_code_policy_codes_policy_id_fkey FOREIGN KEY (policy_id) REFERENCES class4.disconnect_policy(id); -- -- Name: gateway_groups_contractor_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateway_groups +ALTER TABLE ONLY class4.gateway_groups ADD CONSTRAINT gateway_groups_contractor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.contractors(id); @@ -32882,15 +32749,15 @@ ALTER TABLE ONLY gateway_groups -- Name: gateways_codec_group_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_codec_group_id_fkey FOREIGN KEY (codec_group_id) REFERENCES codec_groups(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_codec_group_id_fkey FOREIGN KEY (codec_group_id) REFERENCES class4.codec_groups(id); -- -- Name: gateways_contractor_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways +ALTER TABLE ONLY class4.gateways ADD CONSTRAINT gateways_contractor_id_fkey FOREIGN KEY (contractor_id) REFERENCES public.contractors(id); @@ -32898,55 +32765,55 @@ ALTER TABLE ONLY gateways -- Name: gateways_diversion_policy_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_diversion_policy_id_fkey FOREIGN KEY (diversion_policy_id) REFERENCES diversion_policy(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_diversion_policy_id_fkey FOREIGN KEY (diversion_policy_id) REFERENCES class4.diversion_policy(id); -- -- Name: gateways_dtmf_receive_mode_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_dtmf_receive_mode_id_fkey FOREIGN KEY (dtmf_receive_mode_id) REFERENCES dtmf_receive_modes(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_dtmf_receive_mode_id_fkey FOREIGN KEY (dtmf_receive_mode_id) REFERENCES class4.dtmf_receive_modes(id); -- -- Name: gateways_dtmf_send_mode_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_dtmf_send_mode_id_fkey FOREIGN KEY (dtmf_send_mode_id) REFERENCES dtmf_send_modes(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_dtmf_send_mode_id_fkey FOREIGN KEY (dtmf_send_mode_id) REFERENCES class4.dtmf_send_modes(id); -- -- Name: gateways_gateway_group_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_gateway_group_id_fkey FOREIGN KEY (gateway_group_id) REFERENCES gateway_groups(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_gateway_group_id_fkey FOREIGN KEY (gateway_group_id) REFERENCES class4.gateway_groups(id); -- -- Name: gateways_orig_disconnect_policy_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_orig_disconnect_policy_id_fkey FOREIGN KEY (orig_disconnect_policy_id) REFERENCES disconnect_policy(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_orig_disconnect_policy_id_fkey FOREIGN KEY (orig_disconnect_policy_id) REFERENCES class4.disconnect_policy(id); -- -- Name: gateways_orig_proxy_transport_protocol_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_orig_proxy_transport_protocol_id_fkey FOREIGN KEY (orig_proxy_transport_protocol_id) REFERENCES transport_protocols(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_orig_proxy_transport_protocol_id_fkey FOREIGN KEY (orig_proxy_transport_protocol_id) REFERENCES class4.transport_protocols(id); -- -- Name: gateways_pop_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways +ALTER TABLE ONLY class4.gateways ADD CONSTRAINT gateways_pop_id_fkey FOREIGN KEY (pop_id) REFERENCES sys.pops(id); @@ -32954,47 +32821,47 @@ ALTER TABLE ONLY gateways -- Name: gateways_radius_accounting_profile_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_radius_accounting_profile_id_fkey FOREIGN KEY (radius_accounting_profile_id) REFERENCES radius_accounting_profiles(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_radius_accounting_profile_id_fkey FOREIGN KEY (radius_accounting_profile_id) REFERENCES class4.radius_accounting_profiles(id); -- -- Name: gateways_rel100_mode_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_rel100_mode_id_fkey FOREIGN KEY (rel100_mode_id) REFERENCES gateway_rel100_modes(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_rel100_mode_id_fkey FOREIGN KEY (rel100_mode_id) REFERENCES class4.gateway_rel100_modes(id); -- -- Name: gateways_rx_inband_dtmf_filtering_mode_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_rx_inband_dtmf_filtering_mode_id_fkey FOREIGN KEY (rx_inband_dtmf_filtering_mode_id) REFERENCES gateway_inband_dtmf_filtering_modes(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_rx_inband_dtmf_filtering_mode_id_fkey FOREIGN KEY (rx_inband_dtmf_filtering_mode_id) REFERENCES class4.gateway_inband_dtmf_filtering_modes(id); -- -- Name: gateways_sdp_alines_filter_type_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_sdp_alines_filter_type_id_fkey FOREIGN KEY (sdp_alines_filter_type_id) REFERENCES filter_types(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_sdp_alines_filter_type_id_fkey FOREIGN KEY (sdp_alines_filter_type_id) REFERENCES class4.filter_types(id); -- -- Name: gateways_sdp_c_location_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_sdp_c_location_id_fkey FOREIGN KEY (sdp_c_location_id) REFERENCES sdp_c_location(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_sdp_c_location_id_fkey FOREIGN KEY (sdp_c_location_id) REFERENCES class4.sdp_c_location(id); -- -- Name: gateways_sensor_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways +ALTER TABLE ONLY class4.gateways ADD CONSTRAINT gateways_sensor_id_fkey FOREIGN KEY (sensor_id) REFERENCES sys.sensors(id); @@ -33002,7 +32869,7 @@ ALTER TABLE ONLY gateways -- Name: gateways_sensor_level_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways +ALTER TABLE ONLY class4.gateways ADD CONSTRAINT gateways_sensor_level_id_fkey FOREIGN KEY (sensor_level_id) REFERENCES sys.sensor_levels(id); @@ -33010,55 +32877,55 @@ ALTER TABLE ONLY gateways -- Name: gateways_session_refresh_method_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_session_refresh_method_id_fkey FOREIGN KEY (session_refresh_method_id) REFERENCES session_refresh_methods(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_session_refresh_method_id_fkey FOREIGN KEY (session_refresh_method_id) REFERENCES class4.session_refresh_methods(id); -- -- Name: gateways_term_disconnect_policy_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_term_disconnect_policy_id_fkey FOREIGN KEY (term_disconnect_policy_id) REFERENCES disconnect_policy(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_term_disconnect_policy_id_fkey FOREIGN KEY (term_disconnect_policy_id) REFERENCES class4.disconnect_policy(id); -- -- Name: gateways_term_proxy_transport_protocol_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_term_proxy_transport_protocol_id_fkey FOREIGN KEY (term_proxy_transport_protocol_id) REFERENCES transport_protocols(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_term_proxy_transport_protocol_id_fkey FOREIGN KEY (term_proxy_transport_protocol_id) REFERENCES class4.transport_protocols(id); -- -- Name: gateways_transport_protocol_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_transport_protocol_id_fkey FOREIGN KEY (transport_protocol_id) REFERENCES transport_protocols(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_transport_protocol_id_fkey FOREIGN KEY (transport_protocol_id) REFERENCES class4.transport_protocols(id); -- -- Name: gateways_tx_inband_dtmf_filtering_mode_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY gateways - ADD CONSTRAINT gateways_tx_inband_dtmf_filtering_mode_id_fkey FOREIGN KEY (tx_inband_dtmf_filtering_mode_id) REFERENCES gateway_inband_dtmf_filtering_modes(id); +ALTER TABLE ONLY class4.gateways + ADD CONSTRAINT gateways_tx_inband_dtmf_filtering_mode_id_fkey FOREIGN KEY (tx_inband_dtmf_filtering_mode_id) REFERENCES class4.gateway_inband_dtmf_filtering_modes(id); -- -- Name: lnp_cache_database_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY lnp_cache - ADD CONSTRAINT lnp_cache_database_id_fkey FOREIGN KEY (database_id) REFERENCES lnp_databases(id); +ALTER TABLE ONLY class4.lnp_cache + ADD CONSTRAINT lnp_cache_database_id_fkey FOREIGN KEY (database_id) REFERENCES class4.lnp_databases(id); -- -- Name: lnp_databases_driver_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY lnp_databases +ALTER TABLE ONLY class4.lnp_databases ADD CONSTRAINT lnp_databases_driver_id_fkey FOREIGN KEY (driver_id) REFERENCES sys.lnp_database_drivers(id); @@ -33066,79 +32933,79 @@ ALTER TABLE ONLY lnp_databases -- Name: numberlist_items_action_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY numberlist_items - ADD CONSTRAINT numberlist_items_action_id_fkey FOREIGN KEY (action_id) REFERENCES numberlist_actions(id); +ALTER TABLE ONLY class4.numberlist_items + ADD CONSTRAINT numberlist_items_action_id_fkey FOREIGN KEY (action_id) REFERENCES class4.numberlist_actions(id); -- -- Name: numberlist_items_tag_action_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY numberlist_items - ADD CONSTRAINT numberlist_items_tag_action_id_fkey FOREIGN KEY (tag_action_id) REFERENCES tag_actions(id); +ALTER TABLE ONLY class4.numberlist_items + ADD CONSTRAINT numberlist_items_tag_action_id_fkey FOREIGN KEY (tag_action_id) REFERENCES class4.tag_actions(id); -- -- Name: numberlists_default_action_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY numberlists - ADD CONSTRAINT numberlists_default_action_id_fkey FOREIGN KEY (default_action_id) REFERENCES numberlist_actions(id); +ALTER TABLE ONLY class4.numberlists + ADD CONSTRAINT numberlists_default_action_id_fkey FOREIGN KEY (default_action_id) REFERENCES class4.numberlist_actions(id); -- -- Name: numberlists_tag_action_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY numberlists - ADD CONSTRAINT numberlists_tag_action_id_fkey FOREIGN KEY (tag_action_id) REFERENCES tag_actions(id); +ALTER TABLE ONLY class4.numberlists + ADD CONSTRAINT numberlists_tag_action_id_fkey FOREIGN KEY (tag_action_id) REFERENCES class4.tag_actions(id); -- -- Name: radius_accounting_profile_interim_attributes_profile_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY radius_accounting_profile_interim_attributes - ADD CONSTRAINT radius_accounting_profile_interim_attributes_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES radius_accounting_profiles(id); +ALTER TABLE ONLY class4.radius_accounting_profile_interim_attributes + ADD CONSTRAINT radius_accounting_profile_interim_attributes_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES class4.radius_accounting_profiles(id); -- -- Name: radius_accounting_profile_start_attributes_profile_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY radius_accounting_profile_start_attributes - ADD CONSTRAINT radius_accounting_profile_start_attributes_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES radius_accounting_profiles(id); +ALTER TABLE ONLY class4.radius_accounting_profile_start_attributes + ADD CONSTRAINT radius_accounting_profile_start_attributes_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES class4.radius_accounting_profiles(id); -- -- Name: radius_accounting_profile_stop_attributes_profile_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY radius_accounting_profile_stop_attributes - ADD CONSTRAINT radius_accounting_profile_stop_attributes_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES radius_accounting_profiles(id); +ALTER TABLE ONLY class4.radius_accounting_profile_stop_attributes + ADD CONSTRAINT radius_accounting_profile_stop_attributes_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES class4.radius_accounting_profiles(id); -- -- Name: radius_auth_profile_attributes_profile_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY radius_auth_profile_attributes - ADD CONSTRAINT radius_auth_profile_attributes_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES radius_auth_profiles(id); +ALTER TABLE ONLY class4.radius_auth_profile_attributes + ADD CONSTRAINT radius_auth_profile_attributes_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES class4.radius_auth_profiles(id); -- -- Name: rateplans_profit_control_mode_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY rateplans - ADD CONSTRAINT rateplans_profit_control_mode_id_fkey FOREIGN KEY (profit_control_mode_id) REFERENCES rate_profit_control_modes(id); +ALTER TABLE ONLY class4.rateplans + ADD CONSTRAINT rateplans_profit_control_mode_id_fkey FOREIGN KEY (profit_control_mode_id) REFERENCES class4.rate_profit_control_modes(id); -- -- Name: registrations_node_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY registrations +ALTER TABLE ONLY class4.registrations ADD CONSTRAINT registrations_node_id_fkey FOREIGN KEY (node_id) REFERENCES sys.nodes(id); @@ -33146,7 +33013,7 @@ ALTER TABLE ONLY registrations -- Name: registrations_pop_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY registrations +ALTER TABLE ONLY class4.registrations ADD CONSTRAINT registrations_pop_id_fkey FOREIGN KEY (pop_id) REFERENCES sys.pops(id); @@ -33154,55 +33021,55 @@ ALTER TABLE ONLY registrations -- Name: registrations_proxy_transport_protocol_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY registrations - ADD CONSTRAINT registrations_proxy_transport_protocol_id_fkey FOREIGN KEY (proxy_transport_protocol_id) REFERENCES transport_protocols(id); +ALTER TABLE ONLY class4.registrations + ADD CONSTRAINT registrations_proxy_transport_protocol_id_fkey FOREIGN KEY (proxy_transport_protocol_id) REFERENCES class4.transport_protocols(id); -- -- Name: registrations_transport_protocol_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY registrations - ADD CONSTRAINT registrations_transport_protocol_id_fkey FOREIGN KEY (transport_protocol_id) REFERENCES transport_protocols(id); +ALTER TABLE ONLY class4.registrations + ADD CONSTRAINT registrations_transport_protocol_id_fkey FOREIGN KEY (transport_protocol_id) REFERENCES class4.transport_protocols(id); -- -- Name: routing_plan_groups_routing_group_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_plan_groups - ADD CONSTRAINT routing_plan_groups_routing_group_id_fkey FOREIGN KEY (routing_group_id) REFERENCES routing_groups(id); +ALTER TABLE ONLY class4.routing_plan_groups + ADD CONSTRAINT routing_plan_groups_routing_group_id_fkey FOREIGN KEY (routing_group_id) REFERENCES class4.routing_groups(id); -- -- Name: routing_plan_groups_routing_plan_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_plan_groups - ADD CONSTRAINT routing_plan_groups_routing_plan_id_fkey FOREIGN KEY (routing_plan_id) REFERENCES routing_plans(id); +ALTER TABLE ONLY class4.routing_plan_groups + ADD CONSTRAINT routing_plan_groups_routing_plan_id_fkey FOREIGN KEY (routing_plan_id) REFERENCES class4.routing_plans(id); -- -- Name: routing_plan_lnp_rules_database_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_plan_lnp_rules - ADD CONSTRAINT routing_plan_lnp_rules_database_id_fkey FOREIGN KEY (database_id) REFERENCES lnp_databases(id); +ALTER TABLE ONLY class4.routing_plan_lnp_rules + ADD CONSTRAINT routing_plan_lnp_rules_database_id_fkey FOREIGN KEY (database_id) REFERENCES class4.lnp_databases(id); -- -- Name: routing_plan_static_routes_routing_plan_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_plan_static_routes - ADD CONSTRAINT routing_plan_static_routes_routing_plan_id_fkey FOREIGN KEY (routing_plan_id) REFERENCES routing_plans(id); +ALTER TABLE ONLY class4.routing_plan_static_routes + ADD CONSTRAINT routing_plan_static_routes_routing_plan_id_fkey FOREIGN KEY (routing_plan_id) REFERENCES class4.routing_plans(id); -- -- Name: routing_plan_static_routes_vendor_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_plan_static_routes +ALTER TABLE ONLY class4.routing_plan_static_routes ADD CONSTRAINT routing_plan_static_routes_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.contractors(id); @@ -33210,49 +33077,47 @@ ALTER TABLE ONLY routing_plan_static_routes -- Name: routing_plans_sorting_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_plans - ADD CONSTRAINT routing_plans_sorting_id_fkey FOREIGN KEY (sorting_id) REFERENCES sortings(id); +ALTER TABLE ONLY class4.routing_plans + ADD CONSTRAINT routing_plans_sorting_id_fkey FOREIGN KEY (sorting_id) REFERENCES class4.sortings(id); -- -- Name: routing_tag_detection_rules_dst_area_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_tag_detection_rules - ADD CONSTRAINT routing_tag_detection_rules_dst_area_id_fkey FOREIGN KEY (dst_area_id) REFERENCES areas(id); +ALTER TABLE ONLY class4.routing_tag_detection_rules + ADD CONSTRAINT routing_tag_detection_rules_dst_area_id_fkey FOREIGN KEY (dst_area_id) REFERENCES class4.areas(id); -- -- Name: routing_tag_detection_rules_routing_tag_mode_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_tag_detection_rules - ADD CONSTRAINT routing_tag_detection_rules_routing_tag_mode_id_fkey FOREIGN KEY (routing_tag_mode_id) REFERENCES routing_tag_modes(id); +ALTER TABLE ONLY class4.routing_tag_detection_rules + ADD CONSTRAINT routing_tag_detection_rules_routing_tag_mode_id_fkey FOREIGN KEY (routing_tag_mode_id) REFERENCES class4.routing_tag_modes(id); -- -- Name: routing_tag_detection_rules_src_area_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_tag_detection_rules - ADD CONSTRAINT routing_tag_detection_rules_src_area_id_fkey FOREIGN KEY (src_area_id) REFERENCES areas(id); +ALTER TABLE ONLY class4.routing_tag_detection_rules + ADD CONSTRAINT routing_tag_detection_rules_src_area_id_fkey FOREIGN KEY (src_area_id) REFERENCES class4.areas(id); -- -- Name: routing_tag_detection_rules_tag_action_id_fkey; Type: FK CONSTRAINT; Schema: class4; Owner: - -- -ALTER TABLE ONLY routing_tag_detection_rules - ADD CONSTRAINT routing_tag_detection_rules_tag_action_id_fkey FOREIGN KEY (tag_action_id) REFERENCES tag_actions(id); - +ALTER TABLE ONLY class4.routing_tag_detection_rules + ADD CONSTRAINT routing_tag_detection_rules_tag_action_id_fkey FOREIGN KEY (tag_action_id) REFERENCES class4.tag_actions(id); -SET search_path = notifications, pg_catalog; -- -- Name: contacts_admin_user_id_fkey; Type: FK CONSTRAINT; Schema: notifications; Owner: - -- -ALTER TABLE ONLY contacts +ALTER TABLE ONLY notifications.contacts ADD CONSTRAINT contacts_admin_user_id_fkey FOREIGN KEY (admin_user_id) REFERENCES gui.admin_users(id); @@ -33260,75 +33125,63 @@ ALTER TABLE ONLY contacts -- Name: contacts_contractor_id_fkey; Type: FK CONSTRAINT; Schema: notifications; Owner: - -- -ALTER TABLE ONLY contacts +ALTER TABLE ONLY notifications.contacts ADD CONSTRAINT contacts_contractor_id_fkey FOREIGN KEY (contractor_id) REFERENCES public.contractors(id); -SET search_path = public, pg_catalog; - -- -- Name: contractors_smtp_connection_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- -ALTER TABLE ONLY contractors +ALTER TABLE ONLY public.contractors ADD CONSTRAINT contractors_smtp_connection_id_fkey FOREIGN KEY (smtp_connection_id) REFERENCES sys.smtp_connections(id); -SET search_path = switch13, pg_catalog; - -- -- Name: resource_type_action_id_fkey; Type: FK CONSTRAINT; Schema: switch13; Owner: - -- -ALTER TABLE ONLY resource_type - ADD CONSTRAINT resource_type_action_id_fkey FOREIGN KEY (action_id) REFERENCES resource_action(id); +ALTER TABLE ONLY switch13.resource_type + ADD CONSTRAINT resource_type_action_id_fkey FOREIGN KEY (action_id) REFERENCES switch13.resource_action(id); -SET search_path = switch14, pg_catalog; - -- -- Name: resource_type_action_id_fkey; Type: FK CONSTRAINT; Schema: switch14; Owner: - -- -ALTER TABLE ONLY resource_type - ADD CONSTRAINT resource_type_action_id_fkey FOREIGN KEY (action_id) REFERENCES resource_action(id); - +ALTER TABLE ONLY switch14.resource_type + ADD CONSTRAINT resource_type_action_id_fkey FOREIGN KEY (action_id) REFERENCES switch14.resource_action(id); -SET search_path = switch15, pg_catalog; -- -- Name: resource_type_action_id_fkey; Type: FK CONSTRAINT; Schema: switch15; Owner: - -- -ALTER TABLE ONLY resource_type - ADD CONSTRAINT resource_type_action_id_fkey FOREIGN KEY (action_id) REFERENCES resource_action(id); +ALTER TABLE ONLY switch15.resource_type + ADD CONSTRAINT resource_type_action_id_fkey FOREIGN KEY (action_id) REFERENCES switch15.resource_action(id); -SET search_path = switch16, pg_catalog; - -- -- Name: resource_type_action_id_fkey; Type: FK CONSTRAINT; Schema: switch16; Owner: - -- -ALTER TABLE ONLY resource_type - ADD CONSTRAINT resource_type_action_id_fkey FOREIGN KEY (action_id) REFERENCES resource_action(id); - +ALTER TABLE ONLY switch16.resource_type + ADD CONSTRAINT resource_type_action_id_fkey FOREIGN KEY (action_id) REFERENCES switch16.resource_action(id); -SET search_path = sys, pg_catalog; -- -- Name: active_currencies_currency_id_fkey; Type: FK CONSTRAINT; Schema: sys; Owner: - -- -ALTER TABLE ONLY active_currencies - ADD CONSTRAINT active_currencies_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES currencies(id); +ALTER TABLE ONLY sys.active_currencies + ADD CONSTRAINT active_currencies_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES sys.currencies(id); -- -- Name: api_access_customer_id_fkey; Type: FK CONSTRAINT; Schema: sys; Owner: - -- -ALTER TABLE ONLY api_access +ALTER TABLE ONLY sys.api_access ADD CONSTRAINT api_access_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.contractors(id); @@ -33336,48 +33189,48 @@ ALTER TABLE ONLY api_access -- Name: currencies_country_id_fkey; Type: FK CONSTRAINT; Schema: sys; Owner: - -- -ALTER TABLE ONLY currencies - ADD CONSTRAINT currencies_country_id_fkey FOREIGN KEY (country_id) REFERENCES countries(id); +ALTER TABLE ONLY sys.currencies + ADD CONSTRAINT currencies_country_id_fkey FOREIGN KEY (country_id) REFERENCES sys.countries(id); -- -- Name: events_node_id_fkey; Type: FK CONSTRAINT; Schema: sys; Owner: - -- -ALTER TABLE ONLY events - ADD CONSTRAINT events_node_id_fkey FOREIGN KEY (node_id) REFERENCES nodes(id); +ALTER TABLE ONLY sys.events + ADD CONSTRAINT events_node_id_fkey FOREIGN KEY (node_id) REFERENCES sys.nodes(id); -- -- Name: network_prefixes_country_id_fkey; Type: FK CONSTRAINT; Schema: sys; Owner: - -- -ALTER TABLE ONLY network_prefixes - ADD CONSTRAINT network_prefixes_country_id_fkey FOREIGN KEY (country_id) REFERENCES countries(id); +ALTER TABLE ONLY sys.network_prefixes + ADD CONSTRAINT network_prefixes_country_id_fkey FOREIGN KEY (country_id) REFERENCES sys.countries(id); -- -- Name: network_prefixes_network_id_fkey; Type: FK CONSTRAINT; Schema: sys; Owner: - -- -ALTER TABLE ONLY network_prefixes - ADD CONSTRAINT network_prefixes_network_id_fkey FOREIGN KEY (network_id) REFERENCES networks(id); +ALTER TABLE ONLY sys.network_prefixes + ADD CONSTRAINT network_prefixes_network_id_fkey FOREIGN KEY (network_id) REFERENCES sys.networks(id); -- -- Name: node_pop_id_fkey; Type: FK CONSTRAINT; Schema: sys; Owner: - -- -ALTER TABLE ONLY nodes - ADD CONSTRAINT node_pop_id_fkey FOREIGN KEY (pop_id) REFERENCES pops(id); +ALTER TABLE ONLY sys.nodes + ADD CONSTRAINT node_pop_id_fkey FOREIGN KEY (pop_id) REFERENCES sys.pops(id); -- -- Name: sensors_mode_id_fkey; Type: FK CONSTRAINT; Schema: sys; Owner: - -- -ALTER TABLE ONLY sensors - ADD CONSTRAINT sensors_mode_id_fkey FOREIGN KEY (mode_id) REFERENCES sensor_modes(id); +ALTER TABLE ONLY sys.sensors + ADD CONSTRAINT sensors_mode_id_fkey FOREIGN KEY (mode_id) REFERENCES sys.sensor_modes(id); --