--
-- Host: localhost    Database: myprospe_aclp1
-- ------------------------------------------------------


--
-- Current Database: `myprospe_aclp1`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `myprospe_aclp1` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `myprospe_aclp1`;

--
-- Table structure for table `access_ips`
--

CREATE TABLE `access_ips` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip_address` varchar(25) NOT NULL,
  `admin_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `access_ips`
--


--
-- Table structure for table `addons`
--

CREATE TABLE `addons` (
  `addon_id` int(11) NOT NULL AUTO_INCREMENT,
  `addon_name` varchar(255) NOT NULL,
  `addon_setup` decimal(16,6) NOT NULL DEFAULT '0.000000',
  PRIMARY KEY (`addon_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `addons`
--


--
-- Table structure for table `announcements`
--

CREATE TABLE `announcements` (
  `ann_id` int(11) NOT NULL AUTO_INCREMENT,
  `an_title` varchar(255) DEFAULT NULL,
  `an_body` longtext,
  PRIMARY KEY (`ann_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `announcements`
--


--
-- Table structure for table `billing_cycles`
--

CREATE TABLE `billing_cycles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cycle_month` int(3) NOT NULL,
  `cycle_name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `cycle_month` (`cycle_month`,`cycle_name`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `billing_cycles`
--

INSERT INTO `billing_cycles` VALUES (1,1,'monthly'),(2,3,'quarterly'),(3,6,'half_yearly'),(4,12,'yearly');

--
-- Table structure for table `billings_products`
--

CREATE TABLE `billings_products` (
  `billing_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `product_table` enum('addons','products','subdomains') NOT NULL DEFAULT 'products',
  `amount` decimal(16,6) NOT NULL DEFAULT '0.000000'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `billings_products`
--

INSERT INTO `billings_products` VALUES (4,1,'products',228.000000),(3,1,'products',114.000000),(2,1,'products',76.000000),(1,1,'products',19.000000),(1,2,'products',0.000000),(2,2,'products',0.000000),(3,2,'products',0.000000),(4,2,'products',0.000000),(4,1,'subdomains',19.000000),(3,1,'subdomains',0.000000),(2,1,'subdomains',0.000000),(1,1,'subdomains',0.000000),(4,2,'subdomains',8.000000),(3,2,'subdomains',0.000000),(2,2,'subdomains',0.000000),(1,2,'subdomains',0.000000);

--
-- Table structure for table `coupons`
--

CREATE TABLE `coupons` (
  `coupon_id` int(11) NOT NULL AUTO_INCREMENT,
  `coupon_name` varchar(255) NOT NULL,
  `coupon_discount` int(3) NOT NULL,
  `coupon_domain` int(1) NOT NULL,
  `coupon_addons` int(1) NOT NULL,
  `coupon_valid` date NOT NULL,
  `customer_use` enum('0','1','2') NOT NULL,
  `repeated` enum('0','1') NOT NULL,
  PRIMARY KEY (`coupon_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `coupons`
--


--
-- Table structure for table `currencies`
--

CREATE TABLE `currencies` (
  `curr_id` int(11) NOT NULL AUTO_INCREMENT,
  `curr_symbol` varchar(25) NOT NULL,
  `curr_name` varchar(25) NOT NULL,
  `curr_factor` decimal(16,6) NOT NULL,
  `curr_decimal_number` int(3) NOT NULL DEFAULT '2',
  `curr_decimal_str` varchar(15) NOT NULL DEFAULT '.',
  `curr_thousand_str` varchar(15) NOT NULL DEFAULT ',',
  `curr_symbol_prefixed` enum('0','1') NOT NULL DEFAULT '1',
  PRIMARY KEY (`curr_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `currencies`
--


--
-- Table structure for table `custom_scripts`
--

CREATE TABLE `custom_scripts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `file_name` varchar(255) NOT NULL,
  `post_variables` text NOT NULL,
  `run_schedule` enum('A_AC','A_PP','W_B','A_B','W_L','MANUAL','INACTIVE') NOT NULL DEFAULT 'INACTIVE',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `custom_scripts`
--


--
-- Table structure for table `customers_customfields`
--

CREATE TABLE `customers_customfields` (
  `customer_id` int(11) NOT NULL,
  `field_id` int(11) NOT NULL,
  `field_value` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `customers_customfields`
--


--
-- Table structure for table `customers_orders`
--

CREATE TABLE `customers_orders` (
  `customer_id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `customers_orders`
--


--
-- Table structure for table `customfields`
--

CREATE TABLE `customfields` (
  `field_id` int(11) NOT NULL AUTO_INCREMENT,
  `field_name` varchar(255) NOT NULL,
  `field_type` enum('text','select') NOT NULL,
  `field_value` varchar(255) NOT NULL,
  `field_optional` enum('0','1') NOT NULL,
  `field_active` enum('1','0') NOT NULL,
  PRIMARY KEY (`field_id`),
  UNIQUE KEY `field_name` (`field_name`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `customfields`
--

INSERT INTO `customfields` VALUES (1,'name','text','','0','1'),(2,'address','text','','0','1'),(3,'city','text','','0','1'),(4,'zip','text','','0','1'),(5,'country','text','','0','1'),(6,'state','text','','0','1'),(7,'telephone','text','','0','1'),(8,'vat_no','text','','1','1');

--
-- Table structure for table `custompages`
--

CREATE TABLE `custompages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `metatags` text NOT NULL,
  `content` text NOT NULL,
  `require_customer_login` enum('0','1') NOT NULL,
  `display_side_links` enum('0','1') NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `custompages`
--


--
-- Table structure for table `disc_token_codes`
--

CREATE TABLE `disc_token_codes` (
  `disc_token_code` varchar(255) NOT NULL,
  `disc_token_id` int(11) NOT NULL DEFAULT '0',
  `disposable` int(1) NOT NULL,
  PRIMARY KEY (`disc_token_code`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `disc_token_codes`
--


--
-- Table structure for table `disc_tokens`
--

CREATE TABLE `disc_tokens` (
  `disc_token_id` int(11) NOT NULL AUTO_INCREMENT,
  `disc_token_name` varchar(255) NOT NULL,
  `disc_token_discount` int(3) NOT NULL DEFAULT '0',
  `disc_token_domain` int(1) NOT NULL DEFAULT '0',
  `disc_token_addons` int(1) NOT NULL DEFAULT '0',
  `disc_token_valid` date NOT NULL DEFAULT '0000-00-00',
  PRIMARY KEY (`disc_token_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `disc_tokens`
--


--
-- Table structure for table `dom_reg_logs`
--

CREATE TABLE `dom_reg_logs` (
  `log_time` datetime NOT NULL,
  `sub_id` int(11) NOT NULL DEFAULT '0',
  `domain` varchar(255) NOT NULL DEFAULT '',
  `log_result` text NOT NULL,
  PRIMARY KEY (`log_time`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `dom_reg_logs`
--


--
-- Table structure for table `emails`
--

CREATE TABLE `emails` (
  `email_id` int(11) NOT NULL AUTO_INCREMENT,
  `email_text` longtext NOT NULL,
  `email_subject` text NOT NULL,
  PRIMARY KEY (`email_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `emails`
--

INSERT INTO `emails` VALUES (1,'<lang>Hello</lang> <&&>client_name<&&><br><br>\n\n<lang>mail_body</lang><br><br>\n\n<lang>regards</lang><br><br>\n\n<&&>company_name<&&><br><br>\n\n<hr><br>\n\n<lang>Order_By</lang>:<br>\n<lang>Name</lang>: <&&>client_name<&&><br>\n<lang>Email</lang>: <&&>client_email<&&><br><br>\n\n<lang>Address</lang>: <br>\n<&&>client_name<&&><br>\n<&&>client_address<&&><br>\n<&&>client_city<&&><br>\n<&&>client_state<&&> <&&>client_zip<&&><br>\n<&&>client_country<&&><br><br>\n\n<lang>Order_Details</lang>:<br>\n<lang>Order_no</lang>: <&&>order_no<&&><br>\n<lang>Plan</lang>: <&&>plan_name<&&><br>\n<lang>domain_name</lang>: <&&>domain_name<&&><br>\n<lang>Date</lang>: <&&>sign_date<&&><br><br>\n<&&>login_for<&&><br>\n<lang>Username</lang>: <&&>username<&&><br>\n<lang>Password</lang>: <&&>password<&&><br><br>\n\n<&&>login_link<&&><br><br>\n\n<hr><br>',''),(2,'\n<b><lang>Invoice_from</lang></b> :<br>\n<&&>company_name<&&><br>\n<&&>company_email<&&><br>\n<&&>company_address<&&><br><br>\n\n<b><lang>To</lang></b> :<br>\n<&&>client_name<&&><br>\n<&&>client_address<&&><br>\n<&&>client_city<&&><br>\n<&&>client_state<&&> <&&>client_zip<&&><br>\n<&&>client_country<&&><br><br>\n\n<b><lang>Invoice_No</lang></b> : <&&>invoice_no<&&><br>\n<b><lang>Date</lang></b> :  <&&>due_date<&&><br>\n<b><lang>Description</lang></b> : <&&>description<&&><br>\n<hr>\n<start_table>\n<if_domain>\n<tr>\n<td align=left width=60%><&&>domain_name<&&></td>\n<td align=right><&&>domain_amount<&&></td></tr>\n</if_domain>\n<if_setup>\n<tr>\n<td align=left><lang>setup_fee</lang></td>\n<td align=right><&&>setup_amount<&&></td>\n</tr>\n</if_setup>\n<if_cycle>\n<tr>\n<td align=left><&&>cycle<&&></td>\n<td align=right><&&>cycle_amount<&&></td>\n</tr>\n</if_cycle>\n<if_order_addon>\n<tr>\n<td align=left><&&>order_addon<&&></td>\n<td align=right><&&>order_addon_amount<&&></td>\n</tr>\n</if_order_addon>\n<if_discount>\n<tr>\n<td align=left><lang>discount</lang></td>\n<td align=right><&&>discount_amount<&&></td>\n</tr>\n</if_discount>\n<if_debit_credit>\n<tr>\n<td align=left><&&>debit_credit<&&>(<&&>debit_credit_reason<&&>)</td>\n<td align=right><&&>debit_credit_amount<&&></td>\n</tr>\n</if_debit_credit>\n<if_prorate>\n<tr>\n<td align=left><&&>prorate_desc<&&></td>\n<td align=right><&&>prorate_amount<&&></td>\n</tr>\n</if_prorate>\n<end_table>\n<hr>\n<start_table>\n<tr>\n<td align=left width=60%><lang>subtotal</lang></td>\n<td align=right><&&>net_amount<&&></td>\n</tr>\n<if_tax>\n<tr>\n<td align=left><&&>tax_name<&&></td>\n<td align=right><&&>tax_amount<&&></td>\n</tr>\n</if_tax>\n<tr>\n<td align=left><lang>total_due</lang></td>\n<td align=right><&&>total_amount<&&></td>\n</tr>\n<tr>\n<td align=right colspan=2>\n<&&>additional_currency<&&>\n</td>\n</tr>\n<end_table>\n<hr>\n<&&>pay_text<&&>\n<hr>\n<mail_footer><br><br>\n<&&>payment_link<&&><br><br>\n\n<lang>regards</lang><br>\n\n<&&>company_name<&&><br>\n</mail_footer>',''),(3,'<lang>Dear</lang> <&&>client_name<&&>,<br><br> <lang>Thanks_for_payment</lang> <&&>invoice_no<&&><br><br> <lang>Date</lang>: <&&>payment_date<&&><br> <lang>Order_no</lang>: <&&>order_no<&&><br> <lang>Amount_paid</lang>: <&&>amount_paid<&&><br> <b><lang>Description</lang></b>:<br> <&&>description<&&><br><br> <lang>regards</lang><br> <&&>company_name<&&><br>','');

--
-- Table structure for table `faqgroups`
--

CREATE TABLE `faqgroups` (
  `faqgroup_id` int(11) NOT NULL AUTO_INCREMENT,
  `faqgroup_name` varchar(255) NOT NULL,
  `faqgroup_desc` text NOT NULL,
  PRIMARY KEY (`faqgroup_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `faqgroups`
--


--
-- Table structure for table `faqs`
--

CREATE TABLE `faqs` (
  `faq_id` int(11) NOT NULL AUTO_INCREMENT,
  `faqgroup_id` int(11) NOT NULL,
  `questions` varchar(255) DEFAULT NULL,
  `answers` longtext,
  PRIMARY KEY (`faq_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `faqs`
--


--
-- Table structure for table `geoip`
--

CREATE TABLE `geoip` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `csv_file` varchar(255) NOT NULL,
  `updated_on` datetime NOT NULL,
  `feed` enum('1','2','3') NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `geoip`
--


--
-- Table structure for table `geoip_db`
--

CREATE TABLE `geoip_db` (
  `IP_FROM` double NOT NULL,
  `IP_TO` double NOT NULL,
  `COUNTRY_CODE2` varchar(3) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `geoip_db`
--


--
-- Table structure for table `groups`
--

CREATE TABLE `groups` (
  `group_id` int(11) NOT NULL AUTO_INCREMENT,
  `group_name` varchar(255) NOT NULL,
  `group_desc` text NOT NULL,
  `group_url` varchar(255) NOT NULL,
  `group_require_domain` enum('1','0') NOT NULL DEFAULT '1',
  `group_active` enum('1','0') NOT NULL DEFAULT '1',
  PRIMARY KEY (`group_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `groups`
--

INSERT INTO `groups` VALUES (1,'Website Hosting','Hosting Packages that we offer.','1','0','1');

--
-- Table structure for table `groups_products`
--

CREATE TABLE `groups_products` (
  `group_id` int(11) NOT NULL DEFAULT '0',
  `product_id` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `groups_products`
--

INSERT INTO `groups_products` VALUES (1,1);

--
-- Table structure for table `invoices`
--

CREATE TABLE `invoices` (
  `debit_credit` varchar(255) NOT NULL,
  `debit_credit_amount` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `debit_credit_reason` varchar(255) NOT NULL,
  `setup_fee` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `cycle_fee` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `tld_fee` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `addon_fee` text NOT NULL,
  `inv_tld_disc` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `inv_plan_disc` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `inv_addon_disc` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `tax_percent` text NOT NULL,
  `desc` varchar(255) NOT NULL DEFAULT '',
  `due_date` date NOT NULL DEFAULT '0000-00-00',
  `invoice_no` int(11) NOT NULL AUTO_INCREMENT,
  `other_amount` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `net_amount` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `tax_amount` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `gross_amount` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `status` varchar(255) NOT NULL DEFAULT '',
  `transaction_id` varchar(255) NOT NULL DEFAULT '0',
  `pay_text` text NOT NULL,
  `payment_method` varchar(255) NOT NULL,
  `pay_curr_name` varchar(255) NOT NULL,
  `pay_curr_symbol` varchar(255) NOT NULL,
  `pay_curr_factor` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `pay_curr_decimal_number` int(3) NOT NULL DEFAULT '2',
  `pay_curr_decimal_str` varchar(255) NOT NULL DEFAULT '.',
  `pay_curr_thousand_str` varchar(255) NOT NULL DEFAULT ',',
  `pay_curr_symbol_prefixed` enum('0','1') NOT NULL DEFAULT '1',
  `prorate_desc` text NOT NULL,
  `prorate_amount` decimal(16,6) NOT NULL DEFAULT '0.000000',
  PRIMARY KEY (`invoice_no`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `invoices`
--


--
-- Table structure for table `ips`
--

CREATE TABLE `ips` (
  `ip_id` int(11) NOT NULL AUTO_INCREMENT,
  `server_id` int(11) NOT NULL,
  `ip` varchar(15) NOT NULL,
  PRIMARY KEY (`ip_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ips`
--


--
-- Table structure for table `newsletters`
--

CREATE TABLE `newsletters` (
  `newsletter_id` int(11) NOT NULL AUTO_INCREMENT,
  `newsletter_subject` varchar(255) NOT NULL,
  `newsletter_body` text NOT NULL,
  `customer_1` int(11) NOT NULL,
  `FromDate` date NOT NULL,
  `ToDate` date NOT NULL,
  `tld_1` enum('0','1') NOT NULL,
  `tld_2` varchar(25) NOT NULL,
  `sd_1` enum('0','1') NOT NULL,
  `sd_2` varchar(25) NOT NULL,
  `product_1` enum('0','1') NOT NULL,
  `product_2` int(11) NOT NULL,
  `total_1` enum('0','1') NOT NULL,
  `total_2` decimal(16,6) NOT NULL,
  `paid_1` enum('0','1') NOT NULL,
  `paid_2` decimal(16,6) NOT NULL,
  `due_1` enum('0','1') NOT NULL,
  `due_2` decimal(16,6) NOT NULL,
  `country_1` enum('0','1') NOT NULL,
  `country_2` varchar(255) NOT NULL,
  `country_3` varchar(255) NOT NULL,
  `discount_1` enum('0','1','2') NOT NULL,
  `discount_2` decimal(16,6) NOT NULL,
  `send_as_html` enum('0','1') NOT NULL,
  PRIMARY KEY (`newsletter_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `newsletters`
--


--
-- Table structure for table `ord_inv_recs`
--

CREATE TABLE `ord_inv_recs` (
  `rec_ord_id` int(11) NOT NULL,
  `rec_next_date` date NOT NULL DEFAULT '0000-00-00',
  UNIQUE KEY `rec_ord_id` (`rec_ord_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ord_inv_recs`
--


--
-- Table structure for table `orders_addons`
--

CREATE TABLE `orders_addons` (
  `sub_id` int(11) NOT NULL DEFAULT '0',
  `addon_id` int(11) NOT NULL DEFAULT '0',
  `activation_date` date NOT NULL DEFAULT '0000-00-00'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orders_addons`
--


--
-- Table structure for table `orders_invoices`
--

CREATE TABLE `orders_invoices` (
  `order_id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orders_invoices`
--


--
-- Table structure for table `orders_servers_ips`
--

CREATE TABLE `orders_servers_ips` (
  `sub_id` int(11) NOT NULL,
  `server_id` int(11) NOT NULL,
  `ip_id` int(11) NOT NULL,
  `acct_status` enum('0','1','2','3') NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orders_servers_ips`
--


--
-- Table structure for table `orphan_order_datas`
--

CREATE TABLE `orphan_order_datas` (
  `orphan_order_id` int(11) NOT NULL,
  `orphan_order_field` varchar(255) NOT NULL,
  `orphan_order_value` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orphan_order_datas`
--


--
-- Table structure for table `orphan_orders`
--

CREATE TABLE `orphan_orders` (
  `orphanorder_id` int(11) NOT NULL AUTO_INCREMENT,
  `item_number` varchar(255) NOT NULL,
  `payment_method` varchar(255) NOT NULL,
  `order_date` datetime NOT NULL,
  PRIMARY KEY (`orphanorder_id`),
  UNIQUE KEY `item_number` (`item_number`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orphan_orders`
--


--
-- Table structure for table `payment_logs`
--

CREATE TABLE `payment_logs` (
  `payment_id` int(11) NOT NULL AUTO_INCREMENT,
  `item_name` varchar(255) NOT NULL DEFAULT '',
  `invoice_no` varchar(255) NOT NULL DEFAULT '',
  `payer_email` varchar(255) NOT NULL DEFAULT '',
  `txn_id` varchar(20) NOT NULL DEFAULT '',
  `status` varchar(20) NOT NULL DEFAULT '',
  `posted_vars` text NOT NULL,
  `payment_method` varchar(25) NOT NULL,
  PRIMARY KEY (`payment_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `payment_logs`
--


--
-- Table structure for table `plesk_ids`
--

CREATE TABLE `plesk_ids` (
  `cust_id` int(11) NOT NULL,
  `plesk_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `plesk_ids`
--


--
-- Table structure for table `plesk_profiles`
--

CREATE TABLE `plesk_profiles` (
  `plesk_profile_id` int(11) NOT NULL AUTO_INCREMENT,
  `create_domains` enum('0','1') NOT NULL,
  `manage_phosting` enum('0','1') NOT NULL,
  `manage_quota` enum('0','1') NOT NULL,
  `manage_subdomains` enum('0','1') NOT NULL,
  `manage_not_chroot_shell` enum('0','1') NOT NULL,
  `change_limits` enum('0','1') NOT NULL,
  `manage_dns` enum('0','1') NOT NULL,
  `manage_log` enum('0','1') NOT NULL,
  `manage_crontab` enum('0','1') NOT NULL,
  `manage_anonftp` enum('0','1') NOT NULL,
  `manage_webapps` enum('0','1') NOT NULL,
  `manage_sh_access` enum('0','1') NOT NULL,
  `manage_maillists` enum('0','1') NOT NULL,
  `manage_drweb` enum('0','1') NOT NULL,
  `make_dumps` enum('0','1') NOT NULL,
  `site_builder` enum('0','1') NOT NULL,
  PRIMARY KEY (`plesk_profile_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `plesk_profiles`
--


--
-- Table structure for table `pp_vals`
--

CREATE TABLE `pp_vals` (
  `pp_name` varchar(255) NOT NULL,
  `active` varchar(255) NOT NULL DEFAULT '',
  `title` varchar(255) NOT NULL DEFAULT '',
  `disp_msg` text NOT NULL,
  PRIMARY KEY (`pp_name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `pp_vals`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `plan_price_id` int(11) NOT NULL AUTO_INCREMENT,
  `plan_name` varchar(255) NOT NULL DEFAULT '',
  `host_setup_fee` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `server_id` int(11) NOT NULL DEFAULT '0',
  `acc_method` tinyint(1) NOT NULL DEFAULT '0',
  `plan_desc` text NOT NULL,
  `default_cycle` int(3) NOT NULL DEFAULT '13',
  `subdomain` enum('1','0') NOT NULL,
  `domain` enum('1','0') NOT NULL DEFAULT '1',
  `force_domain_subdomain` enum('0','1') NOT NULL DEFAULT '0',
  `en_server_rotation` enum('0','1') NOT NULL,
  `plan_friendly_name` varchar(255) NOT NULL,
  `activation_mail_template` text NOT NULL,
  `suspended_mail_template` text NOT NULL,
  `cpanel_reseller` enum('0','1') NOT NULL,
  `cpr_profile_id` int(11) NOT NULL,
  `plesk_profile_id` int(11) NOT NULL,
  `cip` enum('0','1') NOT NULL,
  `cgi` enum('0','1') NOT NULL,
  `quota` varchar(11) NOT NULL,
  `frontpage` enum('0','1') NOT NULL,
  `cp` varchar(25) NOT NULL,
  `maxftp` varchar(11) NOT NULL,
  `maxsql` varchar(11) NOT NULL,
  `maxpop` varchar(11) NOT NULL,
  `maxlst` varchar(11) NOT NULL,
  `maxsub` varchar(11) NOT NULL,
  `bwlimit` varchar(11) NOT NULL,
  `hasshell` enum('0','1') NOT NULL,
  `maxpark` varchar(11) NOT NULL,
  `maxaddon` varchar(11) NOT NULL,
  `da_reseller` enum('0','1','2','3') NOT NULL,
  `plan_index` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`plan_price_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `products`
--

INSERT INTO `products` VALUES (1,'',1.000000,0,2,'Basic Hosting Services:&nbsp; $19.00 per month<br />1.&nbsp;&nbsp;&nbsp; Quality Web Hosting.<br />2.&nbsp;&nbsp;&nbsp; 10 Email Accounts and Mail forwarding (Min 6 mo commitment)<br />3.&nbsp;&nbsp;&nbsp; 1yr. Domain Name Registration.($19.00)<br />4.&nbsp;&nbsp;&nbsp; CMS Setup and Configuration',1,'1','1','0','0','Basic Hosting Package','','','0',0,0,'1','1','','1','','','','','','','','1','','','0',1);

--
-- Table structure for table `products_addons`
--

CREATE TABLE `products_addons` (
  `product_id` int(11) NOT NULL DEFAULT '0',
  `addon_id` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `products_addons`
--


--
-- Table structure for table `products_servers`
--

CREATE TABLE `products_servers` (
  `package_id` int(11) NOT NULL,
  `server_id` int(11) NOT NULL,
  `rotation_index` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `products_servers`
--


--
-- Table structure for table `registrars`
--

CREATE TABLE `registrars` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `field` varchar(255) NOT NULL,
  `value` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `registrars`
--


--
-- Table structure for table `specials`
--

CREATE TABLE `specials` (
  `special_id` int(11) NOT NULL AUTO_INCREMENT,
  `special_name` varchar(255) NOT NULL,
  `special_desc` varchar(255) NOT NULL,
  `special_valid_from` date NOT NULL,
  `special_valid` date NOT NULL,
  `special_tld` varchar(25) NOT NULL,
  `special_subdom` varchar(25) NOT NULL,
  `special_plan` varchar(25) NOT NULL,
  `special_net` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `special_tld_disc` varchar(255) NOT NULL,
  `special_subdom_disc` varchar(255) NOT NULL,
  `special_plan_disc` varchar(255) NOT NULL,
  `special_addon_disc` varchar(255) NOT NULL,
  `special_net_disc` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `special_active` int(1) NOT NULL DEFAULT '0',
  `new_order` int(1) NOT NULL DEFAULT '1',
  `auto_desc` enum('0','1') NOT NULL DEFAULT '1',
  PRIMARY KEY (`special_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `specials`
--


--
-- Table structure for table `subdomains`
--

CREATE TABLE `subdomains` (
  `main_id` int(11) NOT NULL AUTO_INCREMENT,
  `maindomain` varchar(255) NOT NULL,
  `reserved_names` text NOT NULL,
  PRIMARY KEY (`main_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `subdomains`
--

INSERT INTO `subdomains` VALUES (1,'Domain Registration Yr',''),(2,'Subdomain 1Yr','');

--
-- Table structure for table `support_replies`
--

CREATE TABLE `support_replies` (
  `reply_id` int(11) NOT NULL AUTO_INCREMENT,
  `ticket_id` int(11) NOT NULL,
  `reply_by` varchar(255) NOT NULL,
  `reply_text` text NOT NULL,
  `reply_date` datetime NOT NULL,
  PRIMARY KEY (`reply_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `support_replies`
--


--
-- Table structure for table `support_tickets`
--

CREATE TABLE `support_tickets` (
  `ticket_id` int(11) NOT NULL AUTO_INCREMENT,
  `topic_id` int(11) NOT NULL DEFAULT '1',
  `cust_id` int(11) NOT NULL DEFAULT '0',
  `admin_id` int(11) NOT NULL DEFAULT '1',
  `ticket_text` text NOT NULL,
  `ticket_date` datetime NOT NULL,
  `ticket_status` int(1) NOT NULL,
  `ticket_subject` varchar(255) NOT NULL,
  PRIMARY KEY (`ticket_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `support_tickets`
--


--
-- Table structure for table `support_topics`
--

CREATE TABLE `support_topics` (
  `topic_id` int(11) NOT NULL AUTO_INCREMENT,
  `topic_name` varchar(255) NOT NULL DEFAULT '',
  `topic_regexp` varchar(255) NOT NULL,
  PRIMARY KEY (`topic_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `support_topics`
--


--
-- Table structure for table `taxes`
--

CREATE TABLE `taxes` (
  `tax_id` int(11) NOT NULL AUTO_INCREMENT,
  `tax_name` varchar(255) NOT NULL DEFAULT '',
  `tax_amount` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `tax_add_sub` enum('A','S') NOT NULL,
  `tax_net_comp` enum('N','C') NOT NULL,
  `tax_country` text NOT NULL,
  `tax_state` text NOT NULL,
  `tax_enable` enum('1','0') NOT NULL,
  `tax_index` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`tax_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `taxes`
--


--
-- Table structure for table `tlds`
--

CREATE TABLE `tlds` (
  `price_id` int(11) NOT NULL AUTO_INCREMENT,
  `dom_ext` varchar(15) NOT NULL,
  `dom_period` int(2) NOT NULL,
  `dom_price` decimal(16,6) NOT NULL DEFAULT '0.000000',
  `tld_name` varchar(255) NOT NULL,
  `tld_server` varchar(255) NOT NULL,
  `tld_match` varchar(255) NOT NULL,
  `tld_active` varchar(5) NOT NULL DEFAULT 'yes',
  `tld_registrar` varchar(255) NOT NULL,
  PRIMARY KEY (`price_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tlds`
--


--
-- Table structure for table `used_coupons`
--

CREATE TABLE `used_coupons` (
  `cust_id` int(11) NOT NULL,
  `sub_id` int(11) NOT NULL,
  `coupon_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `used_coupons`
--



