update test db
authorMark Wells <mark@freeside.biz>
Tue, 26 Apr 2016 19:19:02 +0000 (12:19 -0700)
committerMark Wells <mark@freeside.biz>
Tue, 26 Apr 2016 19:19:02 +0000 (12:19 -0700)
FS-Test/share/test.sql

index d9f8224..9043596 100644 (file)
@@ -3,6 +3,7 @@
 --
 
 SET statement_timeout = 0;
+SET lock_timeout = 0;
 SET client_encoding = 'UTF8';
 SET standard_conforming_strings = on;
 SET check_function_bodies = false;
@@ -38,7 +39,7 @@ CREATE TABLE access_group (
 );
 
 
-ALTER TABLE public.access_group OWNER TO freeside;
+ALTER TABLE access_group OWNER TO freeside;
 
 --
 -- Name: access_group_groupnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -52,7 +53,7 @@ CREATE SEQUENCE access_group_groupnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.access_group_groupnum_seq OWNER TO freeside;
+ALTER TABLE access_group_groupnum_seq OWNER TO freeside;
 
 --
 -- Name: access_group_groupnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -72,7 +73,7 @@ CREATE TABLE access_groupagent (
 );
 
 
-ALTER TABLE public.access_groupagent OWNER TO freeside;
+ALTER TABLE access_groupagent OWNER TO freeside;
 
 --
 -- Name: access_groupagent_groupagentnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -86,7 +87,7 @@ CREATE SEQUENCE access_groupagent_groupagentnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.access_groupagent_groupagentnum_seq OWNER TO freeside;
+ALTER TABLE access_groupagent_groupagentnum_seq OWNER TO freeside;
 
 --
 -- Name: access_groupagent_groupagentnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -107,7 +108,7 @@ CREATE TABLE access_right (
 );
 
 
-ALTER TABLE public.access_right OWNER TO freeside;
+ALTER TABLE access_right OWNER TO freeside;
 
 --
 -- Name: access_right_rightnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -121,7 +122,7 @@ CREATE SEQUENCE access_right_rightnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.access_right_rightnum_seq OWNER TO freeside;
+ALTER TABLE access_right_rightnum_seq OWNER TO freeside;
 
 --
 -- Name: access_right_rightnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -147,7 +148,7 @@ CREATE TABLE access_user (
 );
 
 
-ALTER TABLE public.access_user OWNER TO freeside;
+ALTER TABLE access_user OWNER TO freeside;
 
 --
 -- Name: access_user_log; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -157,11 +158,12 @@ CREATE TABLE access_user_log (
     lognum integer NOT NULL,
     usernum integer NOT NULL,
     path character varying(160) NOT NULL,
-    _date integer
+    _date integer,
+    render_seconds integer
 );
 
 
-ALTER TABLE public.access_user_log OWNER TO freeside;
+ALTER TABLE access_user_log OWNER TO freeside;
 
 --
 -- Name: access_user_log_lognum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -175,7 +177,7 @@ CREATE SEQUENCE access_user_log_lognum_seq
     CACHE 1;
 
 
-ALTER TABLE public.access_user_log_lognum_seq OWNER TO freeside;
+ALTER TABLE access_user_log_lognum_seq OWNER TO freeside;
 
 --
 -- Name: access_user_log_lognum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -185,6 +187,44 @@ ALTER SEQUENCE access_user_log_lognum_seq OWNED BY access_user_log.lognum;
 
 
 --
+-- Name: access_user_page_pref; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE access_user_page_pref (
+    prefnum integer NOT NULL,
+    usernum integer NOT NULL,
+    path text NOT NULL,
+    tablenum integer,
+    _date integer,
+    prefname character varying(80) NOT NULL,
+    prefvalue text NOT NULL
+);
+
+
+ALTER TABLE access_user_page_pref OWNER TO freeside;
+
+--
+-- Name: access_user_page_pref_prefnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE access_user_page_pref_prefnum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE access_user_page_pref_prefnum_seq OWNER TO freeside;
+
+--
+-- Name: access_user_page_pref_prefnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE access_user_page_pref_prefnum_seq OWNED BY access_user_page_pref.prefnum;
+
+
+--
 -- Name: access_user_pref; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
@@ -197,7 +237,7 @@ CREATE TABLE access_user_pref (
 );
 
 
-ALTER TABLE public.access_user_pref OWNER TO freeside;
+ALTER TABLE access_user_pref OWNER TO freeside;
 
 --
 -- Name: access_user_pref_prefnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -211,7 +251,7 @@ CREATE SEQUENCE access_user_pref_prefnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.access_user_pref_prefnum_seq OWNER TO freeside;
+ALTER TABLE access_user_pref_prefnum_seq OWNER TO freeside;
 
 --
 -- Name: access_user_pref_prefnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -233,7 +273,7 @@ CREATE TABLE access_user_session (
 );
 
 
-ALTER TABLE public.access_user_session OWNER TO freeside;
+ALTER TABLE access_user_session OWNER TO freeside;
 
 --
 -- Name: access_user_session_sessionnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -247,7 +287,7 @@ CREATE SEQUENCE access_user_session_sessionnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.access_user_session_sessionnum_seq OWNER TO freeside;
+ALTER TABLE access_user_session_sessionnum_seq OWNER TO freeside;
 
 --
 -- Name: access_user_session_sessionnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -268,7 +308,7 @@ CREATE SEQUENCE access_user_usernum_seq
     CACHE 1;
 
 
-ALTER TABLE public.access_user_usernum_seq OWNER TO freeside;
+ALTER TABLE access_user_usernum_seq OWNER TO freeside;
 
 --
 -- Name: access_user_usernum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -288,7 +328,7 @@ CREATE TABLE access_usergroup (
 );
 
 
-ALTER TABLE public.access_usergroup OWNER TO freeside;
+ALTER TABLE access_usergroup OWNER TO freeside;
 
 --
 -- Name: access_usergroup_usergroupnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -302,7 +342,7 @@ CREATE SEQUENCE access_usergroup_usergroupnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.access_usergroup_usergroupnum_seq OWNER TO freeside;
+ALTER TABLE access_usergroup_usergroupnum_seq OWNER TO freeside;
 
 --
 -- Name: access_usergroup_usergroupnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -325,7 +365,7 @@ CREATE TABLE acct_rt_transaction (
 );
 
 
-ALTER TABLE public.acct_rt_transaction OWNER TO freeside;
+ALTER TABLE acct_rt_transaction OWNER TO freeside;
 
 --
 -- Name: acct_snarf; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -347,7 +387,7 @@ CREATE TABLE acct_snarf (
 );
 
 
-ALTER TABLE public.acct_snarf OWNER TO freeside;
+ALTER TABLE acct_snarf OWNER TO freeside;
 
 --
 -- Name: acct_snarf_snarfnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -361,7 +401,7 @@ CREATE SEQUENCE acct_snarf_snarfnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.acct_snarf_snarfnum_seq OWNER TO freeside;
+ALTER TABLE acct_snarf_snarfnum_seq OWNER TO freeside;
 
 --
 -- Name: acct_snarf_snarfnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -382,7 +422,7 @@ CREATE SEQUENCE acl_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.acl_id_seq OWNER TO freeside;
+ALTER TABLE acl_id_seq OWNER TO freeside;
 
 --
 -- Name: acl; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -402,7 +442,7 @@ CREATE TABLE acl (
 );
 
 
-ALTER TABLE public.acl OWNER TO freeside;
+ALTER TABLE acl OWNER TO freeside;
 
 --
 -- Name: addr_block; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -418,7 +458,7 @@ CREATE TABLE addr_block (
 );
 
 
-ALTER TABLE public.addr_block OWNER TO freeside;
+ALTER TABLE addr_block OWNER TO freeside;
 
 --
 -- Name: addr_block_blocknum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -432,7 +472,7 @@ CREATE SEQUENCE addr_block_blocknum_seq
     CACHE 1;
 
 
-ALTER TABLE public.addr_block_blocknum_seq OWNER TO freeside;
+ALTER TABLE addr_block_blocknum_seq OWNER TO freeside;
 
 --
 -- Name: addr_block_blocknum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -453,7 +493,7 @@ CREATE TABLE addr_range (
 );
 
 
-ALTER TABLE public.addr_range OWNER TO freeside;
+ALTER TABLE addr_range OWNER TO freeside;
 
 --
 -- Name: addr_range_rangenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -467,7 +507,7 @@ CREATE SEQUENCE addr_range_rangenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.addr_range_rangenum_seq OWNER TO freeside;
+ALTER TABLE addr_range_rangenum_seq OWNER TO freeside;
 
 --
 -- Name: addr_range_rangenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -495,7 +535,7 @@ CREATE TABLE agent (
 );
 
 
-ALTER TABLE public.agent OWNER TO freeside;
+ALTER TABLE agent OWNER TO freeside;
 
 --
 -- Name: agent_agentnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -509,7 +549,7 @@ CREATE SEQUENCE agent_agentnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.agent_agentnum_seq OWNER TO freeside;
+ALTER TABLE agent_agentnum_seq OWNER TO freeside;
 
 --
 -- Name: agent_agentnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -529,7 +569,7 @@ CREATE TABLE agent_currency (
 );
 
 
-ALTER TABLE public.agent_currency OWNER TO freeside;
+ALTER TABLE agent_currency OWNER TO freeside;
 
 --
 -- Name: agent_currency_agentcurrencynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -543,7 +583,7 @@ CREATE SEQUENCE agent_currency_agentcurrencynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.agent_currency_agentcurrencynum_seq OWNER TO freeside;
+ALTER TABLE agent_currency_agentcurrencynum_seq OWNER TO freeside;
 
 --
 -- Name: agent_currency_agentcurrencynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -565,7 +605,7 @@ CREATE TABLE agent_payment_gateway (
 );
 
 
-ALTER TABLE public.agent_payment_gateway OWNER TO freeside;
+ALTER TABLE agent_payment_gateway OWNER TO freeside;
 
 --
 -- Name: agent_payment_gateway_agentgatewaynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -579,7 +619,7 @@ CREATE SEQUENCE agent_payment_gateway_agentgatewaynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.agent_payment_gateway_agentgatewaynum_seq OWNER TO freeside;
+ALTER TABLE agent_payment_gateway_agentgatewaynum_seq OWNER TO freeside;
 
 --
 -- Name: agent_payment_gateway_agentgatewaynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -600,7 +640,7 @@ CREATE TABLE agent_pkg_class (
 );
 
 
-ALTER TABLE public.agent_pkg_class OWNER TO freeside;
+ALTER TABLE agent_pkg_class OWNER TO freeside;
 
 --
 -- Name: agent_pkg_class_agentpkgclassnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -614,7 +654,7 @@ CREATE SEQUENCE agent_pkg_class_agentpkgclassnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.agent_pkg_class_agentpkgclassnum_seq OWNER TO freeside;
+ALTER TABLE agent_pkg_class_agentpkgclassnum_seq OWNER TO freeside;
 
 --
 -- Name: agent_pkg_class_agentpkgclassnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -634,7 +674,7 @@ CREATE TABLE agent_type (
 );
 
 
-ALTER TABLE public.agent_type OWNER TO freeside;
+ALTER TABLE agent_type OWNER TO freeside;
 
 --
 -- Name: agent_type_typenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -648,7 +688,7 @@ CREATE SEQUENCE agent_type_typenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.agent_type_typenum_seq OWNER TO freeside;
+ALTER TABLE agent_type_typenum_seq OWNER TO freeside;
 
 --
 -- Name: agent_type_typenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -669,7 +709,7 @@ CREATE TABLE alarm_station (
 );
 
 
-ALTER TABLE public.alarm_station OWNER TO freeside;
+ALTER TABLE alarm_station OWNER TO freeside;
 
 --
 -- Name: alarm_station_alarmstationnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -683,7 +723,7 @@ CREATE SEQUENCE alarm_station_alarmstationnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.alarm_station_alarmstationnum_seq OWNER TO freeside;
+ALTER TABLE alarm_station_alarmstationnum_seq OWNER TO freeside;
 
 --
 -- Name: alarm_station_alarmstationnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -704,7 +744,7 @@ CREATE TABLE alarm_system (
 );
 
 
-ALTER TABLE public.alarm_system OWNER TO freeside;
+ALTER TABLE alarm_system OWNER TO freeside;
 
 --
 -- Name: alarm_system_alarmsystemnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -718,7 +758,7 @@ CREATE SEQUENCE alarm_system_alarmsystemnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.alarm_system_alarmsystemnum_seq OWNER TO freeside;
+ALTER TABLE alarm_system_alarmsystemnum_seq OWNER TO freeside;
 
 --
 -- Name: alarm_system_alarmsystemnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -740,7 +780,7 @@ CREATE TABLE alarm_type (
 );
 
 
-ALTER TABLE public.alarm_type OWNER TO freeside;
+ALTER TABLE alarm_type OWNER TO freeside;
 
 --
 -- Name: alarm_type_alarmtypenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -754,7 +794,7 @@ CREATE SEQUENCE alarm_type_alarmtypenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.alarm_type_alarmtypenum_seq OWNER TO freeside;
+ALTER TABLE alarm_type_alarmtypenum_seq OWNER TO freeside;
 
 --
 -- Name: alarm_type_alarmtypenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -776,7 +816,7 @@ CREATE TABLE areacode (
 );
 
 
-ALTER TABLE public.areacode OWNER TO freeside;
+ALTER TABLE areacode OWNER TO freeside;
 
 --
 -- Name: areacode_areanum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -790,7 +830,7 @@ CREATE SEQUENCE areacode_areanum_seq
     CACHE 1;
 
 
-ALTER TABLE public.areacode_areanum_seq OWNER TO freeside;
+ALTER TABLE areacode_areanum_seq OWNER TO freeside;
 
 --
 -- Name: areacode_areanum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -818,7 +858,7 @@ CREATE TABLE articles (
 );
 
 
-ALTER TABLE public.articles OWNER TO freeside;
+ALTER TABLE articles OWNER TO freeside;
 
 --
 -- Name: articles_id_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -832,7 +872,7 @@ CREATE SEQUENCE articles_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.articles_id_seq OWNER TO freeside;
+ALTER TABLE articles_id_seq OWNER TO freeside;
 
 --
 -- Name: articles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -853,7 +893,7 @@ CREATE SEQUENCE attachments_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.attachments_id_seq OWNER TO freeside;
+ALTER TABLE attachments_id_seq OWNER TO freeside;
 
 --
 -- Name: attachments; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -875,7 +915,7 @@ CREATE TABLE attachments (
 );
 
 
-ALTER TABLE public.attachments OWNER TO freeside;
+ALTER TABLE attachments OWNER TO freeside;
 
 --
 -- Name: attributes_id_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -889,7 +929,7 @@ CREATE SEQUENCE attributes_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.attributes_id_seq OWNER TO freeside;
+ALTER TABLE attributes_id_seq OWNER TO freeside;
 
 --
 -- Name: attributes; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -910,7 +950,7 @@ CREATE TABLE attributes (
 );
 
 
-ALTER TABLE public.attributes OWNER TO freeside;
+ALTER TABLE attributes OWNER TO freeside;
 
 --
 -- Name: banned_pay; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -930,7 +970,7 @@ CREATE TABLE banned_pay (
 );
 
 
-ALTER TABLE public.banned_pay OWNER TO freeside;
+ALTER TABLE banned_pay OWNER TO freeside;
 
 --
 -- Name: banned_pay_bannum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -944,7 +984,7 @@ CREATE SEQUENCE banned_pay_bannum_seq
     CACHE 1;
 
 
-ALTER TABLE public.banned_pay_bannum_seq OWNER TO freeside;
+ALTER TABLE banned_pay_bannum_seq OWNER TO freeside;
 
 --
 -- Name: banned_pay_bannum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -965,7 +1005,7 @@ CREATE TABLE bill_batch (
 );
 
 
-ALTER TABLE public.bill_batch OWNER TO freeside;
+ALTER TABLE bill_batch OWNER TO freeside;
 
 --
 -- Name: bill_batch_batchnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -979,7 +1019,7 @@ CREATE SEQUENCE bill_batch_batchnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.bill_batch_batchnum_seq OWNER TO freeside;
+ALTER TABLE bill_batch_batchnum_seq OWNER TO freeside;
 
 --
 -- Name: bill_batch_batchnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -999,7 +1039,7 @@ CREATE TABLE cable_model (
 );
 
 
-ALTER TABLE public.cable_model OWNER TO freeside;
+ALTER TABLE cable_model OWNER TO freeside;
 
 --
 -- Name: cable_model_modelnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1013,7 +1053,7 @@ CREATE SEQUENCE cable_model_modelnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cable_model_modelnum_seq OWNER TO freeside;
+ALTER TABLE cable_model_modelnum_seq OWNER TO freeside;
 
 --
 -- Name: cable_model_modelnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1033,7 +1073,7 @@ CREATE TABLE cable_provider (
 );
 
 
-ALTER TABLE public.cable_provider OWNER TO freeside;
+ALTER TABLE cable_provider OWNER TO freeside;
 
 --
 -- Name: cable_provider_providernum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1047,7 +1087,7 @@ CREATE SEQUENCE cable_provider_providernum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cable_provider_providernum_seq OWNER TO freeside;
+ALTER TABLE cable_provider_providernum_seq OWNER TO freeside;
 
 --
 -- Name: cable_provider_providernum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1068,7 +1108,7 @@ CREATE SEQUENCE cachedgroupmembers_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.cachedgroupmembers_id_seq OWNER TO freeside;
+ALTER TABLE cachedgroupmembers_id_seq OWNER TO freeside;
 
 --
 -- Name: cachedgroupmembers; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -1084,7 +1124,7 @@ CREATE TABLE cachedgroupmembers (
 );
 
 
-ALTER TABLE public.cachedgroupmembers OWNER TO freeside;
+ALTER TABLE cachedgroupmembers OWNER TO freeside;
 
 --
 -- Name: cacti_page; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -1100,7 +1140,7 @@ CREATE TABLE cacti_page (
 );
 
 
-ALTER TABLE public.cacti_page OWNER TO freeside;
+ALTER TABLE cacti_page OWNER TO freeside;
 
 --
 -- Name: cacti_page_cacti_pagenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1114,7 +1154,7 @@ CREATE SEQUENCE cacti_page_cacti_pagenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cacti_page_cacti_pagenum_seq OWNER TO freeside;
+ALTER TABLE cacti_page_cacti_pagenum_seq OWNER TO freeside;
 
 --
 -- Name: cacti_page_cacti_pagenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1187,11 +1227,12 @@ CREATE TABLE cdr (
     subscriber character varying(80),
     cdrbatch character varying(255),
     cdrbatchnum integer,
-    detailnum bigint
+    detailnum bigint,
+    rated_cost numeric(10,4)
 );
 
 
-ALTER TABLE public.cdr OWNER TO freeside;
+ALTER TABLE cdr OWNER TO freeside;
 
 --
 -- Name: cdr_acctid_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1205,7 +1246,7 @@ CREATE SEQUENCE cdr_acctid_seq
     CACHE 1;
 
 
-ALTER TABLE public.cdr_acctid_seq OWNER TO freeside;
+ALTER TABLE cdr_acctid_seq OWNER TO freeside;
 
 --
 -- Name: cdr_acctid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1225,7 +1266,7 @@ CREATE TABLE cdr_batch (
 );
 
 
-ALTER TABLE public.cdr_batch OWNER TO freeside;
+ALTER TABLE cdr_batch OWNER TO freeside;
 
 --
 -- Name: cdr_batch_cdrbatchnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1239,7 +1280,7 @@ CREATE SEQUENCE cdr_batch_cdrbatchnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cdr_batch_cdrbatchnum_seq OWNER TO freeside;
+ALTER TABLE cdr_batch_cdrbatchnum_seq OWNER TO freeside;
 
 --
 -- Name: cdr_batch_cdrbatchnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1258,7 +1299,7 @@ CREATE TABLE cdr_calltype (
 );
 
 
-ALTER TABLE public.cdr_calltype OWNER TO freeside;
+ALTER TABLE cdr_calltype OWNER TO freeside;
 
 --
 -- Name: cdr_calltype_calltypenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1272,7 +1313,7 @@ CREATE SEQUENCE cdr_calltype_calltypenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cdr_calltype_calltypenum_seq OWNER TO freeside;
+ALTER TABLE cdr_calltype_calltypenum_seq OWNER TO freeside;
 
 --
 -- Name: cdr_calltype_calltypenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1292,7 +1333,7 @@ CREATE TABLE cdr_carrier (
 );
 
 
-ALTER TABLE public.cdr_carrier OWNER TO freeside;
+ALTER TABLE cdr_carrier OWNER TO freeside;
 
 --
 -- Name: cdr_carrier_carrierid_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1306,7 +1347,7 @@ CREATE SEQUENCE cdr_carrier_carrierid_seq
     CACHE 1;
 
 
-ALTER TABLE public.cdr_carrier_carrierid_seq OWNER TO freeside;
+ALTER TABLE cdr_carrier_carrierid_seq OWNER TO freeside;
 
 --
 -- Name: cdr_carrier_carrierid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1327,7 +1368,7 @@ CREATE TABLE cdr_cust_pkg_usage (
 );
 
 
-ALTER TABLE public.cdr_cust_pkg_usage OWNER TO freeside;
+ALTER TABLE cdr_cust_pkg_usage OWNER TO freeside;
 
 --
 -- Name: cdr_cust_pkg_usage_cdrusagenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1341,7 +1382,7 @@ CREATE SEQUENCE cdr_cust_pkg_usage_cdrusagenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cdr_cust_pkg_usage_cdrusagenum_seq OWNER TO freeside;
+ALTER TABLE cdr_cust_pkg_usage_cdrusagenum_seq OWNER TO freeside;
 
 --
 -- Name: cdr_cust_pkg_usage_cdrusagenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1366,7 +1407,7 @@ CREATE TABLE cdr_termination (
 );
 
 
-ALTER TABLE public.cdr_termination OWNER TO freeside;
+ALTER TABLE cdr_termination OWNER TO freeside;
 
 --
 -- Name: cdr_termination_cdrtermnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1380,7 +1421,7 @@ CREATE SEQUENCE cdr_termination_cdrtermnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cdr_termination_cdrtermnum_seq OWNER TO freeside;
+ALTER TABLE cdr_termination_cdrtermnum_seq OWNER TO freeside;
 
 --
 -- Name: cdr_termination_cdrtermnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1399,7 +1440,7 @@ CREATE TABLE cdr_type (
 );
 
 
-ALTER TABLE public.cdr_type OWNER TO freeside;
+ALTER TABLE cdr_type OWNER TO freeside;
 
 --
 -- Name: cdr_type_cdrtypenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1413,7 +1454,7 @@ CREATE SEQUENCE cdr_type_cdrtypenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cdr_type_cdrtypenum_seq OWNER TO freeside;
+ALTER TABLE cdr_type_cdrtypenum_seq OWNER TO freeside;
 
 --
 -- Name: cdr_type_cdrtypenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1435,7 +1476,7 @@ CREATE TABLE cgp_rule (
 );
 
 
-ALTER TABLE public.cgp_rule OWNER TO freeside;
+ALTER TABLE cgp_rule OWNER TO freeside;
 
 --
 -- Name: cgp_rule_action; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -1449,7 +1490,7 @@ CREATE TABLE cgp_rule_action (
 );
 
 
-ALTER TABLE public.cgp_rule_action OWNER TO freeside;
+ALTER TABLE cgp_rule_action OWNER TO freeside;
 
 --
 -- Name: cgp_rule_action_ruleactionnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1463,7 +1504,7 @@ CREATE SEQUENCE cgp_rule_action_ruleactionnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cgp_rule_action_ruleactionnum_seq OWNER TO freeside;
+ALTER TABLE cgp_rule_action_ruleactionnum_seq OWNER TO freeside;
 
 --
 -- Name: cgp_rule_action_ruleactionnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1485,7 +1526,7 @@ CREATE TABLE cgp_rule_condition (
 );
 
 
-ALTER TABLE public.cgp_rule_condition OWNER TO freeside;
+ALTER TABLE cgp_rule_condition OWNER TO freeside;
 
 --
 -- Name: cgp_rule_condition_ruleconditionnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1499,7 +1540,7 @@ CREATE SEQUENCE cgp_rule_condition_ruleconditionnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cgp_rule_condition_ruleconditionnum_seq OWNER TO freeside;
+ALTER TABLE cgp_rule_condition_ruleconditionnum_seq OWNER TO freeside;
 
 --
 -- Name: cgp_rule_condition_ruleconditionnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1520,7 +1561,7 @@ CREATE SEQUENCE cgp_rule_rulenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cgp_rule_rulenum_seq OWNER TO freeside;
+ALTER TABLE cgp_rule_rulenum_seq OWNER TO freeside;
 
 --
 -- Name: cgp_rule_rulenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1540,7 +1581,7 @@ CREATE TABLE circuit_provider (
 );
 
 
-ALTER TABLE public.circuit_provider OWNER TO freeside;
+ALTER TABLE circuit_provider OWNER TO freeside;
 
 --
 -- Name: circuit_provider_providernum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1554,7 +1595,7 @@ CREATE SEQUENCE circuit_provider_providernum_seq
     CACHE 1;
 
 
-ALTER TABLE public.circuit_provider_providernum_seq OWNER TO freeside;
+ALTER TABLE circuit_provider_providernum_seq OWNER TO freeside;
 
 --
 -- Name: circuit_provider_providernum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1574,7 +1615,7 @@ CREATE TABLE circuit_termination (
 );
 
 
-ALTER TABLE public.circuit_termination OWNER TO freeside;
+ALTER TABLE circuit_termination OWNER TO freeside;
 
 --
 -- Name: circuit_termination_termnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1588,7 +1629,7 @@ CREATE SEQUENCE circuit_termination_termnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.circuit_termination_termnum_seq OWNER TO freeside;
+ALTER TABLE circuit_termination_termnum_seq OWNER TO freeside;
 
 --
 -- Name: circuit_termination_termnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1608,7 +1649,7 @@ CREATE TABLE circuit_type (
 );
 
 
-ALTER TABLE public.circuit_type OWNER TO freeside;
+ALTER TABLE circuit_type OWNER TO freeside;
 
 --
 -- Name: circuit_type_typenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1622,7 +1663,7 @@ CREATE SEQUENCE circuit_type_typenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.circuit_type_typenum_seq OWNER TO freeside;
+ALTER TABLE circuit_type_typenum_seq OWNER TO freeside;
 
 --
 -- Name: circuit_type_typenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1649,7 +1690,7 @@ CREATE TABLE classes (
 );
 
 
-ALTER TABLE public.classes OWNER TO freeside;
+ALTER TABLE classes OWNER TO freeside;
 
 --
 -- Name: classes_id_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1663,7 +1704,7 @@ CREATE SEQUENCE classes_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.classes_id_seq OWNER TO freeside;
+ALTER TABLE classes_id_seq OWNER TO freeside;
 
 --
 -- Name: classes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1683,7 +1724,7 @@ CREATE TABLE clientapi_session (
 );
 
 
-ALTER TABLE public.clientapi_session OWNER TO freeside;
+ALTER TABLE clientapi_session OWNER TO freeside;
 
 --
 -- Name: clientapi_session_field; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -1697,7 +1738,7 @@ CREATE TABLE clientapi_session_field (
 );
 
 
-ALTER TABLE public.clientapi_session_field OWNER TO freeside;
+ALTER TABLE clientapi_session_field OWNER TO freeside;
 
 --
 -- Name: clientapi_session_field_fieldnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1711,7 +1752,7 @@ CREATE SEQUENCE clientapi_session_field_fieldnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.clientapi_session_field_fieldnum_seq OWNER TO freeside;
+ALTER TABLE clientapi_session_field_fieldnum_seq OWNER TO freeside;
 
 --
 -- Name: clientapi_session_field_fieldnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1732,7 +1773,7 @@ CREATE SEQUENCE clientapi_session_sessionnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.clientapi_session_sessionnum_seq OWNER TO freeside;
+ALTER TABLE clientapi_session_sessionnum_seq OWNER TO freeside;
 
 --
 -- Name: clientapi_session_sessionnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1754,7 +1795,7 @@ CREATE TABLE conf (
 );
 
 
-ALTER TABLE public.conf OWNER TO freeside;
+ALTER TABLE conf OWNER TO freeside;
 
 --
 -- Name: conf_confnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1768,7 +1809,7 @@ CREATE SEQUENCE conf_confnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.conf_confnum_seq OWNER TO freeside;
+ALTER TABLE conf_confnum_seq OWNER TO freeside;
 
 --
 -- Name: conf_confnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1789,7 +1830,7 @@ CREATE TABLE conferencing_quality (
 );
 
 
-ALTER TABLE public.conferencing_quality OWNER TO freeside;
+ALTER TABLE conferencing_quality OWNER TO freeside;
 
 --
 -- Name: conferencing_type; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -1803,7 +1844,7 @@ CREATE TABLE conferencing_type (
 );
 
 
-ALTER TABLE public.conferencing_type OWNER TO freeside;
+ALTER TABLE conferencing_type OWNER TO freeside;
 
 --
 -- Name: contact; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -1822,11 +1863,12 @@ CREATE TABLE contact (
     selfservice_access character(1),
     _password character varying(80),
     _password_encoding character varying(80),
-    disabled character(1)
+    disabled character(1),
+    invoice_dest character(1)
 );
 
 
-ALTER TABLE public.contact OWNER TO freeside;
+ALTER TABLE contact OWNER TO freeside;
 
 --
 -- Name: contact_class; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -1839,7 +1881,7 @@ CREATE TABLE contact_class (
 );
 
 
-ALTER TABLE public.contact_class OWNER TO freeside;
+ALTER TABLE contact_class OWNER TO freeside;
 
 --
 -- Name: contact_class_classnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1853,7 +1895,7 @@ CREATE SEQUENCE contact_class_classnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.contact_class_classnum_seq OWNER TO freeside;
+ALTER TABLE contact_class_classnum_seq OWNER TO freeside;
 
 --
 -- Name: contact_class_classnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1874,7 +1916,7 @@ CREATE SEQUENCE contact_contactnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.contact_contactnum_seq OWNER TO freeside;
+ALTER TABLE contact_contactnum_seq OWNER TO freeside;
 
 --
 -- Name: contact_contactnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1894,7 +1936,7 @@ CREATE TABLE contact_email (
 );
 
 
-ALTER TABLE public.contact_email OWNER TO freeside;
+ALTER TABLE contact_email OWNER TO freeside;
 
 --
 -- Name: contact_email_contactemailnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1908,7 +1950,7 @@ CREATE SEQUENCE contact_email_contactemailnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.contact_email_contactemailnum_seq OWNER TO freeside;
+ALTER TABLE contact_email_contactemailnum_seq OWNER TO freeside;
 
 --
 -- Name: contact_email_contactemailnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1931,7 +1973,7 @@ CREATE TABLE contact_phone (
 );
 
 
-ALTER TABLE public.contact_phone OWNER TO freeside;
+ALTER TABLE contact_phone OWNER TO freeside;
 
 --
 -- Name: contact_phone_contactphonenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1945,7 +1987,7 @@ CREATE SEQUENCE contact_phone_contactphonenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.contact_phone_contactphonenum_seq OWNER TO freeside;
+ALTER TABLE contact_phone_contactphonenum_seq OWNER TO freeside;
 
 --
 -- Name: contact_phone_contactphonenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -1966,7 +2008,7 @@ CREATE TABLE currency_exchange (
 );
 
 
-ALTER TABLE public.currency_exchange OWNER TO freeside;
+ALTER TABLE currency_exchange OWNER TO freeside;
 
 --
 -- Name: currency_exchange_currencyratenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -1980,7 +2022,7 @@ CREATE SEQUENCE currency_exchange_currencyratenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.currency_exchange_currencyratenum_seq OWNER TO freeside;
+ALTER TABLE currency_exchange_currencyratenum_seq OWNER TO freeside;
 
 --
 -- Name: currency_exchange_currencyratenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2007,7 +2049,7 @@ CREATE TABLE cust_attachment (
 );
 
 
-ALTER TABLE public.cust_attachment OWNER TO freeside;
+ALTER TABLE cust_attachment OWNER TO freeside;
 
 --
 -- Name: cust_attachment_attachnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2021,7 +2063,7 @@ CREATE SEQUENCE cust_attachment_attachnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_attachment_attachnum_seq OWNER TO freeside;
+ALTER TABLE cust_attachment_attachnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_attachment_attachnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2052,7 +2094,7 @@ CREATE TABLE cust_bill (
 );
 
 
-ALTER TABLE public.cust_bill OWNER TO freeside;
+ALTER TABLE cust_bill OWNER TO freeside;
 
 --
 -- Name: cust_bill_batch; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -2065,7 +2107,7 @@ CREATE TABLE cust_bill_batch (
 );
 
 
-ALTER TABLE public.cust_bill_batch OWNER TO freeside;
+ALTER TABLE cust_bill_batch OWNER TO freeside;
 
 --
 -- Name: cust_bill_batch_billbatchnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2079,7 +2121,7 @@ CREATE SEQUENCE cust_bill_batch_billbatchnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_batch_billbatchnum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_batch_billbatchnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_batch_billbatchnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2100,7 +2142,7 @@ CREATE TABLE cust_bill_batch_option (
 );
 
 
-ALTER TABLE public.cust_bill_batch_option OWNER TO freeside;
+ALTER TABLE cust_bill_batch_option OWNER TO freeside;
 
 --
 -- Name: cust_bill_batch_option_optionnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2114,7 +2156,7 @@ CREATE SEQUENCE cust_bill_batch_option_optionnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_batch_option_optionnum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_batch_option_optionnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_batch_option_optionnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2137,7 +2179,7 @@ CREATE TABLE cust_bill_event (
 );
 
 
-ALTER TABLE public.cust_bill_event OWNER TO freeside;
+ALTER TABLE cust_bill_event OWNER TO freeside;
 
 --
 -- Name: cust_bill_event_eventnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2151,7 +2193,7 @@ CREATE SEQUENCE cust_bill_event_eventnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_event_eventnum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_event_eventnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_event_eventnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2172,7 +2214,7 @@ CREATE SEQUENCE cust_bill_invnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_invnum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_invnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_invnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2195,7 +2237,7 @@ CREATE TABLE cust_bill_pay (
 );
 
 
-ALTER TABLE public.cust_bill_pay OWNER TO freeside;
+ALTER TABLE cust_bill_pay OWNER TO freeside;
 
 --
 -- Name: cust_bill_pay_batch; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -2210,7 +2252,7 @@ CREATE TABLE cust_bill_pay_batch (
 );
 
 
-ALTER TABLE public.cust_bill_pay_batch OWNER TO freeside;
+ALTER TABLE cust_bill_pay_batch OWNER TO freeside;
 
 --
 -- Name: cust_bill_pay_batch_billpaynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2224,7 +2266,7 @@ CREATE SEQUENCE cust_bill_pay_batch_billpaynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_pay_batch_billpaynum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_pay_batch_billpaynum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_pay_batch_billpaynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2245,7 +2287,7 @@ CREATE SEQUENCE cust_bill_pay_billpaynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_pay_billpaynum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_pay_billpaynum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_pay_billpaynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2271,7 +2313,7 @@ CREATE TABLE cust_bill_pay_pkg (
 );
 
 
-ALTER TABLE public.cust_bill_pay_pkg OWNER TO freeside;
+ALTER TABLE cust_bill_pay_pkg OWNER TO freeside;
 
 --
 -- Name: cust_bill_pay_pkg_billpaypkgnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2285,7 +2327,7 @@ CREATE SEQUENCE cust_bill_pay_pkg_billpaypkgnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_pay_pkg_billpaypkgnum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_pay_pkg_billpaypkgnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_pay_pkg_billpaypkgnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2323,7 +2365,7 @@ CREATE TABLE cust_bill_pkg (
 );
 
 
-ALTER TABLE public.cust_bill_pkg OWNER TO freeside;
+ALTER TABLE cust_bill_pkg OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_billpkgnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2337,7 +2379,7 @@ CREATE SEQUENCE cust_bill_pkg_billpkgnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_pkg_billpkgnum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_billpkgnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_billpkgnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2367,7 +2409,7 @@ CREATE TABLE cust_bill_pkg_detail (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_detail OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_detail OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_detail_detailnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2381,7 +2423,7 @@ CREATE SEQUENCE cust_bill_pkg_detail_detailnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_pkg_detail_detailnum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_detail_detailnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_detail_detailnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2411,7 +2453,7 @@ CREATE TABLE cust_bill_pkg_detail_void (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_detail_void OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_detail_void OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_discount; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -2426,7 +2468,7 @@ CREATE TABLE cust_bill_pkg_discount (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_discount OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_discount OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_discount_billpkgdiscountnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2440,7 +2482,7 @@ CREATE SEQUENCE cust_bill_pkg_discount_billpkgdiscountnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_pkg_discount_billpkgdiscountnum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_discount_billpkgdiscountnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_discount_billpkgdiscountnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2462,7 +2504,7 @@ CREATE TABLE cust_bill_pkg_discount_void (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_discount_void OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_discount_void OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_display; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -2478,7 +2520,7 @@ CREATE TABLE cust_bill_pkg_display (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_display OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_display OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_display_billpkgdisplaynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2492,7 +2534,7 @@ CREATE SEQUENCE cust_bill_pkg_display_billpkgdisplaynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_pkg_display_billpkgdisplaynum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_display_billpkgdisplaynum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_display_billpkgdisplaynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2515,7 +2557,7 @@ CREATE TABLE cust_bill_pkg_display_void (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_display_void OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_display_void OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_fee; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -2530,7 +2572,7 @@ CREATE TABLE cust_bill_pkg_fee (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_fee OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_fee OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_fee_billpkgfeenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2544,7 +2586,7 @@ CREATE SEQUENCE cust_bill_pkg_fee_billpkgfeenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_pkg_fee_billpkgfeenum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_fee_billpkgfeenum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_fee_billpkgfeenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2566,7 +2608,7 @@ CREATE TABLE cust_bill_pkg_fee_void (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_fee_void OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_fee_void OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_fee_void_billpkgfeenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2580,7 +2622,7 @@ CREATE SEQUENCE cust_bill_pkg_fee_void_billpkgfeenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_pkg_fee_void_billpkgfeenum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_fee_void_billpkgfeenum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_fee_void_billpkgfeenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2606,7 +2648,7 @@ CREATE TABLE cust_bill_pkg_tax_location (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_tax_location OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_tax_location OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_tax_location_billpkgtaxlocationnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2620,7 +2662,7 @@ CREATE SEQUENCE cust_bill_pkg_tax_location_billpkgtaxlocationnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_pkg_tax_location_billpkgtaxlocationnum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_tax_location_billpkgtaxlocationnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_tax_location_billpkgtaxlocationnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2646,7 +2688,7 @@ CREATE TABLE cust_bill_pkg_tax_location_void (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_tax_location_void OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_tax_location_void OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_tax_rate_location; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -2666,7 +2708,7 @@ CREATE TABLE cust_bill_pkg_tax_rate_location (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_tax_rate_location OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_tax_rate_location OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_tax_rate_location_billpkgtaxratelocationnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2680,7 +2722,7 @@ CREATE SEQUENCE cust_bill_pkg_tax_rate_location_billpkgtaxratelocationnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_bill_pkg_tax_rate_location_billpkgtaxratelocationnum_seq OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_tax_rate_location_billpkgtaxratelocationnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_tax_rate_location_billpkgtaxratelocationnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2705,7 +2747,7 @@ CREATE TABLE cust_bill_pkg_tax_rate_location_void (
 );
 
 
-ALTER TABLE public.cust_bill_pkg_tax_rate_location_void OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_tax_rate_location_void OWNER TO freeside;
 
 --
 -- Name: cust_bill_pkg_void; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -2731,11 +2773,12 @@ CREATE TABLE cust_bill_pkg_void (
     feepart integer,
     void_date integer,
     reason character varying(80),
-    void_usernum integer
+    void_usernum integer,
+    reasonnum integer
 );
 
 
-ALTER TABLE public.cust_bill_pkg_void OWNER TO freeside;
+ALTER TABLE cust_bill_pkg_void OWNER TO freeside;
 
 --
 -- Name: cust_bill_void; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -2756,11 +2799,12 @@ CREATE TABLE cust_bill_void (
     void_date integer,
     reason character varying(80),
     void_usernum integer,
-    currency character(3)
+    currency character(3),
+    reasonnum integer
 );
 
 
-ALTER TABLE public.cust_bill_void OWNER TO freeside;
+ALTER TABLE cust_bill_void OWNER TO freeside;
 
 --
 -- Name: cust_category; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -2774,7 +2818,7 @@ CREATE TABLE cust_category (
 );
 
 
-ALTER TABLE public.cust_category OWNER TO freeside;
+ALTER TABLE cust_category OWNER TO freeside;
 
 --
 -- Name: cust_category_categorynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2788,7 +2832,7 @@ CREATE SEQUENCE cust_category_categorynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_category_categorynum_seq OWNER TO freeside;
+ALTER TABLE cust_category_categorynum_seq OWNER TO freeside;
 
 --
 -- Name: cust_category_categorynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2810,7 +2854,7 @@ CREATE TABLE cust_class (
 );
 
 
-ALTER TABLE public.cust_class OWNER TO freeside;
+ALTER TABLE cust_class OWNER TO freeside;
 
 --
 -- Name: cust_class_classnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2824,7 +2868,7 @@ CREATE SEQUENCE cust_class_classnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_class_classnum_seq OWNER TO freeside;
+ALTER TABLE cust_class_classnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_class_classnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2843,11 +2887,12 @@ CREATE TABLE cust_contact (
     contactnum integer NOT NULL,
     classnum integer,
     comment character varying(255),
-    selfservice_access character(1)
+    selfservice_access character(1),
+    invoice_dest character(1)
 );
 
 
-ALTER TABLE public.cust_contact OWNER TO freeside;
+ALTER TABLE cust_contact OWNER TO freeside;
 
 --
 -- Name: cust_contact_custcontactnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2861,7 +2906,7 @@ CREATE SEQUENCE cust_contact_custcontactnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_contact_custcontactnum_seq OWNER TO freeside;
+ALTER TABLE cust_contact_custcontactnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_contact_custcontactnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2895,7 +2940,7 @@ CREATE TABLE cust_credit (
 );
 
 
-ALTER TABLE public.cust_credit OWNER TO freeside;
+ALTER TABLE cust_credit OWNER TO freeside;
 
 --
 -- Name: cust_credit_bill; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -2911,7 +2956,7 @@ CREATE TABLE cust_credit_bill (
 );
 
 
-ALTER TABLE public.cust_credit_bill OWNER TO freeside;
+ALTER TABLE cust_credit_bill OWNER TO freeside;
 
 --
 -- Name: cust_credit_bill_creditbillnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2925,7 +2970,7 @@ CREATE SEQUENCE cust_credit_bill_creditbillnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_credit_bill_creditbillnum_seq OWNER TO freeside;
+ALTER TABLE cust_credit_bill_creditbillnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_credit_bill_creditbillnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2951,7 +2996,7 @@ CREATE TABLE cust_credit_bill_pkg (
 );
 
 
-ALTER TABLE public.cust_credit_bill_pkg OWNER TO freeside;
+ALTER TABLE cust_credit_bill_pkg OWNER TO freeside;
 
 --
 -- Name: cust_credit_bill_pkg_creditbillpkgnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -2965,7 +3010,7 @@ CREATE SEQUENCE cust_credit_bill_pkg_creditbillpkgnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_credit_bill_pkg_creditbillpkgnum_seq OWNER TO freeside;
+ALTER TABLE cust_credit_bill_pkg_creditbillpkgnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_credit_bill_pkg_creditbillpkgnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -2986,7 +3031,7 @@ CREATE SEQUENCE cust_credit_crednum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_credit_crednum_seq OWNER TO freeside;
+ALTER TABLE cust_credit_crednum_seq OWNER TO freeside;
 
 --
 -- Name: cust_credit_crednum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3008,7 +3053,7 @@ CREATE TABLE cust_credit_refund (
 );
 
 
-ALTER TABLE public.cust_credit_refund OWNER TO freeside;
+ALTER TABLE cust_credit_refund OWNER TO freeside;
 
 --
 -- Name: cust_credit_refund_creditrefundnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3022,7 +3067,7 @@ CREATE SEQUENCE cust_credit_refund_creditrefundnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_credit_refund_creditrefundnum_seq OWNER TO freeside;
+ALTER TABLE cust_credit_refund_creditrefundnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_credit_refund_creditrefundnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3044,7 +3089,7 @@ CREATE TABLE cust_credit_source_bill_pkg (
 );
 
 
-ALTER TABLE public.cust_credit_source_bill_pkg OWNER TO freeside;
+ALTER TABLE cust_credit_source_bill_pkg OWNER TO freeside;
 
 --
 -- Name: cust_credit_source_bill_pkg_creditsourcebillpkgnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3058,7 +3103,7 @@ CREATE SEQUENCE cust_credit_source_bill_pkg_creditsourcebillpkgnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_credit_source_bill_pkg_creditsourcebillpkgnum_seq OWNER TO freeside;
+ALTER TABLE cust_credit_source_bill_pkg_creditsourcebillpkgnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_credit_source_bill_pkg_creditsourcebillpkgnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3095,7 +3140,7 @@ CREATE TABLE cust_credit_void (
 );
 
 
-ALTER TABLE public.cust_credit_void OWNER TO freeside;
+ALTER TABLE cust_credit_void OWNER TO freeside;
 
 --
 -- Name: cust_credit_void_crednum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3109,7 +3154,7 @@ CREATE SEQUENCE cust_credit_void_crednum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_credit_void_crednum_seq OWNER TO freeside;
+ALTER TABLE cust_credit_void_crednum_seq OWNER TO freeside;
 
 --
 -- Name: cust_credit_void_crednum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3128,11 +3173,12 @@ CREATE TABLE cust_event (
     tablenum integer NOT NULL,
     _date integer,
     status character varying(80) NOT NULL,
-    statustext text
+    statustext text,
+    no_action character(1)
 );
 
 
-ALTER TABLE public.cust_event OWNER TO freeside;
+ALTER TABLE cust_event OWNER TO freeside;
 
 --
 -- Name: cust_event_eventnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3146,7 +3192,7 @@ CREATE SEQUENCE cust_event_eventnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_event_eventnum_seq OWNER TO freeside;
+ALTER TABLE cust_event_eventnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_event_eventnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3168,7 +3214,7 @@ CREATE TABLE cust_event_fee (
 );
 
 
-ALTER TABLE public.cust_event_fee OWNER TO freeside;
+ALTER TABLE cust_event_fee OWNER TO freeside;
 
 --
 -- Name: cust_event_fee_eventfeenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3182,7 +3228,7 @@ CREATE SEQUENCE cust_event_fee_eventfeenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_event_fee_eventfeenum_seq OWNER TO freeside;
+ALTER TABLE cust_event_fee_eventfeenum_seq OWNER TO freeside;
 
 --
 -- Name: cust_event_fee_eventfeenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3223,7 +3269,7 @@ CREATE TABLE cust_location (
 );
 
 
-ALTER TABLE public.cust_location OWNER TO freeside;
+ALTER TABLE cust_location OWNER TO freeside;
 
 --
 -- Name: cust_location_locationnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3237,7 +3283,7 @@ CREATE SEQUENCE cust_location_locationnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_location_locationnum_seq OWNER TO freeside;
+ALTER TABLE cust_location_locationnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_location_locationnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3304,18 +3350,6 @@ CREATE TABLE cust_main (
     ship_night character varying(20),
     ship_fax character varying(12),
     ship_mobile character varying(12),
-    payby character(4),
-    payinfo character varying(512),
-    paycvv character varying(512),
-    paymask character varying(80),
-    paydate character varying(10),
-    paystart_month integer,
-    paystart_year integer,
-    payissue character varying(2),
-    payname character varying(160),
-    paystate character varying(80),
-    paytype character varying(80),
-    payip character varying(15),
     geocode character varying(20),
     censustract character varying(20),
     censusyear character(4),
@@ -3349,11 +3383,12 @@ CREATE TABLE cust_main (
     taxstatusnum integer,
     complimentary character(1),
     po_number character varying(80),
-    invoice_attn character varying(80)
+    invoice_attn character varying(80),
+    postal_invoice character(1)
 );
 
 
-ALTER TABLE public.cust_main OWNER TO freeside;
+ALTER TABLE cust_main OWNER TO freeside;
 
 --
 -- Name: cust_main_county; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -3372,11 +3407,12 @@ CREATE TABLE cust_main_county (
     taxname character varying(80),
     setuptax character(1),
     recurtax character(1),
-    exempt_amount_currency character(3)
+    exempt_amount_currency character(3),
+    source character varying(80)
 );
 
 
-ALTER TABLE public.cust_main_county OWNER TO freeside;
+ALTER TABLE cust_main_county OWNER TO freeside;
 
 --
 -- Name: cust_main_county_taxnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3390,7 +3426,7 @@ CREATE SEQUENCE cust_main_county_taxnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_main_county_taxnum_seq OWNER TO freeside;
+ALTER TABLE cust_main_county_taxnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_main_county_taxnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3412,7 +3448,7 @@ CREATE TABLE cust_main_credit_limit (
 );
 
 
-ALTER TABLE public.cust_main_credit_limit OWNER TO freeside;
+ALTER TABLE cust_main_credit_limit OWNER TO freeside;
 
 --
 -- Name: cust_main_credit_limit_creditlimitnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3426,7 +3462,7 @@ CREATE SEQUENCE cust_main_credit_limit_creditlimitnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_main_credit_limit_creditlimitnum_seq OWNER TO freeside;
+ALTER TABLE cust_main_credit_limit_creditlimitnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_main_credit_limit_creditlimitnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3447,7 +3483,7 @@ CREATE SEQUENCE cust_main_custnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_main_custnum_seq OWNER TO freeside;
+ALTER TABLE cust_main_custnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_main_custnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3468,7 +3504,7 @@ CREATE TABLE cust_main_exemption (
 );
 
 
-ALTER TABLE public.cust_main_exemption OWNER TO freeside;
+ALTER TABLE cust_main_exemption OWNER TO freeside;
 
 --
 -- Name: cust_main_exemption_exemptionnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3482,7 +3518,7 @@ CREATE SEQUENCE cust_main_exemption_exemptionnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_main_exemption_exemptionnum_seq OWNER TO freeside;
+ALTER TABLE cust_main_exemption_exemptionnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_main_exemption_exemptionnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3502,7 +3538,7 @@ CREATE TABLE cust_main_invoice (
 );
 
 
-ALTER TABLE public.cust_main_invoice OWNER TO freeside;
+ALTER TABLE cust_main_invoice OWNER TO freeside;
 
 --
 -- Name: cust_main_invoice_destnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3516,7 +3552,7 @@ CREATE SEQUENCE cust_main_invoice_destnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_main_invoice_destnum_seq OWNER TO freeside;
+ALTER TABLE cust_main_invoice_destnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_main_invoice_destnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3541,7 +3577,7 @@ CREATE TABLE cust_main_note (
 );
 
 
-ALTER TABLE public.cust_main_note OWNER TO freeside;
+ALTER TABLE cust_main_note OWNER TO freeside;
 
 --
 -- Name: cust_main_note_notenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3555,7 +3591,7 @@ CREATE SEQUENCE cust_main_note_notenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_main_note_notenum_seq OWNER TO freeside;
+ALTER TABLE cust_main_note_notenum_seq OWNER TO freeside;
 
 --
 -- Name: cust_main_note_notenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3579,11 +3615,12 @@ CREATE TABLE cust_msg (
     body bytea,
     error character varying(255),
     status character varying(80) NOT NULL,
-    msgtype character varying(16)
+    msgtype character varying(16),
+    preview text
 );
 
 
-ALTER TABLE public.cust_msg OWNER TO freeside;
+ALTER TABLE cust_msg OWNER TO freeside;
 
 --
 -- Name: cust_msg_custmsgnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3597,7 +3634,7 @@ CREATE SEQUENCE cust_msg_custmsgnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_msg_custmsgnum_seq OWNER TO freeside;
+ALTER TABLE cust_msg_custmsgnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_msg_custmsgnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3617,7 +3654,7 @@ CREATE TABLE cust_note_class (
 );
 
 
-ALTER TABLE public.cust_note_class OWNER TO freeside;
+ALTER TABLE cust_note_class OWNER TO freeside;
 
 --
 -- Name: cust_note_class_classnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3631,7 +3668,7 @@ CREATE SEQUENCE cust_note_class_classnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_note_class_classnum_seq OWNER TO freeside;
+ALTER TABLE cust_note_class_classnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_note_class_classnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3673,7 +3710,7 @@ CREATE TABLE cust_pay (
 );
 
 
-ALTER TABLE public.cust_pay OWNER TO freeside;
+ALTER TABLE cust_pay OWNER TO freeside;
 
 --
 -- Name: cust_pay_batch; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -3700,11 +3737,12 @@ CREATE TABLE cust_pay_batch (
     status character varying(80),
     error_message character varying(80),
     currency character(3),
-    failure_status character varying(16)
+    failure_status character varying(16),
+    paytype character varying(80)
 );
 
 
-ALTER TABLE public.cust_pay_batch OWNER TO freeside;
+ALTER TABLE cust_pay_batch OWNER TO freeside;
 
 --
 -- Name: cust_pay_batch_paybatchnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3718,7 +3756,7 @@ CREATE SEQUENCE cust_pay_batch_paybatchnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pay_batch_paybatchnum_seq OWNER TO freeside;
+ALTER TABLE cust_pay_batch_paybatchnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_pay_batch_paybatchnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3739,7 +3777,7 @@ CREATE SEQUENCE cust_pay_paynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pay_paynum_seq OWNER TO freeside;
+ALTER TABLE cust_pay_paynum_seq OWNER TO freeside;
 
 --
 -- Name: cust_pay_paynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3779,7 +3817,7 @@ CREATE TABLE cust_pay_pending (
 );
 
 
-ALTER TABLE public.cust_pay_pending OWNER TO freeside;
+ALTER TABLE cust_pay_pending OWNER TO freeside;
 
 --
 -- Name: cust_pay_pending_paypendingnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3793,7 +3831,7 @@ CREATE SEQUENCE cust_pay_pending_paypendingnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pay_pending_paypendingnum_seq OWNER TO freeside;
+ALTER TABLE cust_pay_pending_paypendingnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_pay_pending_paypendingnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3815,7 +3853,7 @@ CREATE TABLE cust_pay_refund (
 );
 
 
-ALTER TABLE public.cust_pay_refund OWNER TO freeside;
+ALTER TABLE cust_pay_refund OWNER TO freeside;
 
 --
 -- Name: cust_pay_refund_payrefundnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3829,7 +3867,7 @@ CREATE SEQUENCE cust_pay_refund_payrefundnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pay_refund_payrefundnum_seq OWNER TO freeside;
+ALTER TABLE cust_pay_refund_payrefundnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_pay_refund_payrefundnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3867,11 +3905,12 @@ CREATE TABLE cust_pay_void (
     void_date integer,
     reason character varying(80),
     void_usernum integer,
-    currency character(3)
+    currency character(3),
+    reasonnum integer
 );
 
 
-ALTER TABLE public.cust_pay_void OWNER TO freeside;
+ALTER TABLE cust_pay_void OWNER TO freeside;
 
 --
 -- Name: cust_payby; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -3898,7 +3937,7 @@ CREATE TABLE cust_payby (
 );
 
 
-ALTER TABLE public.cust_payby OWNER TO freeside;
+ALTER TABLE cust_payby OWNER TO freeside;
 
 --
 -- Name: cust_payby_custpaybynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3912,7 +3951,7 @@ CREATE SEQUENCE cust_payby_custpaybynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_payby_custpaybynum_seq OWNER TO freeside;
+ALTER TABLE cust_payby_custpaybynum_seq OWNER TO freeside;
 
 --
 -- Name: cust_payby_custpaybynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -3956,7 +3995,6 @@ CREATE TABLE cust_pkg (
     change_custnum integer,
     main_pkgnum integer,
     pkglinknum integer,
-    manual_flag character(1),
     no_auto character(1),
     quantity integer,
     agent_pkgid character varying(80),
@@ -3968,7 +4006,7 @@ CREATE TABLE cust_pkg (
 );
 
 
-ALTER TABLE public.cust_pkg OWNER TO freeside;
+ALTER TABLE cust_pkg OWNER TO freeside;
 
 --
 -- Name: cust_pkg_detail; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -3983,7 +4021,7 @@ CREATE TABLE cust_pkg_detail (
 );
 
 
-ALTER TABLE public.cust_pkg_detail OWNER TO freeside;
+ALTER TABLE cust_pkg_detail OWNER TO freeside;
 
 --
 -- Name: cust_pkg_detail_pkgdetailnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -3997,7 +4035,7 @@ CREATE SEQUENCE cust_pkg_detail_pkgdetailnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pkg_detail_pkgdetailnum_seq OWNER TO freeside;
+ALTER TABLE cust_pkg_detail_pkgdetailnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_pkg_detail_pkgdetailnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4018,11 +4056,12 @@ CREATE TABLE cust_pkg_discount (
     end_date integer,
     otaker character varying(32),
     usernum integer,
-    disabled character(1)
+    disabled character(1),
+    setuprecur character(5)
 );
 
 
-ALTER TABLE public.cust_pkg_discount OWNER TO freeside;
+ALTER TABLE cust_pkg_discount OWNER TO freeside;
 
 --
 -- Name: cust_pkg_discount_pkgdiscountnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4036,7 +4075,7 @@ CREATE SEQUENCE cust_pkg_discount_pkgdiscountnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pkg_discount_pkgdiscountnum_seq OWNER TO freeside;
+ALTER TABLE cust_pkg_discount_pkgdiscountnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_pkg_discount_pkgdiscountnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4057,7 +4096,7 @@ CREATE TABLE cust_pkg_option (
 );
 
 
-ALTER TABLE public.cust_pkg_option OWNER TO freeside;
+ALTER TABLE cust_pkg_option OWNER TO freeside;
 
 --
 -- Name: cust_pkg_option_optionnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4071,7 +4110,7 @@ CREATE SEQUENCE cust_pkg_option_optionnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pkg_option_optionnum_seq OWNER TO freeside;
+ALTER TABLE cust_pkg_option_optionnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_pkg_option_optionnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4092,7 +4131,7 @@ CREATE SEQUENCE cust_pkg_pkgnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pkg_pkgnum_seq OWNER TO freeside;
+ALTER TABLE cust_pkg_pkgnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_pkg_pkgnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4116,7 +4155,7 @@ CREATE TABLE cust_pkg_reason (
 );
 
 
-ALTER TABLE public.cust_pkg_reason OWNER TO freeside;
+ALTER TABLE cust_pkg_reason OWNER TO freeside;
 
 --
 -- Name: cust_pkg_reason_fee; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -4131,7 +4170,7 @@ CREATE TABLE cust_pkg_reason_fee (
 );
 
 
-ALTER TABLE public.cust_pkg_reason_fee OWNER TO freeside;
+ALTER TABLE cust_pkg_reason_fee OWNER TO freeside;
 
 --
 -- Name: cust_pkg_reason_fee_pkgreasonfeenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4145,7 +4184,7 @@ CREATE SEQUENCE cust_pkg_reason_fee_pkgreasonfeenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pkg_reason_fee_pkgreasonfeenum_seq OWNER TO freeside;
+ALTER TABLE cust_pkg_reason_fee_pkgreasonfeenum_seq OWNER TO freeside;
 
 --
 -- Name: cust_pkg_reason_fee_pkgreasonfeenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4166,7 +4205,7 @@ CREATE SEQUENCE cust_pkg_reason_num_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pkg_reason_num_seq OWNER TO freeside;
+ALTER TABLE cust_pkg_reason_num_seq OWNER TO freeside;
 
 --
 -- Name: cust_pkg_reason_num_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4187,7 +4226,7 @@ CREATE TABLE cust_pkg_usage (
 );
 
 
-ALTER TABLE public.cust_pkg_usage OWNER TO freeside;
+ALTER TABLE cust_pkg_usage OWNER TO freeside;
 
 --
 -- Name: cust_pkg_usage_pkgusagenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4201,7 +4240,7 @@ CREATE SEQUENCE cust_pkg_usage_pkgusagenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pkg_usage_pkgusagenum_seq OWNER TO freeside;
+ALTER TABLE cust_pkg_usage_pkgusagenum_seq OWNER TO freeside;
 
 --
 -- Name: cust_pkg_usage_pkgusagenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4222,7 +4261,7 @@ CREATE TABLE cust_pkg_usageprice (
 );
 
 
-ALTER TABLE public.cust_pkg_usageprice OWNER TO freeside;
+ALTER TABLE cust_pkg_usageprice OWNER TO freeside;
 
 --
 -- Name: cust_pkg_usageprice_usagepricenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4236,7 +4275,7 @@ CREATE SEQUENCE cust_pkg_usageprice_usagepricenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_pkg_usageprice_usagepricenum_seq OWNER TO freeside;
+ALTER TABLE cust_pkg_usageprice_usagepricenum_seq OWNER TO freeside;
 
 --
 -- Name: cust_pkg_usageprice_usagepricenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4271,7 +4310,7 @@ CREATE TABLE cust_recon (
 );
 
 
-ALTER TABLE public.cust_recon OWNER TO freeside;
+ALTER TABLE cust_recon OWNER TO freeside;
 
 --
 -- Name: cust_recon_reconid_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4285,7 +4324,7 @@ CREATE SEQUENCE cust_recon_reconid_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_recon_reconid_seq OWNER TO freeside;
+ALTER TABLE cust_recon_reconid_seq OWNER TO freeside;
 
 --
 -- Name: cust_recon_reconid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4316,11 +4355,12 @@ CREATE TABLE cust_refund (
     auth character varying(16),
     order_number character varying(80),
     currency character(3),
-    reasonnum integer
+    reasonnum integer,
+    source_paynum integer
 );
 
 
-ALTER TABLE public.cust_refund OWNER TO freeside;
+ALTER TABLE cust_refund OWNER TO freeside;
 
 --
 -- Name: cust_refund_refundnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4334,7 +4374,7 @@ CREATE SEQUENCE cust_refund_refundnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_refund_refundnum_seq OWNER TO freeside;
+ALTER TABLE cust_refund_refundnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_refund_refundnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4354,7 +4394,7 @@ CREATE TABLE cust_statement (
 );
 
 
-ALTER TABLE public.cust_statement OWNER TO freeside;
+ALTER TABLE cust_statement OWNER TO freeside;
 
 --
 -- Name: cust_statement_statementnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4368,7 +4408,7 @@ CREATE SEQUENCE cust_statement_statementnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_statement_statementnum_seq OWNER TO freeside;
+ALTER TABLE cust_statement_statementnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_statement_statementnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4390,7 +4430,7 @@ CREATE TABLE cust_svc (
 );
 
 
-ALTER TABLE public.cust_svc OWNER TO freeside;
+ALTER TABLE cust_svc OWNER TO freeside;
 
 --
 -- Name: cust_svc_option; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -4404,7 +4444,7 @@ CREATE TABLE cust_svc_option (
 );
 
 
-ALTER TABLE public.cust_svc_option OWNER TO freeside;
+ALTER TABLE cust_svc_option OWNER TO freeside;
 
 --
 -- Name: cust_svc_option_optionnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4418,7 +4458,7 @@ CREATE SEQUENCE cust_svc_option_optionnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_svc_option_optionnum_seq OWNER TO freeside;
+ALTER TABLE cust_svc_option_optionnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_svc_option_optionnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4439,7 +4479,7 @@ CREATE SEQUENCE cust_svc_svcnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_svc_svcnum_seq OWNER TO freeside;
+ALTER TABLE cust_svc_svcnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_svc_svcnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4459,7 +4499,7 @@ CREATE TABLE cust_tag (
 );
 
 
-ALTER TABLE public.cust_tag OWNER TO freeside;
+ALTER TABLE cust_tag OWNER TO freeside;
 
 --
 -- Name: cust_tag_custtagnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4473,7 +4513,7 @@ CREATE SEQUENCE cust_tag_custtagnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_tag_custtagnum_seq OWNER TO freeside;
+ALTER TABLE cust_tag_custtagnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_tag_custtagnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4497,7 +4537,7 @@ CREATE TABLE cust_tax_adjustment (
 );
 
 
-ALTER TABLE public.cust_tax_adjustment OWNER TO freeside;
+ALTER TABLE cust_tax_adjustment OWNER TO freeside;
 
 --
 -- Name: cust_tax_adjustment_adjustmentnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4511,7 +4551,7 @@ CREATE SEQUENCE cust_tax_adjustment_adjustmentnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_tax_adjustment_adjustmentnum_seq OWNER TO freeside;
+ALTER TABLE cust_tax_adjustment_adjustmentnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_tax_adjustment_adjustmentnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4534,7 +4574,7 @@ CREATE TABLE cust_tax_exempt (
 );
 
 
-ALTER TABLE public.cust_tax_exempt OWNER TO freeside;
+ALTER TABLE cust_tax_exempt OWNER TO freeside;
 
 --
 -- Name: cust_tax_exempt_exemptnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4548,7 +4588,7 @@ CREATE SEQUENCE cust_tax_exempt_exemptnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_tax_exempt_exemptnum_seq OWNER TO freeside;
+ALTER TABLE cust_tax_exempt_exemptnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_tax_exempt_exemptnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4578,7 +4618,7 @@ CREATE TABLE cust_tax_exempt_pkg (
 );
 
 
-ALTER TABLE public.cust_tax_exempt_pkg OWNER TO freeside;
+ALTER TABLE cust_tax_exempt_pkg OWNER TO freeside;
 
 --
 -- Name: cust_tax_exempt_pkg_exemptpkgnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4592,7 +4632,7 @@ CREATE SEQUENCE cust_tax_exempt_pkg_exemptpkgnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_tax_exempt_pkg_exemptpkgnum_seq OWNER TO freeside;
+ALTER TABLE cust_tax_exempt_pkg_exemptpkgnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_tax_exempt_pkg_exemptpkgnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4622,7 +4662,7 @@ CREATE TABLE cust_tax_exempt_pkg_void (
 );
 
 
-ALTER TABLE public.cust_tax_exempt_pkg_void OWNER TO freeside;
+ALTER TABLE cust_tax_exempt_pkg_void OWNER TO freeside;
 
 --
 -- Name: cust_tax_location; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -4647,7 +4687,7 @@ CREATE TABLE cust_tax_location (
 );
 
 
-ALTER TABLE public.cust_tax_location OWNER TO freeside;
+ALTER TABLE cust_tax_location OWNER TO freeside;
 
 --
 -- Name: cust_tax_location_custlocationnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4661,7 +4701,7 @@ CREATE SEQUENCE cust_tax_location_custlocationnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.cust_tax_location_custlocationnum_seq OWNER TO freeside;
+ALTER TABLE cust_tax_location_custlocationnum_seq OWNER TO freeside;
 
 --
 -- Name: cust_tax_location_custlocationnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4682,7 +4722,7 @@ CREATE SEQUENCE customfields_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.customfields_id_seq OWNER TO freeside;
+ALTER TABLE customfields_id_seq OWNER TO freeside;
 
 --
 -- Name: customfields; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -4709,7 +4749,7 @@ CREATE TABLE customfields (
 );
 
 
-ALTER TABLE public.customfields OWNER TO freeside;
+ALTER TABLE customfields OWNER TO freeside;
 
 --
 -- Name: customfieldvalues_id_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4723,7 +4763,7 @@ CREATE SEQUENCE customfieldvalues_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.customfieldvalues_id_seq OWNER TO freeside;
+ALTER TABLE customfieldvalues_id_seq OWNER TO freeside;
 
 --
 -- Name: customfieldvalues; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -4743,7 +4783,7 @@ CREATE TABLE customfieldvalues (
 );
 
 
-ALTER TABLE public.customfieldvalues OWNER TO freeside;
+ALTER TABLE customfieldvalues OWNER TO freeside;
 
 --
 -- Name: dbix_sequence_release; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -4756,7 +4796,7 @@ CREATE TABLE dbix_sequence_release (
 );
 
 
-ALTER TABLE public.dbix_sequence_release OWNER TO freeside;
+ALTER TABLE dbix_sequence_release OWNER TO freeside;
 
 --
 -- Name: dbix_sequence_release_id_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4770,7 +4810,7 @@ CREATE SEQUENCE dbix_sequence_release_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.dbix_sequence_release_id_seq OWNER TO freeside;
+ALTER TABLE dbix_sequence_release_id_seq OWNER TO freeside;
 
 --
 -- Name: dbix_sequence_release_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4790,7 +4830,7 @@ CREATE TABLE dbix_sequence_state (
 );
 
 
-ALTER TABLE public.dbix_sequence_state OWNER TO freeside;
+ALTER TABLE dbix_sequence_state OWNER TO freeside;
 
 --
 -- Name: dbix_sequence_state_id_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4804,7 +4844,7 @@ CREATE SEQUENCE dbix_sequence_state_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.dbix_sequence_state_id_seq OWNER TO freeside;
+ALTER TABLE dbix_sequence_state_id_seq OWNER TO freeside;
 
 --
 -- Name: dbix_sequence_state_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4834,11 +4874,12 @@ CREATE TABLE deploy_zone (
     is_consumer character(1),
     is_business character(1),
     active_date integer,
-    expire_date integer
+    expire_date integer,
+    censusyear character(4)
 );
 
 
-ALTER TABLE public.deploy_zone OWNER TO freeside;
+ALTER TABLE deploy_zone OWNER TO freeside;
 
 --
 -- Name: deploy_zone_block; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -4848,11 +4889,11 @@ CREATE TABLE deploy_zone_block (
     blocknum integer NOT NULL,
     zonenum integer NOT NULL,
     censusblock character(15) NOT NULL,
-    censusyear character(4) NOT NULL
+    censusyear character(4)
 );
 
 
-ALTER TABLE public.deploy_zone_block OWNER TO freeside;
+ALTER TABLE deploy_zone_block OWNER TO freeside;
 
 --
 -- Name: deploy_zone_block_blocknum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4866,7 +4907,7 @@ CREATE SEQUENCE deploy_zone_block_blocknum_seq
     CACHE 1;
 
 
-ALTER TABLE public.deploy_zone_block_blocknum_seq OWNER TO freeside;
+ALTER TABLE deploy_zone_block_blocknum_seq OWNER TO freeside;
 
 --
 -- Name: deploy_zone_block_blocknum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4887,7 +4928,7 @@ CREATE TABLE deploy_zone_vertex (
 );
 
 
-ALTER TABLE public.deploy_zone_vertex OWNER TO freeside;
+ALTER TABLE deploy_zone_vertex OWNER TO freeside;
 
 --
 -- Name: deploy_zone_vertex_vertexnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4901,7 +4942,7 @@ CREATE SEQUENCE deploy_zone_vertex_vertexnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.deploy_zone_vertex_vertexnum_seq OWNER TO freeside;
+ALTER TABLE deploy_zone_vertex_vertexnum_seq OWNER TO freeside;
 
 --
 -- Name: deploy_zone_vertex_vertexnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4922,7 +4963,7 @@ CREATE SEQUENCE deploy_zone_zonenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.deploy_zone_zonenum_seq OWNER TO freeside;
+ALTER TABLE deploy_zone_zonenum_seq OWNER TO freeside;
 
 --
 -- Name: deploy_zone_zonenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -4946,7 +4987,7 @@ CREATE TABLE did_order (
 );
 
 
-ALTER TABLE public.did_order OWNER TO freeside;
+ALTER TABLE did_order OWNER TO freeside;
 
 --
 -- Name: did_order_item; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -4965,7 +5006,7 @@ CREATE TABLE did_order_item (
 );
 
 
-ALTER TABLE public.did_order_item OWNER TO freeside;
+ALTER TABLE did_order_item OWNER TO freeside;
 
 --
 -- Name: did_order_item_orderitemnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -4979,7 +5020,7 @@ CREATE SEQUENCE did_order_item_orderitemnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.did_order_item_orderitemnum_seq OWNER TO freeside;
+ALTER TABLE did_order_item_orderitemnum_seq OWNER TO freeside;
 
 --
 -- Name: did_order_item_orderitemnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5000,7 +5041,7 @@ CREATE SEQUENCE did_order_ordernum_seq
     CACHE 1;
 
 
-ALTER TABLE public.did_order_ordernum_seq OWNER TO freeside;
+ALTER TABLE did_order_ordernum_seq OWNER TO freeside;
 
 --
 -- Name: did_order_ordernum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5019,7 +5060,7 @@ CREATE TABLE did_vendor (
 );
 
 
-ALTER TABLE public.did_vendor OWNER TO freeside;
+ALTER TABLE did_vendor OWNER TO freeside;
 
 --
 -- Name: did_vendor_vendornum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5033,7 +5074,7 @@ CREATE SEQUENCE did_vendor_vendornum_seq
     CACHE 1;
 
 
-ALTER TABLE public.did_vendor_vendornum_seq OWNER TO freeside;
+ALTER TABLE did_vendor_vendornum_seq OWNER TO freeside;
 
 --
 -- Name: did_vendor_vendornum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5058,7 +5099,7 @@ CREATE TABLE discount (
 );
 
 
-ALTER TABLE public.discount OWNER TO freeside;
+ALTER TABLE discount OWNER TO freeside;
 
 --
 -- Name: discount_class; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -5071,7 +5112,7 @@ CREATE TABLE discount_class (
 );
 
 
-ALTER TABLE public.discount_class OWNER TO freeside;
+ALTER TABLE discount_class OWNER TO freeside;
 
 --
 -- Name: discount_class_classnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5085,7 +5126,7 @@ CREATE SEQUENCE discount_class_classnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.discount_class_classnum_seq OWNER TO freeside;
+ALTER TABLE discount_class_classnum_seq OWNER TO freeside;
 
 --
 -- Name: discount_class_classnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5106,7 +5147,7 @@ CREATE SEQUENCE discount_discountnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.discount_discountnum_seq OWNER TO freeside;
+ALTER TABLE discount_discountnum_seq OWNER TO freeside;
 
 --
 -- Name: discount_discountnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5130,7 +5171,7 @@ CREATE TABLE domain_record (
 );
 
 
-ALTER TABLE public.domain_record OWNER TO freeside;
+ALTER TABLE domain_record OWNER TO freeside;
 
 --
 -- Name: domain_record_recnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5144,7 +5185,7 @@ CREATE SEQUENCE domain_record_recnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.domain_record_recnum_seq OWNER TO freeside;
+ALTER TABLE domain_record_recnum_seq OWNER TO freeside;
 
 --
 -- Name: domain_record_recnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5164,7 +5205,7 @@ CREATE TABLE dsl_device (
 );
 
 
-ALTER TABLE public.dsl_device OWNER TO freeside;
+ALTER TABLE dsl_device OWNER TO freeside;
 
 --
 -- Name: dsl_device_devicenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5178,7 +5219,7 @@ CREATE SEQUENCE dsl_device_devicenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.dsl_device_devicenum_seq OWNER TO freeside;
+ALTER TABLE dsl_device_devicenum_seq OWNER TO freeside;
 
 --
 -- Name: dsl_device_devicenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5201,7 +5242,7 @@ CREATE TABLE dsl_note (
 );
 
 
-ALTER TABLE public.dsl_note OWNER TO freeside;
+ALTER TABLE dsl_note OWNER TO freeside;
 
 --
 -- Name: dsl_note_notenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5215,7 +5256,7 @@ CREATE SEQUENCE dsl_note_notenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.dsl_note_notenum_seq OWNER TO freeside;
+ALTER TABLE dsl_note_notenum_seq OWNER TO freeside;
 
 --
 -- Name: dsl_note_notenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5237,7 +5278,7 @@ CREATE TABLE export_batch (
 );
 
 
-ALTER TABLE public.export_batch OWNER TO freeside;
+ALTER TABLE export_batch OWNER TO freeside;
 
 --
 -- Name: export_batch_batchnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5251,7 +5292,7 @@ CREATE SEQUENCE export_batch_batchnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.export_batch_batchnum_seq OWNER TO freeside;
+ALTER TABLE export_batch_batchnum_seq OWNER TO freeside;
 
 --
 -- Name: export_batch_batchnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5274,7 +5315,7 @@ CREATE TABLE export_batch_item (
 );
 
 
-ALTER TABLE public.export_batch_item OWNER TO freeside;
+ALTER TABLE export_batch_item OWNER TO freeside;
 
 --
 -- Name: export_batch_item_itemnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5288,7 +5329,7 @@ CREATE SEQUENCE export_batch_item_itemnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.export_batch_item_itemnum_seq OWNER TO freeside;
+ALTER TABLE export_batch_item_itemnum_seq OWNER TO freeside;
 
 --
 -- Name: export_batch_item_itemnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5298,6 +5339,41 @@ ALTER SEQUENCE export_batch_item_itemnum_seq OWNED BY export_batch_item.itemnum;
 
 
 --
+-- Name: export_cust_svc; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE export_cust_svc (
+    exportcustsvcnum integer NOT NULL,
+    exportnum integer NOT NULL,
+    svcnum integer NOT NULL,
+    remoteid character varying(512) NOT NULL
+);
+
+
+ALTER TABLE export_cust_svc OWNER TO freeside;
+
+--
+-- Name: export_cust_svc_exportcustsvcnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE export_cust_svc_exportcustsvcnum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE export_cust_svc_exportcustsvcnum_seq OWNER TO freeside;
+
+--
+-- Name: export_cust_svc_exportcustsvcnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE export_cust_svc_exportcustsvcnum_seq OWNED BY export_cust_svc.exportcustsvcnum;
+
+
+--
 -- Name: export_device; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
@@ -5308,7 +5384,7 @@ CREATE TABLE export_device (
 );
 
 
-ALTER TABLE public.export_device OWNER TO freeside;
+ALTER TABLE export_device OWNER TO freeside;
 
 --
 -- Name: export_device_exportdevicenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5322,7 +5398,7 @@ CREATE SEQUENCE export_device_exportdevicenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.export_device_exportdevicenum_seq OWNER TO freeside;
+ALTER TABLE export_device_exportdevicenum_seq OWNER TO freeside;
 
 --
 -- Name: export_device_exportdevicenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5342,7 +5418,7 @@ CREATE TABLE export_nas (
 );
 
 
-ALTER TABLE public.export_nas OWNER TO freeside;
+ALTER TABLE export_nas OWNER TO freeside;
 
 --
 -- Name: export_nas_exportnasnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5356,7 +5432,7 @@ CREATE SEQUENCE export_nas_exportnasnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.export_nas_exportnasnum_seq OWNER TO freeside;
+ALTER TABLE export_nas_exportnasnum_seq OWNER TO freeside;
 
 --
 -- Name: export_nas_exportnasnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5377,7 +5453,7 @@ CREATE TABLE export_svc (
 );
 
 
-ALTER TABLE public.export_svc OWNER TO freeside;
+ALTER TABLE export_svc OWNER TO freeside;
 
 --
 -- Name: export_svc_exportsvcnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5391,7 +5467,7 @@ CREATE SEQUENCE export_svc_exportsvcnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.export_svc_exportsvcnum_seq OWNER TO freeside;
+ALTER TABLE export_svc_exportsvcnum_seq OWNER TO freeside;
 
 --
 -- Name: export_svc_exportsvcnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5411,7 +5487,7 @@ CREATE TABLE extension_device (
 );
 
 
-ALTER TABLE public.extension_device OWNER TO freeside;
+ALTER TABLE extension_device OWNER TO freeside;
 
 --
 -- Name: extension_device_extensiondevicenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5425,7 +5501,7 @@ CREATE SEQUENCE extension_device_extensiondevicenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.extension_device_extensiondevicenum_seq OWNER TO freeside;
+ALTER TABLE extension_device_extensiondevicenum_seq OWNER TO freeside;
 
 --
 -- Name: extension_device_extensiondevicenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5444,7 +5520,43 @@ CREATE TABLE fcc477map (
 );
 
 
-ALTER TABLE public.fcc477map OWNER TO freeside;
+ALTER TABLE fcc477map OWNER TO freeside;
+
+--
+-- Name: fiber_olt; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE fiber_olt (
+    oltnum integer NOT NULL,
+    oltname character varying(80) NOT NULL,
+    sitenum integer,
+    serial character varying(80) NOT NULL,
+    disabled character(1)
+);
+
+
+ALTER TABLE fiber_olt OWNER TO freeside;
+
+--
+-- Name: fiber_olt_oltnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE fiber_olt_oltnum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE fiber_olt_oltnum_seq OWNER TO freeside;
+
+--
+-- Name: fiber_olt_oltnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE fiber_olt_oltnum_seq OWNED BY fiber_olt.oltnum;
+
 
 --
 -- Name: groupmembers_id_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5458,7 +5570,7 @@ CREATE SEQUENCE groupmembers_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.groupmembers_id_seq OWNER TO freeside;
+ALTER TABLE groupmembers_id_seq OWNER TO freeside;
 
 --
 -- Name: groupmembers; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -5475,7 +5587,7 @@ CREATE TABLE groupmembers (
 );
 
 
-ALTER TABLE public.groupmembers OWNER TO freeside;
+ALTER TABLE groupmembers OWNER TO freeside;
 
 --
 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5489,7 +5601,7 @@ CREATE SEQUENCE groups_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.groups_id_seq OWNER TO freeside;
+ALTER TABLE groups_id_seq OWNER TO freeside;
 
 --
 -- Name: groups; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -5509,7 +5621,7 @@ CREATE TABLE groups (
 );
 
 
-ALTER TABLE public.groups OWNER TO freeside;
+ALTER TABLE groups OWNER TO freeside;
 
 --
 -- Name: h_access_group; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -5526,7 +5638,7 @@ CREATE TABLE h_access_group (
 );
 
 
-ALTER TABLE public.h_access_group OWNER TO freeside;
+ALTER TABLE h_access_group OWNER TO freeside;
 
 --
 -- Name: h_access_group_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5540,7 +5652,7 @@ CREATE SEQUENCE h_access_group_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_access_group_historynum_seq OWNER TO freeside;
+ALTER TABLE h_access_group_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_access_group_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5565,7 +5677,7 @@ CREATE TABLE h_access_groupagent (
 );
 
 
-ALTER TABLE public.h_access_groupagent OWNER TO freeside;
+ALTER TABLE h_access_groupagent OWNER TO freeside;
 
 --
 -- Name: h_access_groupagent_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5579,7 +5691,7 @@ CREATE SEQUENCE h_access_groupagent_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_access_groupagent_historynum_seq OWNER TO freeside;
+ALTER TABLE h_access_groupagent_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_access_groupagent_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5605,7 +5717,7 @@ CREATE TABLE h_access_right (
 );
 
 
-ALTER TABLE public.h_access_right OWNER TO freeside;
+ALTER TABLE h_access_right OWNER TO freeside;
 
 --
 -- Name: h_access_right_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5619,7 +5731,7 @@ CREATE SEQUENCE h_access_right_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_access_right_historynum_seq OWNER TO freeside;
+ALTER TABLE h_access_right_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_access_right_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5650,7 +5762,7 @@ CREATE TABLE h_access_user (
 );
 
 
-ALTER TABLE public.h_access_user OWNER TO freeside;
+ALTER TABLE h_access_user OWNER TO freeside;
 
 --
 -- Name: h_access_user_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5664,7 +5776,7 @@ CREATE SEQUENCE h_access_user_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_access_user_historynum_seq OWNER TO freeside;
+ALTER TABLE h_access_user_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_access_user_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5674,29 +5786,32 @@ ALTER SEQUENCE h_access_user_historynum_seq OWNED BY h_access_user.historynum;
 
 
 --
--- Name: h_access_user_log; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+-- Name: h_access_user_page_pref; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
-CREATE TABLE h_access_user_log (
+CREATE TABLE h_access_user_page_pref (
     historynum integer NOT NULL,
     history_date integer,
     history_user character varying(80),
+    history_usernum integer,
     history_action character varying(80) NOT NULL,
-    lognum integer,
+    prefnum integer,
     usernum integer NOT NULL,
-    path character varying(160) NOT NULL,
+    path text NOT NULL,
+    tablenum integer,
     _date integer,
-    history_usernum integer
+    prefname character varying(80) NOT NULL,
+    prefvalue text NOT NULL
 );
 
 
-ALTER TABLE public.h_access_user_log OWNER TO freeside;
+ALTER TABLE h_access_user_page_pref OWNER TO freeside;
 
 --
--- Name: h_access_user_log_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+-- Name: h_access_user_page_pref_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
 --
 
-CREATE SEQUENCE h_access_user_log_historynum_seq
+CREATE SEQUENCE h_access_user_page_pref_historynum_seq
     START WITH 1
     INCREMENT BY 1
     NO MINVALUE
@@ -5704,13 +5819,13 @@ CREATE SEQUENCE h_access_user_log_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_access_user_log_historynum_seq OWNER TO freeside;
+ALTER TABLE h_access_user_page_pref_historynum_seq OWNER TO freeside;
 
 --
--- Name: h_access_user_log_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+-- Name: h_access_user_page_pref_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
 --
 
-ALTER SEQUENCE h_access_user_log_historynum_seq OWNED BY h_access_user_log.historynum;
+ALTER SEQUENCE h_access_user_page_pref_historynum_seq OWNED BY h_access_user_page_pref.historynum;
 
 
 --
@@ -5731,7 +5846,7 @@ CREATE TABLE h_access_user_pref (
 );
 
 
-ALTER TABLE public.h_access_user_pref OWNER TO freeside;
+ALTER TABLE h_access_user_pref OWNER TO freeside;
 
 --
 -- Name: h_access_user_pref_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5745,7 +5860,7 @@ CREATE SEQUENCE h_access_user_pref_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_access_user_pref_historynum_seq OWNER TO freeside;
+ALTER TABLE h_access_user_pref_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_access_user_pref_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5770,7 +5885,7 @@ CREATE TABLE h_access_usergroup (
 );
 
 
-ALTER TABLE public.h_access_usergroup OWNER TO freeside;
+ALTER TABLE h_access_usergroup OWNER TO freeside;
 
 --
 -- Name: h_access_usergroup_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5784,7 +5899,7 @@ CREATE SEQUENCE h_access_usergroup_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_access_usergroup_historynum_seq OWNER TO freeside;
+ALTER TABLE h_access_usergroup_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_access_usergroup_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5812,7 +5927,7 @@ CREATE TABLE h_acct_rt_transaction (
 );
 
 
-ALTER TABLE public.h_acct_rt_transaction OWNER TO freeside;
+ALTER TABLE h_acct_rt_transaction OWNER TO freeside;
 
 --
 -- Name: h_acct_rt_transaction_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5826,7 +5941,7 @@ CREATE SEQUENCE h_acct_rt_transaction_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_acct_rt_transaction_historynum_seq OWNER TO freeside;
+ALTER TABLE h_acct_rt_transaction_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_acct_rt_transaction_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5860,7 +5975,7 @@ CREATE TABLE h_acct_snarf (
 );
 
 
-ALTER TABLE public.h_acct_snarf OWNER TO freeside;
+ALTER TABLE h_acct_snarf OWNER TO freeside;
 
 --
 -- Name: h_acct_snarf_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5874,7 +5989,7 @@ CREATE SEQUENCE h_acct_snarf_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_acct_snarf_historynum_seq OWNER TO freeside;
+ALTER TABLE h_acct_snarf_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_acct_snarf_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5902,7 +6017,7 @@ CREATE TABLE h_addr_block (
 );
 
 
-ALTER TABLE public.h_addr_block OWNER TO freeside;
+ALTER TABLE h_addr_block OWNER TO freeside;
 
 --
 -- Name: h_addr_block_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5916,7 +6031,7 @@ CREATE SEQUENCE h_addr_block_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_addr_block_historynum_seq OWNER TO freeside;
+ALTER TABLE h_addr_block_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_addr_block_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5942,7 +6057,7 @@ CREATE TABLE h_addr_range (
 );
 
 
-ALTER TABLE public.h_addr_range OWNER TO freeside;
+ALTER TABLE h_addr_range OWNER TO freeside;
 
 --
 -- Name: h_addr_range_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -5956,7 +6071,7 @@ CREATE SEQUENCE h_addr_range_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_addr_range_historynum_seq OWNER TO freeside;
+ALTER TABLE h_addr_range_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_addr_range_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -5989,7 +6104,7 @@ CREATE TABLE h_agent (
 );
 
 
-ALTER TABLE public.h_agent OWNER TO freeside;
+ALTER TABLE h_agent OWNER TO freeside;
 
 --
 -- Name: h_agent_currency; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -6007,7 +6122,7 @@ CREATE TABLE h_agent_currency (
 );
 
 
-ALTER TABLE public.h_agent_currency OWNER TO freeside;
+ALTER TABLE h_agent_currency OWNER TO freeside;
 
 --
 -- Name: h_agent_currency_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6021,7 +6136,7 @@ CREATE SEQUENCE h_agent_currency_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_agent_currency_historynum_seq OWNER TO freeside;
+ALTER TABLE h_agent_currency_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_agent_currency_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6042,7 +6157,7 @@ CREATE SEQUENCE h_agent_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_agent_historynum_seq OWNER TO freeside;
+ALTER TABLE h_agent_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_agent_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6069,7 +6184,7 @@ CREATE TABLE h_agent_payment_gateway (
 );
 
 
-ALTER TABLE public.h_agent_payment_gateway OWNER TO freeside;
+ALTER TABLE h_agent_payment_gateway OWNER TO freeside;
 
 --
 -- Name: h_agent_payment_gateway_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6083,7 +6198,7 @@ CREATE SEQUENCE h_agent_payment_gateway_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_agent_payment_gateway_historynum_seq OWNER TO freeside;
+ALTER TABLE h_agent_payment_gateway_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_agent_payment_gateway_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6109,7 +6224,7 @@ CREATE TABLE h_agent_pkg_class (
 );
 
 
-ALTER TABLE public.h_agent_pkg_class OWNER TO freeside;
+ALTER TABLE h_agent_pkg_class OWNER TO freeside;
 
 --
 -- Name: h_agent_pkg_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6123,7 +6238,7 @@ CREATE SEQUENCE h_agent_pkg_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_agent_pkg_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_agent_pkg_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_agent_pkg_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6148,7 +6263,7 @@ CREATE TABLE h_agent_type (
 );
 
 
-ALTER TABLE public.h_agent_type OWNER TO freeside;
+ALTER TABLE h_agent_type OWNER TO freeside;
 
 --
 -- Name: h_agent_type_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6162,7 +6277,7 @@ CREATE SEQUENCE h_agent_type_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_agent_type_historynum_seq OWNER TO freeside;
+ALTER TABLE h_agent_type_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_agent_type_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6188,7 +6303,7 @@ CREATE TABLE h_alarm_station (
 );
 
 
-ALTER TABLE public.h_alarm_station OWNER TO freeside;
+ALTER TABLE h_alarm_station OWNER TO freeside;
 
 --
 -- Name: h_alarm_station_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6202,7 +6317,7 @@ CREATE SEQUENCE h_alarm_station_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_alarm_station_historynum_seq OWNER TO freeside;
+ALTER TABLE h_alarm_station_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_alarm_station_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6228,7 +6343,7 @@ CREATE TABLE h_alarm_system (
 );
 
 
-ALTER TABLE public.h_alarm_system OWNER TO freeside;
+ALTER TABLE h_alarm_system OWNER TO freeside;
 
 --
 -- Name: h_alarm_system_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6242,7 +6357,7 @@ CREATE SEQUENCE h_alarm_system_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_alarm_system_historynum_seq OWNER TO freeside;
+ALTER TABLE h_alarm_system_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_alarm_system_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6269,7 +6384,7 @@ CREATE TABLE h_alarm_type (
 );
 
 
-ALTER TABLE public.h_alarm_type OWNER TO freeside;
+ALTER TABLE h_alarm_type OWNER TO freeside;
 
 --
 -- Name: h_alarm_type_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6283,7 +6398,7 @@ CREATE SEQUENCE h_alarm_type_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_alarm_type_historynum_seq OWNER TO freeside;
+ALTER TABLE h_alarm_type_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_alarm_type_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6310,7 +6425,7 @@ CREATE TABLE h_areacode (
 );
 
 
-ALTER TABLE public.h_areacode OWNER TO freeside;
+ALTER TABLE h_areacode OWNER TO freeside;
 
 --
 -- Name: h_areacode_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6324,7 +6439,7 @@ CREATE SEQUENCE h_areacode_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_areacode_historynum_seq OWNER TO freeside;
+ALTER TABLE h_areacode_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_areacode_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6356,7 +6471,7 @@ CREATE TABLE h_banned_pay (
 );
 
 
-ALTER TABLE public.h_banned_pay OWNER TO freeside;
+ALTER TABLE h_banned_pay OWNER TO freeside;
 
 --
 -- Name: h_banned_pay_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6370,7 +6485,7 @@ CREATE SEQUENCE h_banned_pay_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_banned_pay_historynum_seq OWNER TO freeside;
+ALTER TABLE h_banned_pay_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_banned_pay_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6396,7 +6511,7 @@ CREATE TABLE h_bill_batch (
 );
 
 
-ALTER TABLE public.h_bill_batch OWNER TO freeside;
+ALTER TABLE h_bill_batch OWNER TO freeside;
 
 --
 -- Name: h_bill_batch_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6410,7 +6525,7 @@ CREATE SEQUENCE h_bill_batch_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_bill_batch_historynum_seq OWNER TO freeside;
+ALTER TABLE h_bill_batch_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_bill_batch_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6435,7 +6550,7 @@ CREATE TABLE h_cable_model (
 );
 
 
-ALTER TABLE public.h_cable_model OWNER TO freeside;
+ALTER TABLE h_cable_model OWNER TO freeside;
 
 --
 -- Name: h_cable_model_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6449,7 +6564,7 @@ CREATE SEQUENCE h_cable_model_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cable_model_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cable_model_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cable_model_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6474,7 +6589,7 @@ CREATE TABLE h_cable_provider (
 );
 
 
-ALTER TABLE public.h_cable_provider OWNER TO freeside;
+ALTER TABLE h_cable_provider OWNER TO freeside;
 
 --
 -- Name: h_cable_provider_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6488,7 +6603,7 @@ CREATE SEQUENCE h_cable_provider_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cable_provider_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cable_provider_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cable_provider_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6566,11 +6681,12 @@ CREATE TABLE h_cdr (
     cdrbatch character varying(255),
     cdrbatchnum integer,
     history_usernum integer,
-    detailnum bigint
+    detailnum bigint,
+    rated_cost numeric(10,4)
 );
 
 
-ALTER TABLE public.h_cdr OWNER TO freeside;
+ALTER TABLE h_cdr OWNER TO freeside;
 
 --
 -- Name: h_cdr_batch; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -6588,7 +6704,7 @@ CREATE TABLE h_cdr_batch (
 );
 
 
-ALTER TABLE public.h_cdr_batch OWNER TO freeside;
+ALTER TABLE h_cdr_batch OWNER TO freeside;
 
 --
 -- Name: h_cdr_batch_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6602,7 +6718,7 @@ CREATE SEQUENCE h_cdr_batch_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cdr_batch_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cdr_batch_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cdr_batch_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6626,7 +6742,7 @@ CREATE TABLE h_cdr_calltype (
 );
 
 
-ALTER TABLE public.h_cdr_calltype OWNER TO freeside;
+ALTER TABLE h_cdr_calltype OWNER TO freeside;
 
 --
 -- Name: h_cdr_calltype_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6640,7 +6756,7 @@ CREATE SEQUENCE h_cdr_calltype_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cdr_calltype_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cdr_calltype_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cdr_calltype_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6665,7 +6781,7 @@ CREATE TABLE h_cdr_carrier (
 );
 
 
-ALTER TABLE public.h_cdr_carrier OWNER TO freeside;
+ALTER TABLE h_cdr_carrier OWNER TO freeside;
 
 --
 -- Name: h_cdr_carrier_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6679,7 +6795,7 @@ CREATE SEQUENCE h_cdr_carrier_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cdr_carrier_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cdr_carrier_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cdr_carrier_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6705,7 +6821,7 @@ CREATE TABLE h_cdr_cust_pkg_usage (
 );
 
 
-ALTER TABLE public.h_cdr_cust_pkg_usage OWNER TO freeside;
+ALTER TABLE h_cdr_cust_pkg_usage OWNER TO freeside;
 
 --
 -- Name: h_cdr_cust_pkg_usage_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6719,7 +6835,7 @@ CREATE SEQUENCE h_cdr_cust_pkg_usage_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cdr_cust_pkg_usage_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cdr_cust_pkg_usage_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cdr_cust_pkg_usage_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6740,7 +6856,7 @@ CREATE SEQUENCE h_cdr_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cdr_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cdr_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cdr_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6770,7 +6886,7 @@ CREATE TABLE h_cdr_termination (
 );
 
 
-ALTER TABLE public.h_cdr_termination OWNER TO freeside;
+ALTER TABLE h_cdr_termination OWNER TO freeside;
 
 --
 -- Name: h_cdr_termination_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6784,7 +6900,7 @@ CREATE SEQUENCE h_cdr_termination_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cdr_termination_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cdr_termination_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cdr_termination_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6808,7 +6924,7 @@ CREATE TABLE h_cdr_type (
 );
 
 
-ALTER TABLE public.h_cdr_type OWNER TO freeside;
+ALTER TABLE h_cdr_type OWNER TO freeside;
 
 --
 -- Name: h_cdr_type_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6822,7 +6938,7 @@ CREATE SEQUENCE h_cdr_type_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cdr_type_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cdr_type_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cdr_type_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6849,7 +6965,7 @@ CREATE TABLE h_cgp_rule (
 );
 
 
-ALTER TABLE public.h_cgp_rule OWNER TO freeside;
+ALTER TABLE h_cgp_rule OWNER TO freeside;
 
 --
 -- Name: h_cgp_rule_action; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -6868,7 +6984,7 @@ CREATE TABLE h_cgp_rule_action (
 );
 
 
-ALTER TABLE public.h_cgp_rule_action OWNER TO freeside;
+ALTER TABLE h_cgp_rule_action OWNER TO freeside;
 
 --
 -- Name: h_cgp_rule_action_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6882,7 +6998,7 @@ CREATE SEQUENCE h_cgp_rule_action_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cgp_rule_action_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cgp_rule_action_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cgp_rule_action_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6909,7 +7025,7 @@ CREATE TABLE h_cgp_rule_condition (
 );
 
 
-ALTER TABLE public.h_cgp_rule_condition OWNER TO freeside;
+ALTER TABLE h_cgp_rule_condition OWNER TO freeside;
 
 --
 -- Name: h_cgp_rule_condition_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6923,7 +7039,7 @@ CREATE SEQUENCE h_cgp_rule_condition_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cgp_rule_condition_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cgp_rule_condition_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cgp_rule_condition_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6944,7 +7060,7 @@ CREATE SEQUENCE h_cgp_rule_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cgp_rule_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cgp_rule_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cgp_rule_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -6969,7 +7085,7 @@ CREATE TABLE h_circuit_provider (
 );
 
 
-ALTER TABLE public.h_circuit_provider OWNER TO freeside;
+ALTER TABLE h_circuit_provider OWNER TO freeside;
 
 --
 -- Name: h_circuit_provider_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -6983,7 +7099,7 @@ CREATE SEQUENCE h_circuit_provider_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_circuit_provider_historynum_seq OWNER TO freeside;
+ALTER TABLE h_circuit_provider_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_circuit_provider_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7008,7 +7124,7 @@ CREATE TABLE h_circuit_termination (
 );
 
 
-ALTER TABLE public.h_circuit_termination OWNER TO freeside;
+ALTER TABLE h_circuit_termination OWNER TO freeside;
 
 --
 -- Name: h_circuit_termination_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7022,7 +7138,7 @@ CREATE SEQUENCE h_circuit_termination_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_circuit_termination_historynum_seq OWNER TO freeside;
+ALTER TABLE h_circuit_termination_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_circuit_termination_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7047,7 +7163,7 @@ CREATE TABLE h_circuit_type (
 );
 
 
-ALTER TABLE public.h_circuit_type OWNER TO freeside;
+ALTER TABLE h_circuit_type OWNER TO freeside;
 
 --
 -- Name: h_circuit_type_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7061,7 +7177,7 @@ CREATE SEQUENCE h_circuit_type_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_circuit_type_historynum_seq OWNER TO freeside;
+ALTER TABLE h_circuit_type_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_circuit_type_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7088,7 +7204,7 @@ CREATE TABLE h_conf (
 );
 
 
-ALTER TABLE public.h_conf OWNER TO freeside;
+ALTER TABLE h_conf OWNER TO freeside;
 
 --
 -- Name: h_conf_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7102,7 +7218,7 @@ CREATE SEQUENCE h_conf_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_conf_historynum_seq OWNER TO freeside;
+ALTER TABLE h_conf_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_conf_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7128,7 +7244,7 @@ CREATE TABLE h_conferencing_quality (
 );
 
 
-ALTER TABLE public.h_conferencing_quality OWNER TO freeside;
+ALTER TABLE h_conferencing_quality OWNER TO freeside;
 
 --
 -- Name: h_conferencing_quality_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7142,7 +7258,7 @@ CREATE SEQUENCE h_conferencing_quality_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_conferencing_quality_historynum_seq OWNER TO freeside;
+ALTER TABLE h_conferencing_quality_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_conferencing_quality_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7168,7 +7284,7 @@ CREATE TABLE h_conferencing_type (
 );
 
 
-ALTER TABLE public.h_conferencing_type OWNER TO freeside;
+ALTER TABLE h_conferencing_type OWNER TO freeside;
 
 --
 -- Name: h_conferencing_type_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7182,7 +7298,7 @@ CREATE SEQUENCE h_conferencing_type_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_conferencing_type_historynum_seq OWNER TO freeside;
+ALTER TABLE h_conferencing_type_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_conferencing_type_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7213,11 +7329,12 @@ CREATE TABLE h_contact (
     _password character varying(80),
     _password_encoding character varying(80),
     disabled character(1),
-    history_usernum integer
+    history_usernum integer,
+    invoice_dest character(1)
 );
 
 
-ALTER TABLE public.h_contact OWNER TO freeside;
+ALTER TABLE h_contact OWNER TO freeside;
 
 --
 -- Name: h_contact_class; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -7235,7 +7352,7 @@ CREATE TABLE h_contact_class (
 );
 
 
-ALTER TABLE public.h_contact_class OWNER TO freeside;
+ALTER TABLE h_contact_class OWNER TO freeside;
 
 --
 -- Name: h_contact_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7249,7 +7366,7 @@ CREATE SEQUENCE h_contact_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_contact_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_contact_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_contact_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7274,7 +7391,7 @@ CREATE TABLE h_contact_email (
 );
 
 
-ALTER TABLE public.h_contact_email OWNER TO freeside;
+ALTER TABLE h_contact_email OWNER TO freeside;
 
 --
 -- Name: h_contact_email_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7288,7 +7405,7 @@ CREATE SEQUENCE h_contact_email_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_contact_email_historynum_seq OWNER TO freeside;
+ALTER TABLE h_contact_email_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_contact_email_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7309,7 +7426,7 @@ CREATE SEQUENCE h_contact_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_contact_historynum_seq OWNER TO freeside;
+ALTER TABLE h_contact_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_contact_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7337,7 +7454,7 @@ CREATE TABLE h_contact_phone (
 );
 
 
-ALTER TABLE public.h_contact_phone OWNER TO freeside;
+ALTER TABLE h_contact_phone OWNER TO freeside;
 
 --
 -- Name: h_contact_phone_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7351,7 +7468,7 @@ CREATE SEQUENCE h_contact_phone_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_contact_phone_historynum_seq OWNER TO freeside;
+ALTER TABLE h_contact_phone_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_contact_phone_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7377,7 +7494,7 @@ CREATE TABLE h_currency_exchange (
 );
 
 
-ALTER TABLE public.h_currency_exchange OWNER TO freeside;
+ALTER TABLE h_currency_exchange OWNER TO freeside;
 
 --
 -- Name: h_currency_exchange_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7391,7 +7508,7 @@ CREATE SEQUENCE h_currency_exchange_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_currency_exchange_historynum_seq OWNER TO freeside;
+ALTER TABLE h_currency_exchange_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_currency_exchange_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7423,7 +7540,7 @@ CREATE TABLE h_cust_attachment (
 );
 
 
-ALTER TABLE public.h_cust_attachment OWNER TO freeside;
+ALTER TABLE h_cust_attachment OWNER TO freeside;
 
 --
 -- Name: h_cust_attachment_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7437,7 +7554,7 @@ CREATE SEQUENCE h_cust_attachment_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_attachment_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_attachment_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_attachment_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7473,7 +7590,7 @@ CREATE TABLE h_cust_bill (
 );
 
 
-ALTER TABLE public.h_cust_bill OWNER TO freeside;
+ALTER TABLE h_cust_bill OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_batch; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -7491,7 +7608,7 @@ CREATE TABLE h_cust_bill_batch (
 );
 
 
-ALTER TABLE public.h_cust_bill_batch OWNER TO freeside;
+ALTER TABLE h_cust_bill_batch OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_batch_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7505,7 +7622,7 @@ CREATE SEQUENCE h_cust_bill_batch_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_batch_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_batch_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_batch_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7531,7 +7648,7 @@ CREATE TABLE h_cust_bill_batch_option (
 );
 
 
-ALTER TABLE public.h_cust_bill_batch_option OWNER TO freeside;
+ALTER TABLE h_cust_bill_batch_option OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_batch_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7545,7 +7662,7 @@ CREATE SEQUENCE h_cust_bill_batch_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_batch_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_batch_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_batch_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7572,7 +7689,7 @@ CREATE TABLE h_cust_bill_event (
 );
 
 
-ALTER TABLE public.h_cust_bill_event OWNER TO freeside;
+ALTER TABLE h_cust_bill_event OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_event_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7586,7 +7703,7 @@ CREATE SEQUENCE h_cust_bill_event_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_event_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_event_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_event_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7607,7 +7724,7 @@ CREATE SEQUENCE h_cust_bill_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7635,7 +7752,7 @@ CREATE TABLE h_cust_bill_pay (
 );
 
 
-ALTER TABLE public.h_cust_bill_pay OWNER TO freeside;
+ALTER TABLE h_cust_bill_pay OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pay_batch; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -7655,7 +7772,7 @@ CREATE TABLE h_cust_bill_pay_batch (
 );
 
 
-ALTER TABLE public.h_cust_bill_pay_batch OWNER TO freeside;
+ALTER TABLE h_cust_bill_pay_batch OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pay_batch_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7669,7 +7786,7 @@ CREATE SEQUENCE h_cust_bill_pay_batch_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pay_batch_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pay_batch_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pay_batch_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7690,7 +7807,7 @@ CREATE SEQUENCE h_cust_bill_pay_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pay_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pay_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pay_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7721,7 +7838,7 @@ CREATE TABLE h_cust_bill_pay_pkg (
 );
 
 
-ALTER TABLE public.h_cust_bill_pay_pkg OWNER TO freeside;
+ALTER TABLE h_cust_bill_pay_pkg OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pay_pkg_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7735,7 +7852,7 @@ CREATE SEQUENCE h_cust_bill_pay_pkg_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pay_pkg_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pay_pkg_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pay_pkg_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7778,7 +7895,7 @@ CREATE TABLE h_cust_bill_pkg (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_detail; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -7806,7 +7923,7 @@ CREATE TABLE h_cust_bill_pkg_detail (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_detail OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_detail OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_detail_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7820,7 +7937,7 @@ CREATE SEQUENCE h_cust_bill_pkg_detail_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_detail_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_detail_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_detail_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7855,7 +7972,7 @@ CREATE TABLE h_cust_bill_pkg_detail_void (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_detail_void OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_detail_void OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_detail_void_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7869,7 +7986,7 @@ CREATE SEQUENCE h_cust_bill_pkg_detail_void_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_detail_void_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_detail_void_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_detail_void_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7896,7 +8013,7 @@ CREATE TABLE h_cust_bill_pkg_discount (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_discount OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_discount OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_discount_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7910,7 +8027,7 @@ CREATE SEQUENCE h_cust_bill_pkg_discount_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_discount_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_discount_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_discount_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7937,7 +8054,7 @@ CREATE TABLE h_cust_bill_pkg_discount_void (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_discount_void OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_discount_void OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_discount_void_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7951,7 +8068,7 @@ CREATE SEQUENCE h_cust_bill_pkg_discount_void_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_discount_void_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_discount_void_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_discount_void_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -7979,7 +8096,7 @@ CREATE TABLE h_cust_bill_pkg_display (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_display OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_display OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_display_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -7993,7 +8110,7 @@ CREATE SEQUENCE h_cust_bill_pkg_display_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_display_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_display_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_display_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8021,7 +8138,7 @@ CREATE TABLE h_cust_bill_pkg_display_void (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_display_void OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_display_void OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_display_void_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8035,7 +8152,7 @@ CREATE SEQUENCE h_cust_bill_pkg_display_void_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_display_void_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_display_void_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_display_void_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8062,7 +8179,7 @@ CREATE TABLE h_cust_bill_pkg_fee (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_fee OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_fee OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_fee_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8076,7 +8193,7 @@ CREATE SEQUENCE h_cust_bill_pkg_fee_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_fee_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_fee_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_fee_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8103,7 +8220,7 @@ CREATE TABLE h_cust_bill_pkg_fee_void (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_fee_void OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_fee_void OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_fee_void_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8117,7 +8234,7 @@ CREATE SEQUENCE h_cust_bill_pkg_fee_void_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_fee_void_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_fee_void_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_fee_void_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8138,7 +8255,7 @@ CREATE SEQUENCE h_cust_bill_pkg_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8169,7 +8286,7 @@ CREATE TABLE h_cust_bill_pkg_tax_location (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_tax_location OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_tax_location OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_tax_location_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8183,7 +8300,7 @@ CREATE SEQUENCE h_cust_bill_pkg_tax_location_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_tax_location_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_tax_location_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_tax_location_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8214,7 +8331,7 @@ CREATE TABLE h_cust_bill_pkg_tax_location_void (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_tax_location_void OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_tax_location_void OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_tax_location_void_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8228,7 +8345,7 @@ CREATE SEQUENCE h_cust_bill_pkg_tax_location_void_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_tax_location_void_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_tax_location_void_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_tax_location_void_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8260,7 +8377,7 @@ CREATE TABLE h_cust_bill_pkg_tax_rate_location (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_tax_rate_location OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_tax_rate_location OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_tax_rate_location_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8274,7 +8391,7 @@ CREATE SEQUENCE h_cust_bill_pkg_tax_rate_location_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_tax_rate_location_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_tax_rate_location_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_tax_rate_location_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8304,7 +8421,7 @@ CREATE TABLE h_cust_bill_pkg_tax_rate_location_void (
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_tax_rate_location_void OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_tax_rate_location_void OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_tax_rate_location_void_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8318,7 +8435,7 @@ CREATE SEQUENCE h_cust_bill_pkg_tax_rate_location_void_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_tax_rate_location_void_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_tax_rate_location_void_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_tax_rate_location_void_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8356,11 +8473,12 @@ CREATE TABLE h_cust_bill_pkg_void (
     void_date integer,
     reason character varying(80),
     void_usernum integer,
-    history_usernum integer
+    history_usernum integer,
+    reasonnum integer
 );
 
 
-ALTER TABLE public.h_cust_bill_pkg_void OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_void OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_void_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8374,7 +8492,7 @@ CREATE SEQUENCE h_cust_bill_pkg_void_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_pkg_void_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_pkg_void_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_pkg_void_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8407,11 +8525,12 @@ CREATE TABLE h_cust_bill_void (
     reason character varying(80),
     void_usernum integer,
     history_usernum integer,
-    currency character(3)
+    currency character(3),
+    reasonnum integer
 );
 
 
-ALTER TABLE public.h_cust_bill_void OWNER TO freeside;
+ALTER TABLE h_cust_bill_void OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_void_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8425,7 +8544,7 @@ CREATE SEQUENCE h_cust_bill_void_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_bill_void_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_bill_void_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_bill_void_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8451,7 +8570,7 @@ CREATE TABLE h_cust_category (
 );
 
 
-ALTER TABLE public.h_cust_category OWNER TO freeside;
+ALTER TABLE h_cust_category OWNER TO freeside;
 
 --
 -- Name: h_cust_category_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8465,7 +8584,7 @@ CREATE SEQUENCE h_cust_category_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_category_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_category_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_category_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8492,7 +8611,7 @@ CREATE TABLE h_cust_class (
 );
 
 
-ALTER TABLE public.h_cust_class OWNER TO freeside;
+ALTER TABLE h_cust_class OWNER TO freeside;
 
 --
 -- Name: h_cust_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8506,7 +8625,7 @@ CREATE SEQUENCE h_cust_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8530,11 +8649,12 @@ CREATE TABLE h_cust_contact (
     contactnum integer NOT NULL,
     classnum integer,
     comment character varying(255),
-    selfservice_access character(1)
+    selfservice_access character(1),
+    invoice_dest character(1)
 );
 
 
-ALTER TABLE public.h_cust_contact OWNER TO freeside;
+ALTER TABLE h_cust_contact OWNER TO freeside;
 
 --
 -- Name: h_cust_contact_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8548,7 +8668,7 @@ CREATE SEQUENCE h_cust_contact_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_contact_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_contact_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_contact_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8587,7 +8707,7 @@ CREATE TABLE h_cust_credit (
 );
 
 
-ALTER TABLE public.h_cust_credit OWNER TO freeside;
+ALTER TABLE h_cust_credit OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_bill; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -8608,7 +8728,7 @@ CREATE TABLE h_cust_credit_bill (
 );
 
 
-ALTER TABLE public.h_cust_credit_bill OWNER TO freeside;
+ALTER TABLE h_cust_credit_bill OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_bill_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8622,7 +8742,7 @@ CREATE SEQUENCE h_cust_credit_bill_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_credit_bill_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_credit_bill_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_bill_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8653,7 +8773,7 @@ CREATE TABLE h_cust_credit_bill_pkg (
 );
 
 
-ALTER TABLE public.h_cust_credit_bill_pkg OWNER TO freeside;
+ALTER TABLE h_cust_credit_bill_pkg OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_bill_pkg_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8667,7 +8787,7 @@ CREATE SEQUENCE h_cust_credit_bill_pkg_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_credit_bill_pkg_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_credit_bill_pkg_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_bill_pkg_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8688,7 +8808,7 @@ CREATE SEQUENCE h_cust_credit_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_credit_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_credit_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8715,7 +8835,7 @@ CREATE TABLE h_cust_credit_refund (
 );
 
 
-ALTER TABLE public.h_cust_credit_refund OWNER TO freeside;
+ALTER TABLE h_cust_credit_refund OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_refund_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8729,7 +8849,7 @@ CREATE SEQUENCE h_cust_credit_refund_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_credit_refund_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_credit_refund_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_refund_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8756,7 +8876,7 @@ CREATE TABLE h_cust_credit_source_bill_pkg (
 );
 
 
-ALTER TABLE public.h_cust_credit_source_bill_pkg OWNER TO freeside;
+ALTER TABLE h_cust_credit_source_bill_pkg OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_source_bill_pkg_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8770,7 +8890,7 @@ CREATE SEQUENCE h_cust_credit_source_bill_pkg_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_credit_source_bill_pkg_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_credit_source_bill_pkg_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_source_bill_pkg_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8812,7 +8932,7 @@ CREATE TABLE h_cust_credit_void (
 );
 
 
-ALTER TABLE public.h_cust_credit_void OWNER TO freeside;
+ALTER TABLE h_cust_credit_void OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_void_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8826,7 +8946,7 @@ CREATE SEQUENCE h_cust_credit_void_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_credit_void_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_credit_void_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_credit_void_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8850,11 +8970,12 @@ CREATE TABLE h_cust_event (
     _date integer,
     status character varying(80) NOT NULL,
     statustext text,
-    history_usernum integer
+    history_usernum integer,
+    no_action character(1)
 );
 
 
-ALTER TABLE public.h_cust_event OWNER TO freeside;
+ALTER TABLE h_cust_event OWNER TO freeside;
 
 --
 -- Name: h_cust_event_fee; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -8874,7 +8995,7 @@ CREATE TABLE h_cust_event_fee (
 );
 
 
-ALTER TABLE public.h_cust_event_fee OWNER TO freeside;
+ALTER TABLE h_cust_event_fee OWNER TO freeside;
 
 --
 -- Name: h_cust_event_fee_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8888,7 +9009,7 @@ CREATE SEQUENCE h_cust_event_fee_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_event_fee_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_event_fee_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_event_fee_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8909,7 +9030,7 @@ CREATE SEQUENCE h_cust_event_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_event_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_event_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_event_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -8955,7 +9076,7 @@ CREATE TABLE h_cust_location (
 );
 
 
-ALTER TABLE public.h_cust_location OWNER TO freeside;
+ALTER TABLE h_cust_location OWNER TO freeside;
 
 --
 -- Name: h_cust_location_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -8969,7 +9090,7 @@ CREATE SEQUENCE h_cust_location_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_location_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_location_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_location_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9040,18 +9161,6 @@ CREATE TABLE h_cust_main (
     ship_night character varying(20),
     ship_fax character varying(12),
     ship_mobile character varying(12),
-    payby character(4),
-    payinfo character varying(512),
-    paycvv character varying(512),
-    paymask character varying(80),
-    paydate character varying(10),
-    paystart_month integer,
-    paystart_year integer,
-    payissue character varying(2),
-    payname character varying(160),
-    paystate character varying(80),
-    paytype character varying(80),
-    payip character varying(15),
     geocode character varying(20),
     censustract character varying(20),
     censusyear character(4),
@@ -9086,11 +9195,12 @@ CREATE TABLE h_cust_main (
     taxstatusnum integer,
     complimentary character(1),
     po_number character varying(80),
-    invoice_attn character varying(80)
+    invoice_attn character varying(80),
+    postal_invoice character(1)
 );
 
 
-ALTER TABLE public.h_cust_main OWNER TO freeside;
+ALTER TABLE h_cust_main OWNER TO freeside;
 
 --
 -- Name: h_cust_main_county; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -9114,11 +9224,12 @@ CREATE TABLE h_cust_main_county (
     setuptax character(1),
     recurtax character(1),
     history_usernum integer,
-    exempt_amount_currency character(3)
+    exempt_amount_currency character(3),
+    source character varying(80)
 );
 
 
-ALTER TABLE public.h_cust_main_county OWNER TO freeside;
+ALTER TABLE h_cust_main_county OWNER TO freeside;
 
 --
 -- Name: h_cust_main_county_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9132,7 +9243,7 @@ CREATE SEQUENCE h_cust_main_county_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_main_county_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_main_county_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_main_county_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9159,7 +9270,7 @@ CREATE TABLE h_cust_main_credit_limit (
 );
 
 
-ALTER TABLE public.h_cust_main_credit_limit OWNER TO freeside;
+ALTER TABLE h_cust_main_credit_limit OWNER TO freeside;
 
 --
 -- Name: h_cust_main_credit_limit_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9173,7 +9284,7 @@ CREATE SEQUENCE h_cust_main_credit_limit_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_main_credit_limit_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_main_credit_limit_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_main_credit_limit_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9199,7 +9310,7 @@ CREATE TABLE h_cust_main_exemption (
 );
 
 
-ALTER TABLE public.h_cust_main_exemption OWNER TO freeside;
+ALTER TABLE h_cust_main_exemption OWNER TO freeside;
 
 --
 -- Name: h_cust_main_exemption_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9213,7 +9324,7 @@ CREATE SEQUENCE h_cust_main_exemption_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_main_exemption_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_main_exemption_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_main_exemption_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9234,7 +9345,7 @@ CREATE SEQUENCE h_cust_main_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_main_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_main_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_main_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9259,7 +9370,7 @@ CREATE TABLE h_cust_main_invoice (
 );
 
 
-ALTER TABLE public.h_cust_main_invoice OWNER TO freeside;
+ALTER TABLE h_cust_main_invoice OWNER TO freeside;
 
 --
 -- Name: h_cust_main_invoice_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9273,7 +9384,7 @@ CREATE SEQUENCE h_cust_main_invoice_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_main_invoice_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_main_invoice_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_main_invoice_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9303,7 +9414,7 @@ CREATE TABLE h_cust_main_note (
 );
 
 
-ALTER TABLE public.h_cust_main_note OWNER TO freeside;
+ALTER TABLE h_cust_main_note OWNER TO freeside;
 
 --
 -- Name: h_cust_main_note_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9317,7 +9428,7 @@ CREATE SEQUENCE h_cust_main_note_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_main_note_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_main_note_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_main_note_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9346,11 +9457,12 @@ CREATE TABLE h_cust_msg (
     error character varying(255),
     status character varying(80) NOT NULL,
     msgtype character varying(16),
-    history_usernum integer
+    history_usernum integer,
+    preview text
 );
 
 
-ALTER TABLE public.h_cust_msg OWNER TO freeside;
+ALTER TABLE h_cust_msg OWNER TO freeside;
 
 --
 -- Name: h_cust_msg_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9364,7 +9476,7 @@ CREATE SEQUENCE h_cust_msg_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_msg_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_msg_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_msg_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9389,7 +9501,7 @@ CREATE TABLE h_cust_note_class (
 );
 
 
-ALTER TABLE public.h_cust_note_class OWNER TO freeside;
+ALTER TABLE h_cust_note_class OWNER TO freeside;
 
 --
 -- Name: h_cust_note_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9403,7 +9515,7 @@ CREATE SEQUENCE h_cust_note_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_note_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_note_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_note_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9450,7 +9562,7 @@ CREATE TABLE h_cust_pay (
 );
 
 
-ALTER TABLE public.h_cust_pay OWNER TO freeside;
+ALTER TABLE h_cust_pay OWNER TO freeside;
 
 --
 -- Name: h_cust_pay_batch; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -9482,11 +9594,12 @@ CREATE TABLE h_cust_pay_batch (
     error_message character varying(80),
     history_usernum integer,
     currency character(3),
-    failure_status character varying(16)
+    failure_status character varying(16),
+    paytype character varying(80)
 );
 
 
-ALTER TABLE public.h_cust_pay_batch OWNER TO freeside;
+ALTER TABLE h_cust_pay_batch OWNER TO freeside;
 
 --
 -- Name: h_cust_pay_batch_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9500,7 +9613,7 @@ CREATE SEQUENCE h_cust_pay_batch_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pay_batch_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pay_batch_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pay_batch_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9521,7 +9634,7 @@ CREATE SEQUENCE h_cust_pay_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pay_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pay_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pay_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9566,7 +9679,7 @@ CREATE TABLE h_cust_pay_pending (
 );
 
 
-ALTER TABLE public.h_cust_pay_pending OWNER TO freeside;
+ALTER TABLE h_cust_pay_pending OWNER TO freeside;
 
 --
 -- Name: h_cust_pay_pending_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9580,7 +9693,7 @@ CREATE SEQUENCE h_cust_pay_pending_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pay_pending_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pay_pending_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pay_pending_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9607,7 +9720,7 @@ CREATE TABLE h_cust_pay_refund (
 );
 
 
-ALTER TABLE public.h_cust_pay_refund OWNER TO freeside;
+ALTER TABLE h_cust_pay_refund OWNER TO freeside;
 
 --
 -- Name: h_cust_pay_refund_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9621,7 +9734,7 @@ CREATE SEQUENCE h_cust_pay_refund_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pay_refund_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pay_refund_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pay_refund_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9664,11 +9777,12 @@ CREATE TABLE h_cust_pay_void (
     reason character varying(80),
     void_usernum integer,
     history_usernum integer,
-    currency character(3)
+    currency character(3),
+    reasonnum integer
 );
 
 
-ALTER TABLE public.h_cust_pay_void OWNER TO freeside;
+ALTER TABLE h_cust_pay_void OWNER TO freeside;
 
 --
 -- Name: h_cust_pay_void_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9682,7 +9796,7 @@ CREATE SEQUENCE h_cust_pay_void_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pay_void_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pay_void_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pay_void_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9721,7 +9835,7 @@ CREATE TABLE h_cust_payby (
 );
 
 
-ALTER TABLE public.h_cust_payby OWNER TO freeside;
+ALTER TABLE h_cust_payby OWNER TO freeside;
 
 --
 -- Name: h_cust_payby_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9735,7 +9849,7 @@ CREATE SEQUENCE h_cust_payby_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_payby_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_payby_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_payby_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9783,7 +9897,6 @@ CREATE TABLE h_cust_pkg (
     change_custnum integer,
     main_pkgnum integer,
     pkglinknum integer,
-    manual_flag character(1),
     no_auto character(1),
     quantity integer,
     agent_pkgid character varying(80),
@@ -9796,7 +9909,7 @@ CREATE TABLE h_cust_pkg (
 );
 
 
-ALTER TABLE public.h_cust_pkg OWNER TO freeside;
+ALTER TABLE h_cust_pkg OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_detail; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -9816,7 +9929,7 @@ CREATE TABLE h_cust_pkg_detail (
 );
 
 
-ALTER TABLE public.h_cust_pkg_detail OWNER TO freeside;
+ALTER TABLE h_cust_pkg_detail OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_detail_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9830,7 +9943,7 @@ CREATE SEQUENCE h_cust_pkg_detail_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pkg_detail_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pkg_detail_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_detail_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9856,11 +9969,12 @@ CREATE TABLE h_cust_pkg_discount (
     otaker character varying(32),
     usernum integer,
     disabled character(1),
-    history_usernum integer
+    history_usernum integer,
+    setuprecur character(5)
 );
 
 
-ALTER TABLE public.h_cust_pkg_discount OWNER TO freeside;
+ALTER TABLE h_cust_pkg_discount OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_discount_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9874,7 +9988,7 @@ CREATE SEQUENCE h_cust_pkg_discount_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pkg_discount_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pkg_discount_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_discount_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9895,7 +10009,7 @@ CREATE SEQUENCE h_cust_pkg_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pkg_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pkg_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9921,7 +10035,7 @@ CREATE TABLE h_cust_pkg_option (
 );
 
 
-ALTER TABLE public.h_cust_pkg_option OWNER TO freeside;
+ALTER TABLE h_cust_pkg_option OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9935,7 +10049,7 @@ CREATE SEQUENCE h_cust_pkg_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pkg_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pkg_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -9964,7 +10078,7 @@ CREATE TABLE h_cust_pkg_reason (
 );
 
 
-ALTER TABLE public.h_cust_pkg_reason OWNER TO freeside;
+ALTER TABLE h_cust_pkg_reason OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_reason_fee; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -9984,7 +10098,7 @@ CREATE TABLE h_cust_pkg_reason_fee (
 );
 
 
-ALTER TABLE public.h_cust_pkg_reason_fee OWNER TO freeside;
+ALTER TABLE h_cust_pkg_reason_fee OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_reason_fee_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -9998,7 +10112,7 @@ CREATE SEQUENCE h_cust_pkg_reason_fee_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pkg_reason_fee_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pkg_reason_fee_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_reason_fee_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10019,7 +10133,7 @@ CREATE SEQUENCE h_cust_pkg_reason_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pkg_reason_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pkg_reason_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_reason_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10045,7 +10159,7 @@ CREATE TABLE h_cust_pkg_usage (
 );
 
 
-ALTER TABLE public.h_cust_pkg_usage OWNER TO freeside;
+ALTER TABLE h_cust_pkg_usage OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_usage_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10059,7 +10173,7 @@ CREATE SEQUENCE h_cust_pkg_usage_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pkg_usage_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pkg_usage_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_usage_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10085,7 +10199,7 @@ CREATE TABLE h_cust_pkg_usageprice (
 );
 
 
-ALTER TABLE public.h_cust_pkg_usageprice OWNER TO freeside;
+ALTER TABLE h_cust_pkg_usageprice OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_usageprice_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10099,7 +10213,7 @@ CREATE SEQUENCE h_cust_pkg_usageprice_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_pkg_usageprice_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_pkg_usageprice_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_pkg_usageprice_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10138,7 +10252,7 @@ CREATE TABLE h_cust_recon (
 );
 
 
-ALTER TABLE public.h_cust_recon OWNER TO freeside;
+ALTER TABLE h_cust_recon OWNER TO freeside;
 
 --
 -- Name: h_cust_recon_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10152,7 +10266,7 @@ CREATE SEQUENCE h_cust_recon_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_recon_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_recon_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_recon_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10188,11 +10302,12 @@ CREATE TABLE h_cust_refund (
     order_number character varying(80),
     history_usernum integer,
     currency character(3),
-    reasonnum integer
+    reasonnum integer,
+    source_paynum integer
 );
 
 
-ALTER TABLE public.h_cust_refund OWNER TO freeside;
+ALTER TABLE h_cust_refund OWNER TO freeside;
 
 --
 -- Name: h_cust_refund_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10206,7 +10321,7 @@ CREATE SEQUENCE h_cust_refund_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_refund_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_refund_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_refund_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10231,7 +10346,7 @@ CREATE TABLE h_cust_statement (
 );
 
 
-ALTER TABLE public.h_cust_statement OWNER TO freeside;
+ALTER TABLE h_cust_statement OWNER TO freeside;
 
 --
 -- Name: h_cust_statement_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10245,7 +10360,7 @@ CREATE SEQUENCE h_cust_statement_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_statement_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_statement_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_statement_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10272,7 +10387,7 @@ CREATE TABLE h_cust_svc (
 );
 
 
-ALTER TABLE public.h_cust_svc OWNER TO freeside;
+ALTER TABLE h_cust_svc OWNER TO freeside;
 
 --
 -- Name: h_cust_svc_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10286,7 +10401,7 @@ CREATE SEQUENCE h_cust_svc_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_svc_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_svc_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_svc_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10312,7 +10427,7 @@ CREATE TABLE h_cust_svc_option (
 );
 
 
-ALTER TABLE public.h_cust_svc_option OWNER TO freeside;
+ALTER TABLE h_cust_svc_option OWNER TO freeside;
 
 --
 -- Name: h_cust_svc_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10326,7 +10441,7 @@ CREATE SEQUENCE h_cust_svc_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_svc_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_svc_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_svc_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10351,7 +10466,7 @@ CREATE TABLE h_cust_tag (
 );
 
 
-ALTER TABLE public.h_cust_tag OWNER TO freeside;
+ALTER TABLE h_cust_tag OWNER TO freeside;
 
 --
 -- Name: h_cust_tag_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10365,7 +10480,7 @@ CREATE SEQUENCE h_cust_tag_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_tag_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_tag_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_tag_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10394,7 +10509,7 @@ CREATE TABLE h_cust_tax_adjustment (
 );
 
 
-ALTER TABLE public.h_cust_tax_adjustment OWNER TO freeside;
+ALTER TABLE h_cust_tax_adjustment OWNER TO freeside;
 
 --
 -- Name: h_cust_tax_adjustment_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10408,7 +10523,7 @@ CREATE SEQUENCE h_cust_tax_adjustment_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_tax_adjustment_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_tax_adjustment_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_tax_adjustment_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10436,7 +10551,7 @@ CREATE TABLE h_cust_tax_exempt (
 );
 
 
-ALTER TABLE public.h_cust_tax_exempt OWNER TO freeside;
+ALTER TABLE h_cust_tax_exempt OWNER TO freeside;
 
 --
 -- Name: h_cust_tax_exempt_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10450,7 +10565,7 @@ CREATE SEQUENCE h_cust_tax_exempt_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_tax_exempt_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_tax_exempt_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_tax_exempt_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10485,7 +10600,7 @@ CREATE TABLE h_cust_tax_exempt_pkg (
 );
 
 
-ALTER TABLE public.h_cust_tax_exempt_pkg OWNER TO freeside;
+ALTER TABLE h_cust_tax_exempt_pkg OWNER TO freeside;
 
 --
 -- Name: h_cust_tax_exempt_pkg_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10499,7 +10614,7 @@ CREATE SEQUENCE h_cust_tax_exempt_pkg_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_tax_exempt_pkg_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_tax_exempt_pkg_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_tax_exempt_pkg_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10534,7 +10649,7 @@ CREATE TABLE h_cust_tax_exempt_pkg_void (
 );
 
 
-ALTER TABLE public.h_cust_tax_exempt_pkg_void OWNER TO freeside;
+ALTER TABLE h_cust_tax_exempt_pkg_void OWNER TO freeside;
 
 --
 -- Name: h_cust_tax_exempt_pkg_void_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10548,7 +10663,7 @@ CREATE SEQUENCE h_cust_tax_exempt_pkg_void_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_tax_exempt_pkg_void_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_tax_exempt_pkg_void_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_tax_exempt_pkg_void_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10585,7 +10700,7 @@ CREATE TABLE h_cust_tax_location (
 );
 
 
-ALTER TABLE public.h_cust_tax_location OWNER TO freeside;
+ALTER TABLE h_cust_tax_location OWNER TO freeside;
 
 --
 -- Name: h_cust_tax_location_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10599,7 +10714,7 @@ CREATE SEQUENCE h_cust_tax_location_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_cust_tax_location_historynum_seq OWNER TO freeside;
+ALTER TABLE h_cust_tax_location_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_cust_tax_location_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10634,11 +10749,12 @@ CREATE TABLE h_deploy_zone (
     is_business character(1),
     active_date integer,
     expire_date integer,
-    history_usernum integer
+    history_usernum integer,
+    censusyear character(4)
 );
 
 
-ALTER TABLE public.h_deploy_zone OWNER TO freeside;
+ALTER TABLE h_deploy_zone OWNER TO freeside;
 
 --
 -- Name: h_deploy_zone_block; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -10652,12 +10768,12 @@ CREATE TABLE h_deploy_zone_block (
     blocknum integer,
     zonenum integer NOT NULL,
     censusblock character(15) NOT NULL,
-    censusyear character(4) NOT NULL,
+    censusyear character(4),
     history_usernum integer
 );
 
 
-ALTER TABLE public.h_deploy_zone_block OWNER TO freeside;
+ALTER TABLE h_deploy_zone_block OWNER TO freeside;
 
 --
 -- Name: h_deploy_zone_block_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10671,7 +10787,7 @@ CREATE SEQUENCE h_deploy_zone_block_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_deploy_zone_block_historynum_seq OWNER TO freeside;
+ALTER TABLE h_deploy_zone_block_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_deploy_zone_block_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10692,7 +10808,7 @@ CREATE SEQUENCE h_deploy_zone_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_deploy_zone_historynum_seq OWNER TO freeside;
+ALTER TABLE h_deploy_zone_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_deploy_zone_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10718,7 +10834,7 @@ CREATE TABLE h_deploy_zone_vertex (
 );
 
 
-ALTER TABLE public.h_deploy_zone_vertex OWNER TO freeside;
+ALTER TABLE h_deploy_zone_vertex OWNER TO freeside;
 
 --
 -- Name: h_deploy_zone_vertex_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10732,7 +10848,7 @@ CREATE SEQUENCE h_deploy_zone_vertex_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_deploy_zone_vertex_historynum_seq OWNER TO freeside;
+ALTER TABLE h_deploy_zone_vertex_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_deploy_zone_vertex_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10761,7 +10877,7 @@ CREATE TABLE h_did_order (
 );
 
 
-ALTER TABLE public.h_did_order OWNER TO freeside;
+ALTER TABLE h_did_order OWNER TO freeside;
 
 --
 -- Name: h_did_order_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10775,7 +10891,7 @@ CREATE SEQUENCE h_did_order_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_did_order_historynum_seq OWNER TO freeside;
+ALTER TABLE h_did_order_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_did_order_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10806,7 +10922,7 @@ CREATE TABLE h_did_order_item (
 );
 
 
-ALTER TABLE public.h_did_order_item OWNER TO freeside;
+ALTER TABLE h_did_order_item OWNER TO freeside;
 
 --
 -- Name: h_did_order_item_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10820,7 +10936,7 @@ CREATE SEQUENCE h_did_order_item_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_did_order_item_historynum_seq OWNER TO freeside;
+ALTER TABLE h_did_order_item_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_did_order_item_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10844,7 +10960,7 @@ CREATE TABLE h_did_vendor (
 );
 
 
-ALTER TABLE public.h_did_vendor OWNER TO freeside;
+ALTER TABLE h_did_vendor OWNER TO freeside;
 
 --
 -- Name: h_did_vendor_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10858,7 +10974,7 @@ CREATE SEQUENCE h_did_vendor_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_did_vendor_historynum_seq OWNER TO freeside;
+ALTER TABLE h_did_vendor_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_did_vendor_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10888,7 +11004,7 @@ CREATE TABLE h_discount (
 );
 
 
-ALTER TABLE public.h_discount OWNER TO freeside;
+ALTER TABLE h_discount OWNER TO freeside;
 
 --
 -- Name: h_discount_class; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -10906,7 +11022,7 @@ CREATE TABLE h_discount_class (
 );
 
 
-ALTER TABLE public.h_discount_class OWNER TO freeside;
+ALTER TABLE h_discount_class OWNER TO freeside;
 
 --
 -- Name: h_discount_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10920,7 +11036,7 @@ CREATE SEQUENCE h_discount_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_discount_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_discount_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_discount_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10941,7 +11057,7 @@ CREATE SEQUENCE h_discount_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_discount_historynum_seq OWNER TO freeside;
+ALTER TABLE h_discount_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_discount_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -10970,7 +11086,7 @@ CREATE TABLE h_domain_record (
 );
 
 
-ALTER TABLE public.h_domain_record OWNER TO freeside;
+ALTER TABLE h_domain_record OWNER TO freeside;
 
 --
 -- Name: h_domain_record_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -10984,7 +11100,7 @@ CREATE SEQUENCE h_domain_record_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_domain_record_historynum_seq OWNER TO freeside;
+ALTER TABLE h_domain_record_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_domain_record_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11009,7 +11125,7 @@ CREATE TABLE h_dsl_device (
 );
 
 
-ALTER TABLE public.h_dsl_device OWNER TO freeside;
+ALTER TABLE h_dsl_device OWNER TO freeside;
 
 --
 -- Name: h_dsl_device_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11023,7 +11139,7 @@ CREATE SEQUENCE h_dsl_device_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_dsl_device_historynum_seq OWNER TO freeside;
+ALTER TABLE h_dsl_device_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_dsl_device_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11051,7 +11167,7 @@ CREATE TABLE h_dsl_note (
 );
 
 
-ALTER TABLE public.h_dsl_note OWNER TO freeside;
+ALTER TABLE h_dsl_note OWNER TO freeside;
 
 --
 -- Name: h_dsl_note_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11065,7 +11181,7 @@ CREATE SEQUENCE h_dsl_note_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_dsl_note_historynum_seq OWNER TO freeside;
+ALTER TABLE h_dsl_note_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_dsl_note_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11092,7 +11208,7 @@ CREATE TABLE h_export_batch (
 );
 
 
-ALTER TABLE public.h_export_batch OWNER TO freeside;
+ALTER TABLE h_export_batch OWNER TO freeside;
 
 --
 -- Name: h_export_batch_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11106,7 +11222,7 @@ CREATE SEQUENCE h_export_batch_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_export_batch_historynum_seq OWNER TO freeside;
+ALTER TABLE h_export_batch_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_export_batch_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11134,7 +11250,7 @@ CREATE TABLE h_export_batch_item (
 );
 
 
-ALTER TABLE public.h_export_batch_item OWNER TO freeside;
+ALTER TABLE h_export_batch_item OWNER TO freeside;
 
 --
 -- Name: h_export_batch_item_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11148,7 +11264,7 @@ CREATE SEQUENCE h_export_batch_item_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_export_batch_item_historynum_seq OWNER TO freeside;
+ALTER TABLE h_export_batch_item_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_export_batch_item_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11158,6 +11274,46 @@ ALTER SEQUENCE h_export_batch_item_historynum_seq OWNED BY h_export_batch_item.h
 
 
 --
+-- Name: h_export_cust_svc; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE h_export_cust_svc (
+    historynum integer NOT NULL,
+    history_date integer,
+    history_user character varying(80),
+    history_usernum integer,
+    history_action character varying(80) NOT NULL,
+    exportcustsvcnum integer,
+    exportnum integer NOT NULL,
+    svcnum integer NOT NULL,
+    remoteid character varying(512) NOT NULL
+);
+
+
+ALTER TABLE h_export_cust_svc OWNER TO freeside;
+
+--
+-- Name: h_export_cust_svc_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE h_export_cust_svc_historynum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE h_export_cust_svc_historynum_seq OWNER TO freeside;
+
+--
+-- Name: h_export_cust_svc_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE h_export_cust_svc_historynum_seq OWNED BY h_export_cust_svc.historynum;
+
+
+--
 -- Name: h_export_device; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
@@ -11173,7 +11329,7 @@ CREATE TABLE h_export_device (
 );
 
 
-ALTER TABLE public.h_export_device OWNER TO freeside;
+ALTER TABLE h_export_device OWNER TO freeside;
 
 --
 -- Name: h_export_device_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11187,7 +11343,7 @@ CREATE SEQUENCE h_export_device_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_export_device_historynum_seq OWNER TO freeside;
+ALTER TABLE h_export_device_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_export_device_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11212,7 +11368,7 @@ CREATE TABLE h_export_nas (
 );
 
 
-ALTER TABLE public.h_export_nas OWNER TO freeside;
+ALTER TABLE h_export_nas OWNER TO freeside;
 
 --
 -- Name: h_export_nas_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11226,7 +11382,7 @@ CREATE SEQUENCE h_export_nas_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_export_nas_historynum_seq OWNER TO freeside;
+ALTER TABLE h_export_nas_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_export_nas_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11252,7 +11408,7 @@ CREATE TABLE h_export_svc (
 );
 
 
-ALTER TABLE public.h_export_svc OWNER TO freeside;
+ALTER TABLE h_export_svc OWNER TO freeside;
 
 --
 -- Name: h_export_svc_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11266,7 +11422,7 @@ CREATE SEQUENCE h_export_svc_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_export_svc_historynum_seq OWNER TO freeside;
+ALTER TABLE h_export_svc_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_export_svc_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11291,7 +11447,7 @@ CREATE TABLE h_extension_device (
 );
 
 
-ALTER TABLE public.h_extension_device OWNER TO freeside;
+ALTER TABLE h_extension_device OWNER TO freeside;
 
 --
 -- Name: h_extension_device_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11305,7 +11461,7 @@ CREATE SEQUENCE h_extension_device_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_extension_device_historynum_seq OWNER TO freeside;
+ALTER TABLE h_extension_device_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_extension_device_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11329,7 +11485,7 @@ CREATE TABLE h_fcc477map (
 );
 
 
-ALTER TABLE public.h_fcc477map OWNER TO freeside;
+ALTER TABLE h_fcc477map OWNER TO freeside;
 
 --
 -- Name: h_fcc477map_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11343,7 +11499,7 @@ CREATE SEQUENCE h_fcc477map_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_fcc477map_historynum_seq OWNER TO freeside;
+ALTER TABLE h_fcc477map_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_fcc477map_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11353,6 +11509,47 @@ ALTER SEQUENCE h_fcc477map_historynum_seq OWNED BY h_fcc477map.historynum;
 
 
 --
+-- Name: h_fiber_olt; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE h_fiber_olt (
+    historynum integer NOT NULL,
+    history_date integer,
+    history_user character varying(80),
+    history_usernum integer,
+    history_action character varying(80) NOT NULL,
+    oltnum integer,
+    oltname character varying(80) NOT NULL,
+    sitenum integer,
+    serial character varying(80) NOT NULL,
+    disabled character(1)
+);
+
+
+ALTER TABLE h_fiber_olt OWNER TO freeside;
+
+--
+-- Name: h_fiber_olt_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE h_fiber_olt_historynum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE h_fiber_olt_historynum_seq OWNER TO freeside;
+
+--
+-- Name: h_fiber_olt_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE h_fiber_olt_historynum_seq OWNED BY h_fiber_olt.historynum;
+
+
+--
 -- Name: h_hardware_class; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
@@ -11367,7 +11564,7 @@ CREATE TABLE h_hardware_class (
 );
 
 
-ALTER TABLE public.h_hardware_class OWNER TO freeside;
+ALTER TABLE h_hardware_class OWNER TO freeside;
 
 --
 -- Name: h_hardware_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11381,7 +11578,7 @@ CREATE SEQUENCE h_hardware_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_hardware_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_hardware_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_hardware_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11406,7 +11603,7 @@ CREATE TABLE h_hardware_status (
 );
 
 
-ALTER TABLE public.h_hardware_status OWNER TO freeside;
+ALTER TABLE h_hardware_status OWNER TO freeside;
 
 --
 -- Name: h_hardware_status_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11420,7 +11617,7 @@ CREATE SEQUENCE h_hardware_status_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_hardware_status_historynum_seq OWNER TO freeside;
+ALTER TABLE h_hardware_status_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_hardware_status_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11446,7 +11643,7 @@ CREATE TABLE h_hardware_type (
 );
 
 
-ALTER TABLE public.h_hardware_type OWNER TO freeside;
+ALTER TABLE h_hardware_type OWNER TO freeside;
 
 --
 -- Name: h_hardware_type_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11460,7 +11657,7 @@ CREATE SEQUENCE h_hardware_type_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_hardware_type_historynum_seq OWNER TO freeside;
+ALTER TABLE h_hardware_type_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_hardware_type_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11484,7 +11681,7 @@ CREATE TABLE h_inventory_class (
 );
 
 
-ALTER TABLE public.h_inventory_class OWNER TO freeside;
+ALTER TABLE h_inventory_class OWNER TO freeside;
 
 --
 -- Name: h_inventory_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11498,7 +11695,7 @@ CREATE SEQUENCE h_inventory_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_inventory_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_inventory_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_inventory_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11526,7 +11723,7 @@ CREATE TABLE h_inventory_item (
 );
 
 
-ALTER TABLE public.h_inventory_item OWNER TO freeside;
+ALTER TABLE h_inventory_item OWNER TO freeside;
 
 --
 -- Name: h_inventory_item_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11540,7 +11737,7 @@ CREATE SEQUENCE h_inventory_item_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_inventory_item_historynum_seq OWNER TO freeside;
+ALTER TABLE h_inventory_item_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_inventory_item_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11580,7 +11777,7 @@ CREATE TABLE h_invoice_conf (
 );
 
 
-ALTER TABLE public.h_invoice_conf OWNER TO freeside;
+ALTER TABLE h_invoice_conf OWNER TO freeside;
 
 --
 -- Name: h_invoice_conf_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11594,7 +11791,7 @@ CREATE SEQUENCE h_invoice_conf_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_invoice_conf_historynum_seq OWNER TO freeside;
+ALTER TABLE h_invoice_conf_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_invoice_conf_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11619,7 +11816,7 @@ CREATE TABLE h_invoice_mode (
 );
 
 
-ALTER TABLE public.h_invoice_mode OWNER TO freeside;
+ALTER TABLE h_invoice_mode OWNER TO freeside;
 
 --
 -- Name: h_invoice_mode_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11633,7 +11830,7 @@ CREATE SEQUENCE h_invoice_mode_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_invoice_mode_historynum_seq OWNER TO freeside;
+ALTER TABLE h_invoice_mode_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_invoice_mode_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11658,7 +11855,7 @@ CREATE TABLE h_lata (
 );
 
 
-ALTER TABLE public.h_lata OWNER TO freeside;
+ALTER TABLE h_lata OWNER TO freeside;
 
 --
 -- Name: h_lata_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11672,7 +11869,7 @@ CREATE SEQUENCE h_lata_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_lata_historynum_seq OWNER TO freeside;
+ALTER TABLE h_lata_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_lata_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11703,7 +11900,7 @@ CREATE TABLE h_legacy_cust_bill (
 );
 
 
-ALTER TABLE public.h_legacy_cust_bill OWNER TO freeside;
+ALTER TABLE h_legacy_cust_bill OWNER TO freeside;
 
 --
 -- Name: h_legacy_cust_bill_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11717,7 +11914,7 @@ CREATE SEQUENCE h_legacy_cust_bill_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_legacy_cust_bill_historynum_seq OWNER TO freeside;
+ALTER TABLE h_legacy_cust_bill_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_legacy_cust_bill_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11727,6 +11924,47 @@ ALTER SEQUENCE h_legacy_cust_bill_historynum_seq OWNED BY h_legacy_cust_bill.his
 
 
 --
+-- Name: h_log_email; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE h_log_email (
+    historynum integer NOT NULL,
+    history_date integer,
+    history_user character varying(80),
+    history_usernum integer,
+    history_action character varying(80) NOT NULL,
+    logemailnum integer,
+    context character varying(80),
+    min_level integer,
+    msgnum integer NOT NULL,
+    to_addr character varying(255)
+);
+
+
+ALTER TABLE h_log_email OWNER TO freeside;
+
+--
+-- Name: h_log_email_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE h_log_email_historynum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE h_log_email_historynum_seq OWNER TO freeside;
+
+--
+-- Name: h_log_email_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE h_log_email_historynum_seq OWNED BY h_log_email.historynum;
+
+
+--
 -- Name: h_mailinglist; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
@@ -11741,7 +11979,7 @@ CREATE TABLE h_mailinglist (
 );
 
 
-ALTER TABLE public.h_mailinglist OWNER TO freeside;
+ALTER TABLE h_mailinglist OWNER TO freeside;
 
 --
 -- Name: h_mailinglist_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11755,7 +11993,7 @@ CREATE SEQUENCE h_mailinglist_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_mailinglist_historynum_seq OWNER TO freeside;
+ALTER TABLE h_mailinglist_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_mailinglist_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11782,7 +12020,7 @@ CREATE TABLE h_mailinglistmember (
 );
 
 
-ALTER TABLE public.h_mailinglistmember OWNER TO freeside;
+ALTER TABLE h_mailinglistmember OWNER TO freeside;
 
 --
 -- Name: h_mailinglistmember_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11796,7 +12034,7 @@ CREATE SEQUENCE h_mailinglistmember_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_mailinglistmember_historynum_seq OWNER TO freeside;
+ALTER TABLE h_mailinglistmember_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_mailinglistmember_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11820,7 +12058,7 @@ CREATE TABLE h_msa (
 );
 
 
-ALTER TABLE public.h_msa OWNER TO freeside;
+ALTER TABLE h_msa OWNER TO freeside;
 
 --
 -- Name: h_msa_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11834,7 +12072,7 @@ CREATE SEQUENCE h_msa_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_msa_historynum_seq OWNER TO freeside;
+ALTER TABLE h_msa_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_msa_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11861,11 +12099,12 @@ CREATE TABLE h_msg_template (
     disabled character(1),
     from_addr character varying(255),
     bcc_addr character varying(255),
-    history_usernum integer
+    history_usernum integer,
+    msgclass character varying(16)
 );
 
 
-ALTER TABLE public.h_msg_template OWNER TO freeside;
+ALTER TABLE h_msg_template OWNER TO freeside;
 
 --
 -- Name: h_msg_template_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11879,7 +12118,7 @@ CREATE SEQUENCE h_msg_template_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_msg_template_historynum_seq OWNER TO freeside;
+ALTER TABLE h_msg_template_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_msg_template_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11889,6 +12128,49 @@ ALTER SEQUENCE h_msg_template_historynum_seq OWNED BY h_msg_template.historynum;
 
 
 --
+-- Name: h_msg_template_http; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE h_msg_template_http (
+    historynum integer NOT NULL,
+    history_date integer,
+    history_user character varying(80),
+    history_usernum integer,
+    history_action character varying(80) NOT NULL,
+    num integer,
+    msgnum integer NOT NULL,
+    prepare_url character varying(255),
+    send_url character varying(255),
+    username character varying(80),
+    password character varying(80),
+    content text
+);
+
+
+ALTER TABLE h_msg_template_http OWNER TO freeside;
+
+--
+-- Name: h_msg_template_http_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE h_msg_template_http_historynum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE h_msg_template_http_historynum_seq OWNER TO freeside;
+
+--
+-- Name: h_msg_template_http_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE h_msg_template_http_historynum_seq OWNED BY h_msg_template_http.historynum;
+
+
+--
 -- Name: h_msgcat; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
@@ -11905,7 +12187,7 @@ CREATE TABLE h_msgcat (
 );
 
 
-ALTER TABLE public.h_msgcat OWNER TO freeside;
+ALTER TABLE h_msgcat OWNER TO freeside;
 
 --
 -- Name: h_msgcat_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11919,7 +12201,7 @@ CREATE SEQUENCE h_msgcat_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_msgcat_historynum_seq OWNER TO freeside;
+ALTER TABLE h_msgcat_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_msgcat_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11951,7 +12233,7 @@ CREATE TABLE h_nas (
 );
 
 
-ALTER TABLE public.h_nas OWNER TO freeside;
+ALTER TABLE h_nas OWNER TO freeside;
 
 --
 -- Name: h_nas_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -11965,7 +12247,7 @@ CREATE SEQUENCE h_nas_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_nas_historynum_seq OWNER TO freeside;
+ALTER TABLE h_nas_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_nas_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -11975,6 +12257,45 @@ ALTER SEQUENCE h_nas_historynum_seq OWNED BY h_nas.historynum;
 
 
 --
+-- Name: h_olt_site; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE h_olt_site (
+    historynum integer NOT NULL,
+    history_date integer,
+    history_user character varying(80),
+    history_usernum integer,
+    history_action character varying(80) NOT NULL,
+    sitenum integer,
+    market character varying(80) NOT NULL,
+    site character varying(80) NOT NULL
+);
+
+
+ALTER TABLE h_olt_site OWNER TO freeside;
+
+--
+-- Name: h_olt_site_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE h_olt_site_historynum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE h_olt_site_historynum_seq OWNER TO freeside;
+
+--
+-- Name: h_olt_site_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE h_olt_site_historynum_seq OWNED BY h_olt_site.historynum;
+
+
+--
 -- Name: h_part_bill_event; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
@@ -11997,7 +12318,7 @@ CREATE TABLE h_part_bill_event (
 );
 
 
-ALTER TABLE public.h_part_bill_event OWNER TO freeside;
+ALTER TABLE h_part_bill_event OWNER TO freeside;
 
 --
 -- Name: h_part_bill_event_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12011,7 +12332,7 @@ CREATE SEQUENCE h_part_bill_event_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_bill_event_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_bill_event_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_bill_event_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12037,7 +12358,7 @@ CREATE TABLE h_part_device (
 );
 
 
-ALTER TABLE public.h_part_device OWNER TO freeside;
+ALTER TABLE h_part_device OWNER TO freeside;
 
 --
 -- Name: h_part_device_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12051,7 +12372,7 @@ CREATE SEQUENCE h_part_device_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_device_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_device_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_device_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12081,7 +12402,7 @@ CREATE TABLE h_part_event (
 );
 
 
-ALTER TABLE public.h_part_event OWNER TO freeside;
+ALTER TABLE h_part_event OWNER TO freeside;
 
 --
 -- Name: h_part_event_condition; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -12099,7 +12420,7 @@ CREATE TABLE h_part_event_condition (
 );
 
 
-ALTER TABLE public.h_part_event_condition OWNER TO freeside;
+ALTER TABLE h_part_event_condition OWNER TO freeside;
 
 --
 -- Name: h_part_event_condition_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12113,7 +12434,7 @@ CREATE SEQUENCE h_part_event_condition_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_event_condition_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_event_condition_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_event_condition_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12139,7 +12460,7 @@ CREATE TABLE h_part_event_condition_option (
 );
 
 
-ALTER TABLE public.h_part_event_condition_option OWNER TO freeside;
+ALTER TABLE h_part_event_condition_option OWNER TO freeside;
 
 --
 -- Name: h_part_event_condition_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12153,7 +12474,7 @@ CREATE SEQUENCE h_part_event_condition_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_event_condition_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_event_condition_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_event_condition_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12179,7 +12500,7 @@ CREATE TABLE h_part_event_condition_option_option (
 );
 
 
-ALTER TABLE public.h_part_event_condition_option_option OWNER TO freeside;
+ALTER TABLE h_part_event_condition_option_option OWNER TO freeside;
 
 --
 -- Name: h_part_event_condition_option_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12193,7 +12514,7 @@ CREATE SEQUENCE h_part_event_condition_option_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_event_condition_option_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_event_condition_option_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_event_condition_option_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12214,7 +12535,7 @@ CREATE SEQUENCE h_part_event_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_event_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_event_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_event_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12240,7 +12561,7 @@ CREATE TABLE h_part_event_option (
 );
 
 
-ALTER TABLE public.h_part_event_option OWNER TO freeside;
+ALTER TABLE h_part_event_option OWNER TO freeside;
 
 --
 -- Name: h_part_event_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12254,7 +12575,7 @@ CREATE SEQUENCE h_part_event_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_event_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_event_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_event_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12278,11 +12599,12 @@ CREATE TABLE h_part_export (
     exporttype character varying(80) NOT NULL,
     nodomain character(1),
     default_machine integer,
-    history_usernum integer
+    history_usernum integer,
+    no_suspend character(1)
 );
 
 
-ALTER TABLE public.h_part_export OWNER TO freeside;
+ALTER TABLE h_part_export OWNER TO freeside;
 
 --
 -- Name: h_part_export_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12296,7 +12618,7 @@ CREATE SEQUENCE h_part_export_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_export_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_export_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_export_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12322,7 +12644,7 @@ CREATE TABLE h_part_export_machine (
 );
 
 
-ALTER TABLE public.h_part_export_machine OWNER TO freeside;
+ALTER TABLE h_part_export_machine OWNER TO freeside;
 
 --
 -- Name: h_part_export_machine_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12336,7 +12658,7 @@ CREATE SEQUENCE h_part_export_machine_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_export_machine_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_export_machine_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_export_machine_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12362,7 +12684,7 @@ CREATE TABLE h_part_export_option (
 );
 
 
-ALTER TABLE public.h_part_export_option OWNER TO freeside;
+ALTER TABLE h_part_export_option OWNER TO freeside;
 
 --
 -- Name: h_part_export_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12376,7 +12698,7 @@ CREATE SEQUENCE h_part_export_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_export_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_export_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_export_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12416,7 +12738,7 @@ CREATE TABLE h_part_fee (
 );
 
 
-ALTER TABLE public.h_part_fee OWNER TO freeside;
+ALTER TABLE h_part_fee OWNER TO freeside;
 
 --
 -- Name: h_part_fee_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12430,7 +12752,7 @@ CREATE SEQUENCE h_part_fee_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_fee_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_fee_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_fee_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12457,7 +12779,7 @@ CREATE TABLE h_part_fee_msgcat (
 );
 
 
-ALTER TABLE public.h_part_fee_msgcat OWNER TO freeside;
+ALTER TABLE h_part_fee_msgcat OWNER TO freeside;
 
 --
 -- Name: h_part_fee_msgcat_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12471,7 +12793,7 @@ CREATE SEQUENCE h_part_fee_msgcat_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_fee_msgcat_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_fee_msgcat_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_fee_msgcat_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12498,7 +12820,7 @@ CREATE TABLE h_part_fee_usage (
 );
 
 
-ALTER TABLE public.h_part_fee_usage OWNER TO freeside;
+ALTER TABLE h_part_fee_usage OWNER TO freeside;
 
 --
 -- Name: h_part_fee_usage_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12512,7 +12834,7 @@ CREATE SEQUENCE h_part_fee_usage_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_fee_usage_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_fee_usage_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_fee_usage_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12568,7 +12890,7 @@ CREATE TABLE h_part_pkg (
 );
 
 
-ALTER TABLE public.h_part_pkg OWNER TO freeside;
+ALTER TABLE h_part_pkg OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_currency; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -12588,7 +12910,7 @@ CREATE TABLE h_part_pkg_currency (
 );
 
 
-ALTER TABLE public.h_part_pkg_currency OWNER TO freeside;
+ALTER TABLE h_part_pkg_currency OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_currency_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12602,7 +12924,7 @@ CREATE SEQUENCE h_part_pkg_currency_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_currency_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_currency_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_currency_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12627,7 +12949,7 @@ CREATE TABLE h_part_pkg_discount (
 );
 
 
-ALTER TABLE public.h_part_pkg_discount OWNER TO freeside;
+ALTER TABLE h_part_pkg_discount OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_discount_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12641,7 +12963,7 @@ CREATE SEQUENCE h_part_pkg_discount_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_discount_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_discount_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_discount_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12667,7 +12989,7 @@ CREATE TABLE h_part_pkg_fcc_option (
 );
 
 
-ALTER TABLE public.h_part_pkg_fcc_option OWNER TO freeside;
+ALTER TABLE h_part_pkg_fcc_option OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_fcc_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12681,7 +13003,7 @@ CREATE SEQUENCE h_part_pkg_fcc_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_fcc_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_fcc_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_fcc_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12702,7 +13024,7 @@ CREATE SEQUENCE h_part_pkg_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12729,7 +13051,7 @@ CREATE TABLE h_part_pkg_link (
 );
 
 
-ALTER TABLE public.h_part_pkg_link OWNER TO freeside;
+ALTER TABLE h_part_pkg_link OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_link_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12743,7 +13065,7 @@ CREATE SEQUENCE h_part_pkg_link_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_link_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_link_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_link_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12770,7 +13092,7 @@ CREATE TABLE h_part_pkg_msgcat (
 );
 
 
-ALTER TABLE public.h_part_pkg_msgcat OWNER TO freeside;
+ALTER TABLE h_part_pkg_msgcat OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_msgcat_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12784,7 +13106,7 @@ CREATE SEQUENCE h_part_pkg_msgcat_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_msgcat_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_msgcat_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_msgcat_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12810,7 +13132,7 @@ CREATE TABLE h_part_pkg_option (
 );
 
 
-ALTER TABLE public.h_part_pkg_option OWNER TO freeside;
+ALTER TABLE h_part_pkg_option OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12824,7 +13146,7 @@ CREATE SEQUENCE h_part_pkg_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12849,7 +13171,7 @@ CREATE TABLE h_part_pkg_report_option (
 );
 
 
-ALTER TABLE public.h_part_pkg_report_option OWNER TO freeside;
+ALTER TABLE h_part_pkg_report_option OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_report_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12863,7 +13185,7 @@ CREATE SEQUENCE h_part_pkg_report_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_report_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_report_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_report_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12888,7 +13210,7 @@ CREATE TABLE h_part_pkg_taxclass (
 );
 
 
-ALTER TABLE public.h_part_pkg_taxclass OWNER TO freeside;
+ALTER TABLE h_part_pkg_taxclass OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_taxclass_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12902,7 +13224,7 @@ CREATE SEQUENCE h_part_pkg_taxclass_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_taxclass_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_taxclass_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_taxclass_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12928,7 +13250,7 @@ CREATE TABLE h_part_pkg_taxoverride (
 );
 
 
-ALTER TABLE public.h_part_pkg_taxoverride OWNER TO freeside;
+ALTER TABLE h_part_pkg_taxoverride OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_taxoverride_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12942,7 +13264,7 @@ CREATE SEQUENCE h_part_pkg_taxoverride_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_taxoverride_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_taxoverride_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_taxoverride_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -12969,7 +13291,7 @@ CREATE TABLE h_part_pkg_taxproduct (
 );
 
 
-ALTER TABLE public.h_part_pkg_taxproduct OWNER TO freeside;
+ALTER TABLE h_part_pkg_taxproduct OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_taxproduct_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -12983,7 +13305,7 @@ CREATE SEQUENCE h_part_pkg_taxproduct_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_taxproduct_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_taxproduct_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_taxproduct_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13019,7 +13341,7 @@ CREATE TABLE h_part_pkg_taxrate (
 );
 
 
-ALTER TABLE public.h_part_pkg_taxrate OWNER TO freeside;
+ALTER TABLE h_part_pkg_taxrate OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_taxrate_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13033,7 +13355,7 @@ CREATE SEQUENCE h_part_pkg_taxrate_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_taxrate_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_taxrate_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_taxrate_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13062,7 +13384,7 @@ CREATE TABLE h_part_pkg_usage (
 );
 
 
-ALTER TABLE public.h_part_pkg_usage OWNER TO freeside;
+ALTER TABLE h_part_pkg_usage OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_usage_class; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -13080,7 +13402,7 @@ CREATE TABLE h_part_pkg_usage_class (
 );
 
 
-ALTER TABLE public.h_part_pkg_usage_class OWNER TO freeside;
+ALTER TABLE h_part_pkg_usage_class OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_usage_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13094,7 +13416,7 @@ CREATE SEQUENCE h_part_pkg_usage_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_usage_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_usage_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_usage_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13115,7 +13437,7 @@ CREATE SEQUENCE h_part_pkg_usage_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_usage_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_usage_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_usage_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13144,7 +13466,7 @@ CREATE TABLE h_part_pkg_usageprice (
 );
 
 
-ALTER TABLE public.h_part_pkg_usageprice OWNER TO freeside;
+ALTER TABLE h_part_pkg_usageprice OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_usageprice_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13158,7 +13480,7 @@ CREATE SEQUENCE h_part_pkg_usageprice_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_usageprice_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_usageprice_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_usageprice_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13184,7 +13506,7 @@ CREATE TABLE h_part_pkg_vendor (
 );
 
 
-ALTER TABLE public.h_part_pkg_vendor OWNER TO freeside;
+ALTER TABLE h_part_pkg_vendor OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_vendor_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13198,7 +13520,7 @@ CREATE SEQUENCE h_part_pkg_vendor_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pkg_vendor_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pkg_vendor_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pkg_vendor_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13226,7 +13548,7 @@ CREATE TABLE h_part_pop_local (
 );
 
 
-ALTER TABLE public.h_part_pop_local OWNER TO freeside;
+ALTER TABLE h_part_pop_local OWNER TO freeside;
 
 --
 -- Name: h_part_pop_local_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13240,7 +13562,7 @@ CREATE SEQUENCE h_part_pop_local_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_pop_local_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_pop_local_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_pop_local_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13262,11 +13584,12 @@ CREATE TABLE h_part_referral (
     referral character varying(80) NOT NULL,
     disabled character(1),
     agentnum integer,
-    history_usernum integer
+    history_usernum integer,
+    title character varying(80)
 );
 
 
-ALTER TABLE public.h_part_referral OWNER TO freeside;
+ALTER TABLE h_part_referral OWNER TO freeside;
 
 --
 -- Name: h_part_referral_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13280,7 +13603,7 @@ CREATE SEQUENCE h_part_referral_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_referral_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_referral_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_referral_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13311,7 +13634,7 @@ CREATE TABLE h_part_svc (
 );
 
 
-ALTER TABLE public.h_part_svc OWNER TO freeside;
+ALTER TABLE h_part_svc OWNER TO freeside;
 
 --
 -- Name: h_part_svc_class; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -13329,7 +13652,7 @@ CREATE TABLE h_part_svc_class (
 );
 
 
-ALTER TABLE public.h_part_svc_class OWNER TO freeside;
+ALTER TABLE h_part_svc_class OWNER TO freeside;
 
 --
 -- Name: h_part_svc_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13343,7 +13666,7 @@ CREATE SEQUENCE h_part_svc_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_svc_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_svc_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_svc_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13372,7 +13695,7 @@ CREATE TABLE h_part_svc_column (
 );
 
 
-ALTER TABLE public.h_part_svc_column OWNER TO freeside;
+ALTER TABLE h_part_svc_column OWNER TO freeside;
 
 --
 -- Name: h_part_svc_column_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13386,7 +13709,7 @@ CREATE SEQUENCE h_part_svc_column_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_svc_column_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_svc_column_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_svc_column_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13407,7 +13730,7 @@ CREATE SEQUENCE h_part_svc_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_svc_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_svc_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_svc_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13435,7 +13758,7 @@ CREATE TABLE h_part_svc_link (
 );
 
 
-ALTER TABLE public.h_part_svc_link OWNER TO freeside;
+ALTER TABLE h_part_svc_link OWNER TO freeside;
 
 --
 -- Name: h_part_svc_link_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13449,7 +13772,7 @@ CREATE SEQUENCE h_part_svc_link_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_svc_link_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_svc_link_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_svc_link_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13474,7 +13797,7 @@ CREATE TABLE h_part_svc_router (
 );
 
 
-ALTER TABLE public.h_part_svc_router OWNER TO freeside;
+ALTER TABLE h_part_svc_router OWNER TO freeside;
 
 --
 -- Name: h_part_svc_router_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13488,7 +13811,7 @@ CREATE SEQUENCE h_part_svc_router_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_svc_router_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_svc_router_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_svc_router_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13516,7 +13839,7 @@ CREATE TABLE h_part_tag (
 );
 
 
-ALTER TABLE public.h_part_tag OWNER TO freeside;
+ALTER TABLE h_part_tag OWNER TO freeside;
 
 --
 -- Name: h_part_tag_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13530,7 +13853,7 @@ CREATE SEQUENCE h_part_tag_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_tag_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_tag_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_tag_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13557,7 +13880,7 @@ CREATE TABLE h_part_virtual_field (
 );
 
 
-ALTER TABLE public.h_part_virtual_field OWNER TO freeside;
+ALTER TABLE h_part_virtual_field OWNER TO freeside;
 
 --
 -- Name: h_part_virtual_field_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13571,7 +13894,7 @@ CREATE SEQUENCE h_part_virtual_field_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_part_virtual_field_historynum_seq OWNER TO freeside;
+ALTER TABLE h_part_virtual_field_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_part_virtual_field_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13581,6 +13904,52 @@ ALTER SEQUENCE h_part_virtual_field_historynum_seq OWNED BY h_part_virtual_field
 
 
 --
+-- Name: h_password_history; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE h_password_history (
+    historynum integer NOT NULL,
+    history_date integer,
+    history_user character varying(80),
+    history_usernum integer,
+    history_action character varying(80) NOT NULL,
+    passwordnum integer,
+    _password character varying(80),
+    encryption_method character varying(80),
+    created integer,
+    svc_acct__svcnum integer,
+    svc_dsl__svcnum integer,
+    svc_alarm__svcnum integer,
+    agent__agentnum integer,
+    contact__contactnum integer,
+    access_user__usernum integer
+);
+
+
+ALTER TABLE h_password_history OWNER TO freeside;
+
+--
+-- Name: h_password_history_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE h_password_history_historynum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE h_password_history_historynum_seq OWNER TO freeside;
+
+--
+-- Name: h_password_history_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE h_password_history_historynum_seq OWNED BY h_password_history.historynum;
+
+
+--
 -- Name: h_pay_batch; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
@@ -13601,7 +13970,7 @@ CREATE TABLE h_pay_batch (
 );
 
 
-ALTER TABLE public.h_pay_batch OWNER TO freeside;
+ALTER TABLE h_pay_batch OWNER TO freeside;
 
 --
 -- Name: h_pay_batch_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13615,7 +13984,7 @@ CREATE SEQUENCE h_pay_batch_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_pay_batch_historynum_seq OWNER TO freeside;
+ALTER TABLE h_pay_batch_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_pay_batch_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13646,7 +14015,7 @@ CREATE TABLE h_payment_gateway (
 );
 
 
-ALTER TABLE public.h_payment_gateway OWNER TO freeside;
+ALTER TABLE h_payment_gateway OWNER TO freeside;
 
 --
 -- Name: h_payment_gateway_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13660,7 +14029,7 @@ CREATE SEQUENCE h_payment_gateway_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_payment_gateway_historynum_seq OWNER TO freeside;
+ALTER TABLE h_payment_gateway_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_payment_gateway_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13686,7 +14055,7 @@ CREATE TABLE h_payment_gateway_option (
 );
 
 
-ALTER TABLE public.h_payment_gateway_option OWNER TO freeside;
+ALTER TABLE h_payment_gateway_option OWNER TO freeside;
 
 --
 -- Name: h_payment_gateway_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13700,7 +14069,7 @@ CREATE SEQUENCE h_payment_gateway_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_payment_gateway_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_payment_gateway_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_payment_gateway_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13726,7 +14095,7 @@ CREATE TABLE h_pbx_device (
 );
 
 
-ALTER TABLE public.h_pbx_device OWNER TO freeside;
+ALTER TABLE h_pbx_device OWNER TO freeside;
 
 --
 -- Name: h_pbx_device_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13740,7 +14109,7 @@ CREATE SEQUENCE h_pbx_device_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_pbx_device_historynum_seq OWNER TO freeside;
+ALTER TABLE h_pbx_device_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_pbx_device_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13768,7 +14137,7 @@ CREATE TABLE h_pbx_extension (
 );
 
 
-ALTER TABLE public.h_pbx_extension OWNER TO freeside;
+ALTER TABLE h_pbx_extension OWNER TO freeside;
 
 --
 -- Name: h_pbx_extension_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13782,7 +14151,7 @@ CREATE SEQUENCE h_pbx_extension_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_pbx_extension_historynum_seq OWNER TO freeside;
+ALTER TABLE h_pbx_extension_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_pbx_extension_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13818,7 +14187,7 @@ CREATE TABLE h_phone_avail (
 );
 
 
-ALTER TABLE public.h_phone_avail OWNER TO freeside;
+ALTER TABLE h_phone_avail OWNER TO freeside;
 
 --
 -- Name: h_phone_avail_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13832,7 +14201,7 @@ CREATE SEQUENCE h_phone_avail_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_phone_avail_historynum_seq OWNER TO freeside;
+ALTER TABLE h_phone_avail_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_phone_avail_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13858,7 +14227,7 @@ CREATE TABLE h_phone_device (
 );
 
 
-ALTER TABLE public.h_phone_device OWNER TO freeside;
+ALTER TABLE h_phone_device OWNER TO freeside;
 
 --
 -- Name: h_phone_device_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13872,7 +14241,7 @@ CREATE SEQUENCE h_phone_device_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_phone_device_historynum_seq OWNER TO freeside;
+ALTER TABLE h_phone_device_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_phone_device_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13897,7 +14266,7 @@ CREATE TABLE h_phone_type (
 );
 
 
-ALTER TABLE public.h_phone_type OWNER TO freeside;
+ALTER TABLE h_phone_type OWNER TO freeside;
 
 --
 -- Name: h_phone_type_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13911,7 +14280,7 @@ CREATE SEQUENCE h_phone_type_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_phone_type_historynum_seq OWNER TO freeside;
+ALTER TABLE h_phone_type_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_phone_type_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13939,7 +14308,7 @@ CREATE TABLE h_pkg_category (
 );
 
 
-ALTER TABLE public.h_pkg_category OWNER TO freeside;
+ALTER TABLE h_pkg_category OWNER TO freeside;
 
 --
 -- Name: h_pkg_category_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13953,7 +14322,7 @@ CREATE SEQUENCE h_pkg_category_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_pkg_category_historynum_seq OWNER TO freeside;
+ALTER TABLE h_pkg_category_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_pkg_category_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -13980,7 +14349,7 @@ CREATE TABLE h_pkg_class (
 );
 
 
-ALTER TABLE public.h_pkg_class OWNER TO freeside;
+ALTER TABLE h_pkg_class OWNER TO freeside;
 
 --
 -- Name: h_pkg_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -13994,7 +14363,7 @@ CREATE SEQUENCE h_pkg_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_pkg_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_pkg_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_pkg_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14019,7 +14388,7 @@ CREATE TABLE h_pkg_referral (
 );
 
 
-ALTER TABLE public.h_pkg_referral OWNER TO freeside;
+ALTER TABLE h_pkg_referral OWNER TO freeside;
 
 --
 -- Name: h_pkg_referral_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14033,7 +14402,7 @@ CREATE SEQUENCE h_pkg_referral_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_pkg_referral_historynum_seq OWNER TO freeside;
+ALTER TABLE h_pkg_referral_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_pkg_referral_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14063,7 +14432,7 @@ CREATE TABLE h_pkg_svc (
 );
 
 
-ALTER TABLE public.h_pkg_svc OWNER TO freeside;
+ALTER TABLE h_pkg_svc OWNER TO freeside;
 
 --
 -- Name: h_pkg_svc_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14077,7 +14446,7 @@ CREATE SEQUENCE h_pkg_svc_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_pkg_svc_historynum_seq OWNER TO freeside;
+ALTER TABLE h_pkg_svc_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_pkg_svc_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14103,7 +14472,7 @@ CREATE TABLE h_port (
 );
 
 
-ALTER TABLE public.h_port OWNER TO freeside;
+ALTER TABLE h_port OWNER TO freeside;
 
 --
 -- Name: h_port_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14117,7 +14486,7 @@ CREATE SEQUENCE h_port_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_port_historynum_seq OWNER TO freeside;
+ALTER TABLE h_port_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_port_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14147,7 +14516,7 @@ CREATE TABLE h_prepay_credit (
 );
 
 
-ALTER TABLE public.h_prepay_credit OWNER TO freeside;
+ALTER TABLE h_prepay_credit OWNER TO freeside;
 
 --
 -- Name: h_prepay_credit_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14161,7 +14530,7 @@ CREATE SEQUENCE h_prepay_credit_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_prepay_credit_historynum_seq OWNER TO freeside;
+ALTER TABLE h_prepay_credit_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_prepay_credit_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14188,7 +14557,7 @@ CREATE TABLE h_prospect_contact (
 );
 
 
-ALTER TABLE public.h_prospect_contact OWNER TO freeside;
+ALTER TABLE h_prospect_contact OWNER TO freeside;
 
 --
 -- Name: h_prospect_contact_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14202,7 +14571,7 @@ CREATE SEQUENCE h_prospect_contact_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_prospect_contact_historynum_seq OWNER TO freeside;
+ALTER TABLE h_prospect_contact_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_prospect_contact_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14232,7 +14601,7 @@ CREATE TABLE h_prospect_main (
 );
 
 
-ALTER TABLE public.h_prospect_main OWNER TO freeside;
+ALTER TABLE h_prospect_main OWNER TO freeside;
 
 --
 -- Name: h_prospect_main_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14246,7 +14615,7 @@ CREATE SEQUENCE h_prospect_main_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_prospect_main_historynum_seq OWNER TO freeside;
+ALTER TABLE h_prospect_main_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_prospect_main_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14276,7 +14645,7 @@ CREATE TABLE h_qual (
 );
 
 
-ALTER TABLE public.h_qual OWNER TO freeside;
+ALTER TABLE h_qual OWNER TO freeside;
 
 --
 -- Name: h_qual_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14290,7 +14659,7 @@ CREATE SEQUENCE h_qual_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_qual_historynum_seq OWNER TO freeside;
+ALTER TABLE h_qual_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_qual_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14316,7 +14685,7 @@ CREATE TABLE h_qual_option (
 );
 
 
-ALTER TABLE public.h_qual_option OWNER TO freeside;
+ALTER TABLE h_qual_option OWNER TO freeside;
 
 --
 -- Name: h_qual_option_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14330,7 +14699,7 @@ CREATE SEQUENCE h_qual_option_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_qual_option_historynum_seq OWNER TO freeside;
+ALTER TABLE h_qual_option_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_qual_option_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14357,11 +14726,12 @@ CREATE TABLE h_queue (
     custnum integer,
     secure character(1),
     priority integer,
-    history_usernum integer
+    history_usernum integer,
+    usernum integer
 );
 
 
-ALTER TABLE public.h_queue OWNER TO freeside;
+ALTER TABLE h_queue OWNER TO freeside;
 
 --
 -- Name: h_queue_arg; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -14380,7 +14750,7 @@ CREATE TABLE h_queue_arg (
 );
 
 
-ALTER TABLE public.h_queue_arg OWNER TO freeside;
+ALTER TABLE h_queue_arg OWNER TO freeside;
 
 --
 -- Name: h_queue_arg_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14394,7 +14764,7 @@ CREATE SEQUENCE h_queue_arg_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_queue_arg_historynum_seq OWNER TO freeside;
+ALTER TABLE h_queue_arg_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_queue_arg_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14419,7 +14789,7 @@ CREATE TABLE h_queue_depend (
 );
 
 
-ALTER TABLE public.h_queue_depend OWNER TO freeside;
+ALTER TABLE h_queue_depend OWNER TO freeside;
 
 --
 -- Name: h_queue_depend_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14433,7 +14803,7 @@ CREATE SEQUENCE h_queue_depend_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_queue_depend_historynum_seq OWNER TO freeside;
+ALTER TABLE h_queue_depend_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_queue_depend_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14454,7 +14824,7 @@ CREATE SEQUENCE h_queue_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_queue_historynum_seq OWNER TO freeside;
+ALTER TABLE h_queue_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_queue_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14483,7 +14853,7 @@ CREATE TABLE h_queue_stat (
 );
 
 
-ALTER TABLE public.h_queue_stat OWNER TO freeside;
+ALTER TABLE h_queue_stat OWNER TO freeside;
 
 --
 -- Name: h_queue_stat_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14497,7 +14867,7 @@ CREATE SEQUENCE h_queue_stat_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_queue_stat_historynum_seq OWNER TO freeside;
+ALTER TABLE h_queue_stat_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_queue_stat_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14521,11 +14891,13 @@ CREATE TABLE h_quotation (
     _date integer,
     disabled character(1),
     usernum integer,
-    history_usernum integer
+    history_usernum integer,
+    close_date integer,
+    confidence integer
 );
 
 
-ALTER TABLE public.h_quotation OWNER TO freeside;
+ALTER TABLE h_quotation OWNER TO freeside;
 
 --
 -- Name: h_quotation_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14539,7 +14911,7 @@ CREATE SEQUENCE h_quotation_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_quotation_historynum_seq OWNER TO freeside;
+ALTER TABLE h_quotation_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_quotation_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14571,7 +14943,48 @@ CREATE TABLE h_quotation_pkg (
 );
 
 
-ALTER TABLE public.h_quotation_pkg OWNER TO freeside;
+ALTER TABLE h_quotation_pkg OWNER TO freeside;
+
+--
+-- Name: h_quotation_pkg_detail; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE h_quotation_pkg_detail (
+    historynum integer NOT NULL,
+    history_date integer,
+    history_user character varying(80),
+    history_usernum integer,
+    history_action character varying(80) NOT NULL,
+    detailnum integer,
+    quotationpkgnum integer NOT NULL,
+    format character(1),
+    detail character varying(255) NOT NULL,
+    copy_on_order character(1)
+);
+
+
+ALTER TABLE h_quotation_pkg_detail OWNER TO freeside;
+
+--
+-- Name: h_quotation_pkg_detail_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE h_quotation_pkg_detail_historynum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE h_quotation_pkg_detail_historynum_seq OWNER TO freeside;
+
+--
+-- Name: h_quotation_pkg_detail_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE h_quotation_pkg_detail_historynum_seq OWNED BY h_quotation_pkg_detail.historynum;
+
 
 --
 -- Name: h_quotation_pkg_discount; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -14585,13 +14998,13 @@ CREATE TABLE h_quotation_pkg_discount (
     quotationpkgdiscountnum integer,
     quotationpkgnum integer NOT NULL,
     discountnum integer NOT NULL,
-    setup_amount numeric(10,2),
-    recur_amount numeric(10,2),
-    history_usernum integer
+    history_usernum integer,
+    setuprecur character varying(80),
+    amount numeric(10,2)
 );
 
 
-ALTER TABLE public.h_quotation_pkg_discount OWNER TO freeside;
+ALTER TABLE h_quotation_pkg_discount OWNER TO freeside;
 
 --
 -- Name: h_quotation_pkg_discount_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14605,7 +15018,7 @@ CREATE SEQUENCE h_quotation_pkg_discount_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_quotation_pkg_discount_historynum_seq OWNER TO freeside;
+ALTER TABLE h_quotation_pkg_discount_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_quotation_pkg_discount_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14626,7 +15039,7 @@ CREATE SEQUENCE h_quotation_pkg_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_quotation_pkg_historynum_seq OWNER TO freeside;
+ALTER TABLE h_quotation_pkg_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_quotation_pkg_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14653,7 +15066,7 @@ CREATE TABLE h_quotation_pkg_tax (
 );
 
 
-ALTER TABLE public.h_quotation_pkg_tax OWNER TO freeside;
+ALTER TABLE h_quotation_pkg_tax OWNER TO freeside;
 
 --
 -- Name: h_quotation_pkg_tax_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14667,7 +15080,7 @@ CREATE SEQUENCE h_quotation_pkg_tax_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_quotation_pkg_tax_historynum_seq OWNER TO freeside;
+ALTER TABLE h_quotation_pkg_tax_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_quotation_pkg_tax_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14695,7 +15108,7 @@ CREATE TABLE h_radius_attr (
 );
 
 
-ALTER TABLE public.h_radius_attr OWNER TO freeside;
+ALTER TABLE h_radius_attr OWNER TO freeside;
 
 --
 -- Name: h_radius_attr_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14709,7 +15122,7 @@ CREATE SEQUENCE h_radius_attr_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_radius_attr_historynum_seq OWNER TO freeside;
+ALTER TABLE h_radius_attr_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_radius_attr_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14737,7 +15150,7 @@ CREATE TABLE h_radius_group (
 );
 
 
-ALTER TABLE public.h_radius_group OWNER TO freeside;
+ALTER TABLE h_radius_group OWNER TO freeside;
 
 --
 -- Name: h_radius_group_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14751,7 +15164,7 @@ CREATE SEQUENCE h_radius_group_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_radius_group_historynum_seq OWNER TO freeside;
+ALTER TABLE h_radius_group_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_radius_group_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14777,7 +15190,7 @@ CREATE TABLE h_radius_usergroup (
 );
 
 
-ALTER TABLE public.h_radius_usergroup OWNER TO freeside;
+ALTER TABLE h_radius_usergroup OWNER TO freeside;
 
 --
 -- Name: h_radius_usergroup_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14791,7 +15204,7 @@ CREATE SEQUENCE h_radius_usergroup_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_radius_usergroup_historynum_seq OWNER TO freeside;
+ALTER TABLE h_radius_usergroup_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_radius_usergroup_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14817,7 +15230,7 @@ CREATE TABLE h_rate (
 );
 
 
-ALTER TABLE public.h_rate OWNER TO freeside;
+ALTER TABLE h_rate OWNER TO freeside;
 
 --
 -- Name: h_rate_center; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -14834,7 +15247,7 @@ CREATE TABLE h_rate_center (
 );
 
 
-ALTER TABLE public.h_rate_center OWNER TO freeside;
+ALTER TABLE h_rate_center OWNER TO freeside;
 
 --
 -- Name: h_rate_center_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14848,7 +15261,7 @@ CREATE SEQUENCE h_rate_center_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_rate_center_historynum_seq OWNER TO freeside;
+ALTER TABLE h_rate_center_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_rate_center_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14887,7 +15300,7 @@ CREATE TABLE h_rate_detail (
 );
 
 
-ALTER TABLE public.h_rate_detail OWNER TO freeside;
+ALTER TABLE h_rate_detail OWNER TO freeside;
 
 --
 -- Name: h_rate_detail_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14901,7 +15314,7 @@ CREATE SEQUENCE h_rate_detail_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_rate_detail_historynum_seq OWNER TO freeside;
+ALTER TABLE h_rate_detail_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_rate_detail_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14922,7 +15335,7 @@ CREATE SEQUENCE h_rate_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_rate_historynum_seq OWNER TO freeside;
+ALTER TABLE h_rate_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_rate_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14952,7 +15365,7 @@ CREATE TABLE h_rate_prefix (
 );
 
 
-ALTER TABLE public.h_rate_prefix OWNER TO freeside;
+ALTER TABLE h_rate_prefix OWNER TO freeside;
 
 --
 -- Name: h_rate_prefix_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -14966,7 +15379,7 @@ CREATE SEQUENCE h_rate_prefix_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_rate_prefix_historynum_seq OWNER TO freeside;
+ALTER TABLE h_rate_prefix_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_rate_prefix_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -14991,7 +15404,7 @@ CREATE TABLE h_rate_region (
 );
 
 
-ALTER TABLE public.h_rate_region OWNER TO freeside;
+ALTER TABLE h_rate_region OWNER TO freeside;
 
 --
 -- Name: h_rate_region_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15005,7 +15418,7 @@ CREATE SEQUENCE h_rate_region_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_rate_region_historynum_seq OWNER TO freeside;
+ALTER TABLE h_rate_region_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_rate_region_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15029,7 +15442,7 @@ CREATE TABLE h_rate_tier (
 );
 
 
-ALTER TABLE public.h_rate_tier OWNER TO freeside;
+ALTER TABLE h_rate_tier OWNER TO freeside;
 
 --
 -- Name: h_rate_tier_detail; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -15048,7 +15461,7 @@ CREATE TABLE h_rate_tier_detail (
 );
 
 
-ALTER TABLE public.h_rate_tier_detail OWNER TO freeside;
+ALTER TABLE h_rate_tier_detail OWNER TO freeside;
 
 --
 -- Name: h_rate_tier_detail_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15062,7 +15475,7 @@ CREATE SEQUENCE h_rate_tier_detail_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_rate_tier_detail_historynum_seq OWNER TO freeside;
+ALTER TABLE h_rate_tier_detail_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_rate_tier_detail_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15083,7 +15496,7 @@ CREATE SEQUENCE h_rate_tier_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_rate_tier_historynum_seq OWNER TO freeside;
+ALTER TABLE h_rate_tier_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_rate_tier_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15107,7 +15520,7 @@ CREATE TABLE h_rate_time (
 );
 
 
-ALTER TABLE public.h_rate_time OWNER TO freeside;
+ALTER TABLE h_rate_time OWNER TO freeside;
 
 --
 -- Name: h_rate_time_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15121,7 +15534,7 @@ CREATE SEQUENCE h_rate_time_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_rate_time_historynum_seq OWNER TO freeside;
+ALTER TABLE h_rate_time_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_rate_time_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15147,7 +15560,7 @@ CREATE TABLE h_rate_time_interval (
 );
 
 
-ALTER TABLE public.h_rate_time_interval OWNER TO freeside;
+ALTER TABLE h_rate_time_interval OWNER TO freeside;
 
 --
 -- Name: h_rate_time_interval_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15161,7 +15574,7 @@ CREATE SEQUENCE h_rate_time_interval_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_rate_time_interval_historynum_seq OWNER TO freeside;
+ALTER TABLE h_rate_time_interval_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_rate_time_interval_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15193,7 +15606,7 @@ CREATE TABLE h_reason (
 );
 
 
-ALTER TABLE public.h_reason OWNER TO freeside;
+ALTER TABLE h_reason OWNER TO freeside;
 
 --
 -- Name: h_reason_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15207,7 +15620,7 @@ CREATE SEQUENCE h_reason_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_reason_historynum_seq OWNER TO freeside;
+ALTER TABLE h_reason_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_reason_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15232,7 +15645,7 @@ CREATE TABLE h_reason_type (
 );
 
 
-ALTER TABLE public.h_reason_type OWNER TO freeside;
+ALTER TABLE h_reason_type OWNER TO freeside;
 
 --
 -- Name: h_reason_type_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15246,7 +15659,7 @@ CREATE SEQUENCE h_reason_type_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_reason_type_historynum_seq OWNER TO freeside;
+ALTER TABLE h_reason_type_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_reason_type_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15271,7 +15684,7 @@ CREATE TABLE h_reg_code (
 );
 
 
-ALTER TABLE public.h_reg_code OWNER TO freeside;
+ALTER TABLE h_reg_code OWNER TO freeside;
 
 --
 -- Name: h_reg_code_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15285,7 +15698,7 @@ CREATE SEQUENCE h_reg_code_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_reg_code_historynum_seq OWNER TO freeside;
+ALTER TABLE h_reg_code_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_reg_code_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15310,7 +15723,7 @@ CREATE TABLE h_reg_code_pkg (
 );
 
 
-ALTER TABLE public.h_reg_code_pkg OWNER TO freeside;
+ALTER TABLE h_reg_code_pkg OWNER TO freeside;
 
 --
 -- Name: h_reg_code_pkg_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15324,7 +15737,7 @@ CREATE SEQUENCE h_reg_code_pkg_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_reg_code_pkg_historynum_seq OWNER TO freeside;
+ALTER TABLE h_reg_code_pkg_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_reg_code_pkg_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15348,7 +15761,7 @@ CREATE TABLE h_registrar (
 );
 
 
-ALTER TABLE public.h_registrar OWNER TO freeside;
+ALTER TABLE h_registrar OWNER TO freeside;
 
 --
 -- Name: h_registrar_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15362,7 +15775,7 @@ CREATE SEQUENCE h_registrar_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_registrar_historynum_seq OWNER TO freeside;
+ALTER TABLE h_registrar_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_registrar_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15372,6 +15785,50 @@ ALTER SEQUENCE h_registrar_historynum_seq OWNED BY h_registrar.historynum;
 
 
 --
+-- Name: h_report_batch; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE h_report_batch (
+    historynum integer NOT NULL,
+    history_date integer,
+    history_user character varying(80),
+    history_usernum integer,
+    history_action character varying(80) NOT NULL,
+    reportbatchnum integer,
+    reportname character varying(255) NOT NULL,
+    agentnum integer,
+    send_date integer,
+    sdate integer,
+    edate integer,
+    usernum integer,
+    msgnum integer
+);
+
+
+ALTER TABLE h_report_batch OWNER TO freeside;
+
+--
+-- Name: h_report_batch_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE h_report_batch_historynum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE h_report_batch_historynum_seq OWNER TO freeside;
+
+--
+-- Name: h_report_batch_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE h_report_batch_historynum_seq OWNED BY h_report_batch.historynum;
+
+
+--
 -- Name: h_router; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
@@ -15389,7 +15846,7 @@ CREATE TABLE h_router (
 );
 
 
-ALTER TABLE public.h_router OWNER TO freeside;
+ALTER TABLE h_router OWNER TO freeside;
 
 --
 -- Name: h_router_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15403,7 +15860,7 @@ CREATE SEQUENCE h_router_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_router_historynum_seq OWNER TO freeside;
+ALTER TABLE h_router_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_router_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15430,7 +15887,7 @@ CREATE TABLE h_sales (
 );
 
 
-ALTER TABLE public.h_sales OWNER TO freeside;
+ALTER TABLE h_sales OWNER TO freeside;
 
 --
 -- Name: h_sales_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15444,7 +15901,7 @@ CREATE SEQUENCE h_sales_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_sales_historynum_seq OWNER TO freeside;
+ALTER TABLE h_sales_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_sales_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15471,7 +15928,7 @@ CREATE TABLE h_sales_pkg_class (
 );
 
 
-ALTER TABLE public.h_sales_pkg_class OWNER TO freeside;
+ALTER TABLE h_sales_pkg_class OWNER TO freeside;
 
 --
 -- Name: h_sales_pkg_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15485,7 +15942,7 @@ CREATE SEQUENCE h_sales_pkg_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_sales_pkg_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_sales_pkg_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_sales_pkg_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15513,7 +15970,7 @@ CREATE TABLE h_sched_avail (
 );
 
 
-ALTER TABLE public.h_sched_avail OWNER TO freeside;
+ALTER TABLE h_sched_avail OWNER TO freeside;
 
 --
 -- Name: h_sched_avail_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15527,7 +15984,7 @@ CREATE SEQUENCE h_sched_avail_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_sched_avail_historynum_seq OWNER TO freeside;
+ALTER TABLE h_sched_avail_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_sched_avail_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15552,7 +16009,7 @@ CREATE TABLE h_sched_item (
 );
 
 
-ALTER TABLE public.h_sched_item OWNER TO freeside;
+ALTER TABLE h_sched_item OWNER TO freeside;
 
 --
 -- Name: h_sched_item_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15566,7 +16023,7 @@ CREATE SEQUENCE h_sched_item_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_sched_item_historynum_seq OWNER TO freeside;
+ALTER TABLE h_sched_item_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_sched_item_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15592,7 +16049,7 @@ CREATE TABLE h_state (
 );
 
 
-ALTER TABLE public.h_state OWNER TO freeside;
+ALTER TABLE h_state OWNER TO freeside;
 
 --
 -- Name: h_state_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15606,7 +16063,7 @@ CREATE SEQUENCE h_state_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_state_historynum_seq OWNER TO freeside;
+ALTER TABLE h_state_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_state_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15677,7 +16134,7 @@ CREATE TABLE h_svc_acct (
 );
 
 
-ALTER TABLE public.h_svc_acct OWNER TO freeside;
+ALTER TABLE h_svc_acct OWNER TO freeside;
 
 --
 -- Name: h_svc_acct_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15691,7 +16148,7 @@ CREATE SEQUENCE h_svc_acct_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_acct_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_acct_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_acct_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15719,7 +16176,7 @@ CREATE TABLE h_svc_acct_pop (
 );
 
 
-ALTER TABLE public.h_svc_acct_pop OWNER TO freeside;
+ALTER TABLE h_svc_acct_pop OWNER TO freeside;
 
 --
 -- Name: h_svc_acct_pop_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15733,7 +16190,7 @@ CREATE SEQUENCE h_svc_acct_pop_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_acct_pop_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_acct_pop_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_acct_pop_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15765,7 +16222,7 @@ CREATE TABLE h_svc_alarm (
 );
 
 
-ALTER TABLE public.h_svc_alarm OWNER TO freeside;
+ALTER TABLE h_svc_alarm OWNER TO freeside;
 
 --
 -- Name: h_svc_alarm_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15779,7 +16236,7 @@ CREATE SEQUENCE h_svc_alarm_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_alarm_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_alarm_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_alarm_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15824,7 +16281,7 @@ CREATE TABLE h_svc_broadband (
 );
 
 
-ALTER TABLE public.h_svc_broadband OWNER TO freeside;
+ALTER TABLE h_svc_broadband OWNER TO freeside;
 
 --
 -- Name: h_svc_broadband_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15838,7 +16295,7 @@ CREATE SEQUENCE h_svc_broadband_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_broadband_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_broadband_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_broadband_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15866,7 +16323,7 @@ CREATE TABLE h_svc_cable (
 );
 
 
-ALTER TABLE public.h_svc_cable OWNER TO freeside;
+ALTER TABLE h_svc_cable OWNER TO freeside;
 
 --
 -- Name: h_svc_cable_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15880,7 +16337,7 @@ CREATE SEQUENCE h_svc_cable_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_cable_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_cable_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_cable_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15915,7 +16372,7 @@ CREATE TABLE h_svc_cert (
 );
 
 
-ALTER TABLE public.h_svc_cert OWNER TO freeside;
+ALTER TABLE h_svc_cert OWNER TO freeside;
 
 --
 -- Name: h_svc_cert_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15929,7 +16386,7 @@ CREATE SEQUENCE h_svc_cert_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_cert_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_cert_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_cert_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -15964,7 +16421,7 @@ CREATE TABLE h_svc_circuit (
 );
 
 
-ALTER TABLE public.h_svc_circuit OWNER TO freeside;
+ALTER TABLE h_svc_circuit OWNER TO freeside;
 
 --
 -- Name: h_svc_circuit_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -15978,7 +16435,7 @@ CREATE SEQUENCE h_svc_circuit_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_circuit_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_circuit_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_circuit_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16012,7 +16469,7 @@ CREATE TABLE h_svc_conferencing (
 );
 
 
-ALTER TABLE public.h_svc_conferencing OWNER TO freeside;
+ALTER TABLE h_svc_conferencing OWNER TO freeside;
 
 --
 -- Name: h_svc_conferencing_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16026,7 +16483,7 @@ CREATE SEQUENCE h_svc_conferencing_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_conferencing_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_conferencing_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_conferencing_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16052,7 +16509,7 @@ CREATE TABLE h_svc_dish (
 );
 
 
-ALTER TABLE public.h_svc_dish OWNER TO freeside;
+ALTER TABLE h_svc_dish OWNER TO freeside;
 
 --
 -- Name: h_svc_dish_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16066,7 +16523,7 @@ CREATE SEQUENCE h_svc_dish_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_dish_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_dish_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_dish_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16125,7 +16582,7 @@ CREATE TABLE h_svc_domain (
 );
 
 
-ALTER TABLE public.h_svc_domain OWNER TO freeside;
+ALTER TABLE h_svc_domain OWNER TO freeside;
 
 --
 -- Name: h_svc_domain_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16139,7 +16596,7 @@ CREATE SEQUENCE h_svc_domain_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_domain_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_domain_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_domain_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16187,7 +16644,7 @@ CREATE TABLE h_svc_dsl (
 );
 
 
-ALTER TABLE public.h_svc_dsl OWNER TO freeside;
+ALTER TABLE h_svc_dsl OWNER TO freeside;
 
 --
 -- Name: h_svc_dsl_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16201,7 +16658,7 @@ CREATE SEQUENCE h_svc_dsl_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_dsl_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_dsl_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_dsl_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16227,7 +16684,7 @@ CREATE TABLE h_svc_export_machine (
 );
 
 
-ALTER TABLE public.h_svc_export_machine OWNER TO freeside;
+ALTER TABLE h_svc_export_machine OWNER TO freeside;
 
 --
 -- Name: h_svc_export_machine_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16241,7 +16698,7 @@ CREATE SEQUENCE h_svc_export_machine_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_export_machine_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_export_machine_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_export_machine_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16266,7 +16723,7 @@ CREATE TABLE h_svc_external (
 );
 
 
-ALTER TABLE public.h_svc_external OWNER TO freeside;
+ALTER TABLE h_svc_external OWNER TO freeside;
 
 --
 -- Name: h_svc_external_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16280,7 +16737,7 @@ CREATE SEQUENCE h_svc_external_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_external_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_external_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_external_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16290,6 +16747,57 @@ ALTER SEQUENCE h_svc_external_historynum_seq OWNED BY h_svc_external.historynum;
 
 
 --
+-- Name: h_svc_fiber; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE h_svc_fiber (
+    historynum integer NOT NULL,
+    history_date integer,
+    history_user character varying(80),
+    history_usernum integer,
+    history_action character varying(80) NOT NULL,
+    svcnum integer NOT NULL,
+    oltnum integer,
+    shelf integer,
+    card integer,
+    olt_port integer,
+    ont_id integer,
+    ont_typenum integer,
+    ont_serial character varying(80),
+    ont_port character varying(16),
+    circuit_id character varying(80),
+    vlan integer,
+    signal numeric(10,2),
+    speed_up integer,
+    speed_down integer,
+    ont_install character varying(80)
+);
+
+
+ALTER TABLE h_svc_fiber OWNER TO freeside;
+
+--
+-- Name: h_svc_fiber_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE h_svc_fiber_historynum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE h_svc_fiber_historynum_seq OWNER TO freeside;
+
+--
+-- Name: h_svc_fiber_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE h_svc_fiber_historynum_seq OWNED BY h_svc_fiber.historynum;
+
+
+--
 -- Name: h_svc_forward; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
@@ -16307,7 +16815,7 @@ CREATE TABLE h_svc_forward (
 );
 
 
-ALTER TABLE public.h_svc_forward OWNER TO freeside;
+ALTER TABLE h_svc_forward OWNER TO freeside;
 
 --
 -- Name: h_svc_forward_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16321,7 +16829,7 @@ CREATE SEQUENCE h_svc_forward_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_forward_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_forward_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_forward_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16351,7 +16859,7 @@ CREATE TABLE h_svc_hardware (
 );
 
 
-ALTER TABLE public.h_svc_hardware OWNER TO freeside;
+ALTER TABLE h_svc_hardware OWNER TO freeside;
 
 --
 -- Name: h_svc_hardware_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16365,7 +16873,7 @@ CREATE SEQUENCE h_svc_hardware_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_hardware_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_hardware_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_hardware_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16395,7 +16903,7 @@ CREATE TABLE h_svc_mailinglist (
 );
 
 
-ALTER TABLE public.h_svc_mailinglist OWNER TO freeside;
+ALTER TABLE h_svc_mailinglist OWNER TO freeside;
 
 --
 -- Name: h_svc_mailinglist_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16409,7 +16917,7 @@ CREATE SEQUENCE h_svc_mailinglist_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_mailinglist_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_mailinglist_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_mailinglist_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16438,7 +16946,7 @@ CREATE TABLE h_svc_pbx (
 );
 
 
-ALTER TABLE public.h_svc_pbx OWNER TO freeside;
+ALTER TABLE h_svc_pbx OWNER TO freeside;
 
 --
 -- Name: h_svc_pbx_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16452,7 +16960,7 @@ CREATE SEQUENCE h_svc_pbx_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_pbx_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_pbx_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_pbx_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16497,11 +17005,12 @@ CREATE TABLE h_svc_phone (
     e911_type character(1),
     circuit_svcnum integer,
     sip_server character varying(80),
-    history_usernum integer
+    history_usernum integer,
+    forward_svcnum integer
 );
 
 
-ALTER TABLE public.h_svc_phone OWNER TO freeside;
+ALTER TABLE h_svc_phone OWNER TO freeside;
 
 --
 -- Name: h_svc_phone_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16515,7 +17024,7 @@ CREATE SEQUENCE h_svc_phone_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_phone_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_phone_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_phone_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16539,7 +17048,7 @@ CREATE TABLE h_svc_port (
 );
 
 
-ALTER TABLE public.h_svc_port OWNER TO freeside;
+ALTER TABLE h_svc_port OWNER TO freeside;
 
 --
 -- Name: h_svc_port_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16553,7 +17062,7 @@ CREATE SEQUENCE h_svc_port_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_port_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_port_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_port_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16579,7 +17088,7 @@ CREATE TABLE h_svc_video (
 );
 
 
-ALTER TABLE public.h_svc_video OWNER TO freeside;
+ALTER TABLE h_svc_video OWNER TO freeside;
 
 --
 -- Name: h_svc_video_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16593,7 +17102,7 @@ CREATE SEQUENCE h_svc_video_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_video_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_video_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_video_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16619,7 +17128,7 @@ CREATE TABLE h_svc_www (
 );
 
 
-ALTER TABLE public.h_svc_www OWNER TO freeside;
+ALTER TABLE h_svc_www OWNER TO freeside;
 
 --
 -- Name: h_svc_www_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16633,7 +17142,7 @@ CREATE SEQUENCE h_svc_www_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_svc_www_historynum_seq OWNER TO freeside;
+ALTER TABLE h_svc_www_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_svc_www_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16659,7 +17168,7 @@ CREATE TABLE h_tax_class (
 );
 
 
-ALTER TABLE public.h_tax_class OWNER TO freeside;
+ALTER TABLE h_tax_class OWNER TO freeside;
 
 --
 -- Name: h_tax_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16673,7 +17182,7 @@ CREATE SEQUENCE h_tax_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_tax_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_tax_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_tax_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16724,7 +17233,7 @@ CREATE TABLE h_tax_rate (
 );
 
 
-ALTER TABLE public.h_tax_rate OWNER TO freeside;
+ALTER TABLE h_tax_rate OWNER TO freeside;
 
 --
 -- Name: h_tax_rate_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16738,7 +17247,7 @@ CREATE SEQUENCE h_tax_rate_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_tax_rate_historynum_seq OWNER TO freeside;
+ALTER TABLE h_tax_rate_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_tax_rate_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16768,7 +17277,7 @@ CREATE TABLE h_tax_rate_location (
 );
 
 
-ALTER TABLE public.h_tax_rate_location OWNER TO freeside;
+ALTER TABLE h_tax_rate_location OWNER TO freeside;
 
 --
 -- Name: h_tax_rate_location_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16782,7 +17291,7 @@ CREATE SEQUENCE h_tax_rate_location_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_tax_rate_location_historynum_seq OWNER TO freeside;
+ALTER TABLE h_tax_rate_location_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_tax_rate_location_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16808,7 +17317,7 @@ CREATE TABLE h_tax_status (
 );
 
 
-ALTER TABLE public.h_tax_status OWNER TO freeside;
+ALTER TABLE h_tax_status OWNER TO freeside;
 
 --
 -- Name: h_tax_status_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16822,7 +17331,7 @@ CREATE SEQUENCE h_tax_status_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_tax_status_historynum_seq OWNER TO freeside;
+ALTER TABLE h_tax_status_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_tax_status_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16849,7 +17358,7 @@ CREATE TABLE h_template_content (
 );
 
 
-ALTER TABLE public.h_template_content OWNER TO freeside;
+ALTER TABLE h_template_content OWNER TO freeside;
 
 --
 -- Name: h_template_content_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16863,7 +17372,7 @@ CREATE SEQUENCE h_template_content_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_template_content_historynum_seq OWNER TO freeside;
+ALTER TABLE h_template_content_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_template_content_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16888,7 +17397,7 @@ CREATE TABLE h_torrus_srvderive (
 );
 
 
-ALTER TABLE public.h_torrus_srvderive OWNER TO freeside;
+ALTER TABLE h_torrus_srvderive OWNER TO freeside;
 
 --
 -- Name: h_torrus_srvderive_component; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -16906,7 +17415,7 @@ CREATE TABLE h_torrus_srvderive_component (
 );
 
 
-ALTER TABLE public.h_torrus_srvderive_component OWNER TO freeside;
+ALTER TABLE h_torrus_srvderive_component OWNER TO freeside;
 
 --
 -- Name: h_torrus_srvderive_component_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16920,7 +17429,7 @@ CREATE SEQUENCE h_torrus_srvderive_component_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_torrus_srvderive_component_historynum_seq OWNER TO freeside;
+ALTER TABLE h_torrus_srvderive_component_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_torrus_srvderive_component_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16941,7 +17450,7 @@ CREATE SEQUENCE h_torrus_srvderive_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_torrus_srvderive_historynum_seq OWNER TO freeside;
+ALTER TABLE h_torrus_srvderive_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_torrus_srvderive_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -16973,7 +17482,7 @@ CREATE TABLE h_tower (
 );
 
 
-ALTER TABLE public.h_tower OWNER TO freeside;
+ALTER TABLE h_tower OWNER TO freeside;
 
 --
 -- Name: h_tower_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -16987,7 +17496,7 @@ CREATE SEQUENCE h_tower_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_tower_historynum_seq OWNER TO freeside;
+ALTER TABLE h_tower_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_tower_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17014,11 +17523,19 @@ CREATE TABLE h_tower_sector (
     direction integer,
     width integer,
     sector_range numeric,
-    history_usernum integer
+    history_usernum integer,
+    downtilt numeric,
+    v_width integer,
+    margin numeric,
+    image bytea,
+    west numeric(10,7),
+    east numeric(10,7),
+    south numeric(10,7),
+    north numeric(10,7)
 );
 
 
-ALTER TABLE public.h_tower_sector OWNER TO freeside;
+ALTER TABLE h_tower_sector OWNER TO freeside;
 
 --
 -- Name: h_tower_sector_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17032,7 +17549,7 @@ CREATE SEQUENCE h_tower_sector_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_tower_sector_historynum_seq OWNER TO freeside;
+ALTER TABLE h_tower_sector_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_tower_sector_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17057,7 +17574,7 @@ CREATE TABLE h_type_pkgs (
 );
 
 
-ALTER TABLE public.h_type_pkgs OWNER TO freeside;
+ALTER TABLE h_type_pkgs OWNER TO freeside;
 
 --
 -- Name: h_type_pkgs_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17071,7 +17588,7 @@ CREATE SEQUENCE h_type_pkgs_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_type_pkgs_historynum_seq OWNER TO freeside;
+ALTER TABLE h_type_pkgs_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_type_pkgs_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17098,7 +17615,7 @@ CREATE TABLE h_upgrade_journal (
 );
 
 
-ALTER TABLE public.h_upgrade_journal OWNER TO freeside;
+ALTER TABLE h_upgrade_journal OWNER TO freeside;
 
 --
 -- Name: h_upgrade_journal_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17112,7 +17629,7 @@ CREATE SEQUENCE h_upgrade_journal_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_upgrade_journal_historynum_seq OWNER TO freeside;
+ALTER TABLE h_upgrade_journal_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_upgrade_journal_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17144,7 +17661,7 @@ CREATE TABLE h_upload_target (
 );
 
 
-ALTER TABLE public.h_upload_target OWNER TO freeside;
+ALTER TABLE h_upload_target OWNER TO freeside;
 
 --
 -- Name: h_upload_target_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17158,7 +17675,7 @@ CREATE SEQUENCE h_upload_target_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_upload_target_historynum_seq OWNER TO freeside;
+ALTER TABLE h_upload_target_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_upload_target_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17185,7 +17702,7 @@ CREATE TABLE h_usage_class (
 );
 
 
-ALTER TABLE public.h_usage_class OWNER TO freeside;
+ALTER TABLE h_usage_class OWNER TO freeside;
 
 --
 -- Name: h_usage_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17199,7 +17716,7 @@ CREATE SEQUENCE h_usage_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_usage_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_usage_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_usage_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17225,7 +17742,7 @@ CREATE TABLE h_vend_bill (
 );
 
 
-ALTER TABLE public.h_vend_bill OWNER TO freeside;
+ALTER TABLE h_vend_bill OWNER TO freeside;
 
 --
 -- Name: h_vend_bill_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17239,7 +17756,7 @@ CREATE SEQUENCE h_vend_bill_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_vend_bill_historynum_seq OWNER TO freeside;
+ALTER TABLE h_vend_bill_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_vend_bill_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17265,7 +17782,7 @@ CREATE TABLE h_vend_bill_pay (
 );
 
 
-ALTER TABLE public.h_vend_bill_pay OWNER TO freeside;
+ALTER TABLE h_vend_bill_pay OWNER TO freeside;
 
 --
 -- Name: h_vend_bill_pay_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17279,7 +17796,7 @@ CREATE SEQUENCE h_vend_bill_pay_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_vend_bill_pay_historynum_seq OWNER TO freeside;
+ALTER TABLE h_vend_bill_pay_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_vend_bill_pay_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17304,7 +17821,7 @@ CREATE TABLE h_vend_class (
 );
 
 
-ALTER TABLE public.h_vend_class OWNER TO freeside;
+ALTER TABLE h_vend_class OWNER TO freeside;
 
 --
 -- Name: h_vend_class_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17318,7 +17835,7 @@ CREATE SEQUENCE h_vend_class_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_vend_class_historynum_seq OWNER TO freeside;
+ALTER TABLE h_vend_class_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_vend_class_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17344,7 +17861,7 @@ CREATE TABLE h_vend_main (
 );
 
 
-ALTER TABLE public.h_vend_main OWNER TO freeside;
+ALTER TABLE h_vend_main OWNER TO freeside;
 
 --
 -- Name: h_vend_main_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17358,7 +17875,7 @@ CREATE SEQUENCE h_vend_main_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_vend_main_historynum_seq OWNER TO freeside;
+ALTER TABLE h_vend_main_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_vend_main_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17384,7 +17901,7 @@ CREATE TABLE h_vend_pay (
 );
 
 
-ALTER TABLE public.h_vend_pay OWNER TO freeside;
+ALTER TABLE h_vend_pay OWNER TO freeside;
 
 --
 -- Name: h_vend_pay_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17398,7 +17915,7 @@ CREATE SEQUENCE h_vend_pay_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_vend_pay_historynum_seq OWNER TO freeside;
+ALTER TABLE h_vend_pay_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_vend_pay_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17424,7 +17941,7 @@ CREATE TABLE h_virtual_field (
 );
 
 
-ALTER TABLE public.h_virtual_field OWNER TO freeside;
+ALTER TABLE h_virtual_field OWNER TO freeside;
 
 --
 -- Name: h_virtual_field_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17438,7 +17955,7 @@ CREATE SEQUENCE h_virtual_field_historynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.h_virtual_field_historynum_seq OWNER TO freeside;
+ALTER TABLE h_virtual_field_historynum_seq OWNER TO freeside;
 
 --
 -- Name: h_virtual_field_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17448,6 +17965,50 @@ ALTER SEQUENCE h_virtual_field_historynum_seq OWNED BY h_virtual_field.historynu
 
 
 --
+-- Name: h_webservice_log; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE h_webservice_log (
+    historynum integer NOT NULL,
+    history_date integer,
+    history_user character varying(80),
+    history_usernum integer,
+    history_action character varying(80) NOT NULL,
+    webservicelognum integer,
+    svcnum integer,
+    custnum integer NOT NULL,
+    method character varying(80) NOT NULL,
+    quantity integer NOT NULL,
+    _date integer,
+    status character varying(80),
+    rated_price numeric(10,2)
+);
+
+
+ALTER TABLE h_webservice_log OWNER TO freeside;
+
+--
+-- Name: h_webservice_log_historynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE h_webservice_log_historynum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE h_webservice_log_historynum_seq OWNER TO freeside;
+
+--
+-- Name: h_webservice_log_historynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE h_webservice_log_historynum_seq OWNED BY h_webservice_log.historynum;
+
+
+--
 -- Name: hardware_class; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
 --
 
@@ -17457,7 +18018,7 @@ CREATE TABLE hardware_class (
 );
 
 
-ALTER TABLE public.hardware_class OWNER TO freeside;
+ALTER TABLE hardware_class OWNER TO freeside;
 
 --
 -- Name: hardware_class_classnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17471,7 +18032,7 @@ CREATE SEQUENCE hardware_class_classnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.hardware_class_classnum_seq OWNER TO freeside;
+ALTER TABLE hardware_class_classnum_seq OWNER TO freeside;
 
 --
 -- Name: hardware_class_classnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17491,7 +18052,7 @@ CREATE TABLE hardware_status (
 );
 
 
-ALTER TABLE public.hardware_status OWNER TO freeside;
+ALTER TABLE hardware_status OWNER TO freeside;
 
 --
 -- Name: hardware_status_statusnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17505,7 +18066,7 @@ CREATE SEQUENCE hardware_status_statusnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.hardware_status_statusnum_seq OWNER TO freeside;
+ALTER TABLE hardware_status_statusnum_seq OWNER TO freeside;
 
 --
 -- Name: hardware_status_statusnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17526,7 +18087,7 @@ CREATE TABLE hardware_type (
 );
 
 
-ALTER TABLE public.hardware_type OWNER TO freeside;
+ALTER TABLE hardware_type OWNER TO freeside;
 
 --
 -- Name: hardware_type_typenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17540,7 +18101,7 @@ CREATE SEQUENCE hardware_type_typenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.hardware_type_typenum_seq OWNER TO freeside;
+ALTER TABLE hardware_type_typenum_seq OWNER TO freeside;
 
 --
 -- Name: hardware_type_typenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17559,7 +18120,7 @@ CREATE TABLE inventory_class (
 );
 
 
-ALTER TABLE public.inventory_class OWNER TO freeside;
+ALTER TABLE inventory_class OWNER TO freeside;
 
 --
 -- Name: inventory_class_classnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17573,7 +18134,7 @@ CREATE SEQUENCE inventory_class_classnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.inventory_class_classnum_seq OWNER TO freeside;
+ALTER TABLE inventory_class_classnum_seq OWNER TO freeside;
 
 --
 -- Name: inventory_class_classnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17596,7 +18157,7 @@ CREATE TABLE inventory_item (
 );
 
 
-ALTER TABLE public.inventory_item OWNER TO freeside;
+ALTER TABLE inventory_item OWNER TO freeside;
 
 --
 -- Name: inventory_item_itemnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17610,7 +18171,7 @@ CREATE SEQUENCE inventory_item_itemnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.inventory_item_itemnum_seq OWNER TO freeside;
+ALTER TABLE inventory_item_itemnum_seq OWNER TO freeside;
 
 --
 -- Name: inventory_item_itemnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17645,7 +18206,7 @@ CREATE TABLE invoice_conf (
 );
 
 
-ALTER TABLE public.invoice_conf OWNER TO freeside;
+ALTER TABLE invoice_conf OWNER TO freeside;
 
 --
 -- Name: invoice_conf_confnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17659,7 +18220,7 @@ CREATE SEQUENCE invoice_conf_confnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.invoice_conf_confnum_seq OWNER TO freeside;
+ALTER TABLE invoice_conf_confnum_seq OWNER TO freeside;
 
 --
 -- Name: invoice_conf_confnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17679,7 +18240,7 @@ CREATE TABLE invoice_mode (
 );
 
 
-ALTER TABLE public.invoice_mode OWNER TO freeside;
+ALTER TABLE invoice_mode OWNER TO freeside;
 
 --
 -- Name: invoice_mode_modenum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17693,7 +18254,7 @@ CREATE SEQUENCE invoice_mode_modenum_seq
     CACHE 1;
 
 
-ALTER TABLE public.invoice_mode_modenum_seq OWNER TO freeside;
+ALTER TABLE invoice_mode_modenum_seq OWNER TO freeside;
 
 --
 -- Name: invoice_mode_modenum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17713,7 +18274,7 @@ CREATE TABLE lata (
 );
 
 
-ALTER TABLE public.lata OWNER TO freeside;
+ALTER TABLE lata OWNER TO freeside;
 
 --
 -- Name: legacy_cust_bill; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -17732,7 +18293,7 @@ CREATE TABLE legacy_cust_bill (
 );
 
 
-ALTER TABLE public.legacy_cust_bill OWNER TO freeside;
+ALTER TABLE legacy_cust_bill OWNER TO freeside;
 
 --
 -- Name: legacy_cust_bill_legacyinvnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17746,7 +18307,7 @@ CREATE SEQUENCE legacy_cust_bill_legacyinvnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.legacy_cust_bill_legacyinvnum_seq OWNER TO freeside;
+ALTER TABLE legacy_cust_bill_legacyinvnum_seq OWNER TO freeside;
 
 --
 -- Name: legacy_cust_bill_legacyinvnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17771,7 +18332,7 @@ CREATE TABLE legacy_cust_history (
 );
 
 
-ALTER TABLE public.legacy_cust_history OWNER TO freeside;
+ALTER TABLE legacy_cust_history OWNER TO freeside;
 
 --
 -- Name: legacy_cust_history_legacyhistorynum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17785,7 +18346,7 @@ CREATE SEQUENCE legacy_cust_history_legacyhistorynum_seq
     CACHE 1;
 
 
-ALTER TABLE public.legacy_cust_history_legacyhistorynum_seq OWNER TO freeside;
+ALTER TABLE legacy_cust_history_legacyhistorynum_seq OWNER TO freeside;
 
 --
 -- Name: legacy_cust_history_legacyhistorynum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17806,7 +18367,7 @@ CREATE SEQUENCE links_id_seq
     CACHE 1;
 
 
-ALTER TABLE public.links_id_seq OWNER TO freeside;
+ALTER TABLE links_id_seq OWNER TO freeside;
 
 --
 -- Name: links; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -17826,7 +18387,7 @@ CREATE TABLE links (
 );
 
 
-ALTER TABLE public.links OWNER TO freeside;
+ALTER TABLE links OWNER TO freeside;
 
 --
 -- Name: log; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -17843,7 +18404,7 @@ CREATE TABLE log (
 );
 
 
-ALTER TABLE public.log OWNER TO freeside;
+ALTER TABLE log OWNER TO freeside;
 
 --
 -- Name: log_context; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -17856,7 +18417,7 @@ CREATE TABLE log_context (
 );
 
 
-ALTER TABLE public.log_context OWNER TO freeside;
+ALTER TABLE log_context OWNER TO freeside;
 
 --
 -- Name: log_context_logcontextnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17870,7 +18431,7 @@ CREATE SEQUENCE log_context_logcontextnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.log_context_logcontextnum_seq OWNER TO freeside;
+ALTER TABLE log_context_logcontextnum_seq OWNER TO freeside;
 
 --
 -- Name: log_context_logcontextnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17880,6 +18441,42 @@ ALTER SEQUENCE log_context_logcontextnum_seq OWNED BY log_context.logcontextnum;
 
 
 --
+-- Name: log_email; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE log_email (
+    logemailnum integer NOT NULL,
+    context character varying(80),
+    min_level integer,
+    msgnum integer NOT NULL,
+    to_addr character varying(255)
+);
+
+
+ALTER TABLE log_email OWNER TO freeside;
+
+--
+-- Name: log_email_logemailnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE log_email_logemailnum_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE log_email_logemailnum_seq OWNER TO freeside;
+
+--
+-- Name: log_email_logemailnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE log_email_logemailnum_seq OWNED BY log_email.logemailnum;
+
+
+--
 -- Name: log_lognum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
 --
 
@@ -17891,7 +18488,7 @@ CREATE SEQUENCE log_lognum_seq
     CACHE 1;
 
 
-ALTER TABLE public.log_lognum_seq OWNER TO freeside;
+ALTER TABLE log_lognum_seq OWNER TO freeside;
 
 --
 -- Name: log_lognum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17910,7 +18507,7 @@ CREATE TABLE mailinglist (
 );
 
 
-ALTER TABLE public.mailinglist OWNER TO freeside;
+ALTER TABLE mailinglist OWNER TO freeside;
 
 --
 -- Name: mailinglist_listnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17924,7 +18521,7 @@ CREATE SEQUENCE mailinglist_listnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.mailinglist_listnum_seq OWNER TO freeside;
+ALTER TABLE mailinglist_listnum_seq OWNER TO freeside;
 
 --
 -- Name: mailinglist_listnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17946,7 +18543,7 @@ CREATE TABLE mailinglistmember (
 );
 
 
-ALTER TABLE public.mailinglistmember OWNER TO freeside;
+ALTER TABLE mailinglistmember OWNER TO freeside;
 
 --
 -- Name: mailinglistmember_membernum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -17960,7 +18557,7 @@ CREATE SEQUENCE mailinglistmember_membernum_seq
     CACHE 1;
 
 
-ALTER TABLE public.mailinglistmember_membernum_seq OWNER TO freeside;
+ALTER TABLE mailinglistmember_membernum_seq OWNER TO freeside;
 
 --
 -- Name: mailinglistmember_membernum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -17979,7 +18576,7 @@ CREATE TABLE msa (
 );
 
 
-ALTER TABLE public.msa OWNER TO freeside;
+ALTER TABLE msa OWNER TO freeside;
 
 --
 -- Name: msg_template; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
@@ -17994,11 +18591,50 @@ CREATE TABLE msg_template (
     body bytea,
     disabled character(1),
     from_addr character varying(255),
-    bcc_addr character varying(255)
+    bcc_addr character varying(255),
+    msgclass character varying(16)
 );
 
 
-ALTER TABLE public.msg_template OWNER TO freeside;
+ALTER TABLE msg_template OWNER TO freeside;
+
+--
+-- Name: msg_template_http; Type: TABLE; Schema: public; Owner: freeside; Tablespace: 
+--
+
+CREATE TABLE msg_template_http (
+    num integer NOT NULL,
+    msgnum integer NOT NULL,
+    prepare_url character varying(255),
+    send_url character varying(255),
+    username character varying(80),
+    password character varying(80),
+    content text
+);
+
+
+ALTER TABLE msg_template_http OWNER TO freeside;
+
+--
+-- Name: msg_template_http_num_seq; Type: SEQUENCE; Schema: public; Owner: freeside
+--
+
+CREATE SEQUENCE msg_template_http_num_seq
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE msg_template_http_num_seq OWNER TO freeside;
+
+--
+-- Name: msg_template_http_num_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
+--
+
+ALTER SEQUENCE msg_template_http_num_seq OWNED BY msg_template_http.num;
+
 
 --
 -- Name: msg_template_msgnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -18012,7 +18648,7 @@ CREATE SEQUENCE msg_template_msgnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.msg_template_msgnum_seq OWNER TO freeside;
+ALTER TABLE msg_template_msgnum_seq OWNER TO freeside;
 
 --
 -- Name: msg_template_msgnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -18033,7 +18669,7 @@ CREATE TABLE msgcat (
 );
 
 
-ALTER TABLE public.msgcat OWNER TO freeside;
+ALTER TABLE msgcat OWNER TO freeside;
 
 --
 -- Name: msgcat_msgnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -18047,7 +18683,7 @@ CREATE SEQUENCE msgcat_msgnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.msgcat_msgnum_seq OWNER TO freeside;
+ALTER TABLE msgcat_msgnum_seq OWNER TO freeside;
 
 --
 -- Name: msgcat_msgnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -18074,7 +18710,7 @@ CREATE TABLE nas (
 );
 
 
-ALTER TABLE public.nas OWNER TO freeside;
+ALTER TABLE nas OWNER TO freeside;
 
 --
 -- Name: nas_nasnum_seq; Type: SEQUENCE; Schema: public; Owner: freeside
@@ -18088,7 +18724,7 @@ CREATE SEQUENCE nas_nasnum_seq
     CACHE 1;
 
 
-ALTER TABLE public.nas_nasnum_seq OWNER TO freeside;
+ALTER TABLE nas_nasnum_seq OWNER TO freeside;
 
 --
 -- Name: nas_nasnum_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: freeside
@@ -18113,7 +18749,7 @@ CREATE TABLE objectclasses (
 );
 
 
-ALTER TABLE public.objectclasses OWNER TO freeside;
+ALTER TABLE objectclasses OWNER TO freeside;
 
 --
 -- Name: objectcl