Your IP : 3.145.41.108
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `invoice161`
--
-- --------------------------------------------------------
--
-- Table structure for table `ip_clients`
--
CREATE TABLE `ip_clients` (
`client_id` int(11) NOT NULL AUTO_INCREMENT,
`client_date_created` datetime NOT NULL,
`client_date_modified` datetime NOT NULL,
`client_name` text,
`client_address_1` text,
`client_address_2` text,
`client_city` text,
`client_state` text,
`client_zip` text,
`client_country` text,
`client_phone` text,
`client_fax` text,
`client_mobile` text,
`client_email` text,
`client_web` text,
`client_vat_id` text,
`client_tax_code` text,
`client_language` varchar(255) DEFAULT 'system',
`client_active` int(1) NOT NULL DEFAULT '1',
`client_surname` varchar(255) DEFAULT NULL,
`client_avs` varchar(16) DEFAULT NULL,
`client_insurednumber` varchar(30) DEFAULT NULL,
`client_veka` varchar(30) DEFAULT NULL,
`client_birthdate` date DEFAULT NULL,
`client_gender` int(1) DEFAULT '0',
PRIMARY KEY (`client_id`),
KEY `client_active` (`client_active`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_client_custom`
--
CREATE TABLE `ip_client_custom` (
`client_custom_id` int(11) NOT NULL AUTO_INCREMENT,
`client_id` int(11) NOT NULL,
`client_custom_fieldid` int(11) NOT NULL,
`client_custom_fieldvalue` text,
PRIMARY KEY (`client_custom_id`),
UNIQUE KEY `client_id` (`client_id`,`client_custom_fieldid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_client_notes`
--
CREATE TABLE `ip_client_notes` (
`client_note_id` int(11) NOT NULL AUTO_INCREMENT,
`client_id` int(11) NOT NULL,
`client_note_date` date NOT NULL,
`client_note` longtext NOT NULL,
PRIMARY KEY (`client_note_id`),
KEY `client_id` (`client_id`,`client_note_date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_custom_fields`
--
CREATE TABLE `ip_custom_fields` (
`custom_field_id` int(11) NOT NULL AUTO_INCREMENT,
`custom_field_table` varchar(50) DEFAULT NULL,
`custom_field_label` varchar(50) DEFAULT NULL,
`custom_field_type` varchar(255) NOT NULL DEFAULT 'TEXT',
`custom_field_location` int(11) DEFAULT '0',
`custom_field_order` int(11) DEFAULT '999',
PRIMARY KEY (`custom_field_id`),
UNIQUE KEY `custom_field_table_2` (`custom_field_table`,`custom_field_label`),
KEY `custom_field_table` (`custom_field_table`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_custom_values`
--
CREATE TABLE `ip_custom_values` (
`custom_values_id` int(11) NOT NULL AUTO_INCREMENT,
`custom_values_field` int(11) NOT NULL,
`custom_values_value` text NOT NULL,
PRIMARY KEY (`custom_values_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_email_templates`
--
CREATE TABLE `ip_email_templates` (
`email_template_id` int(11) NOT NULL AUTO_INCREMENT,
`email_template_title` text,
`email_template_type` varchar(255) DEFAULT NULL,
`email_template_body` longtext NOT NULL,
`email_template_subject` text,
`email_template_from_name` text,
`email_template_from_email` text,
`email_template_cc` text,
`email_template_bcc` text,
`email_template_pdf_template` varchar(255) DEFAULT NULL,
PRIMARY KEY (`email_template_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_families`
--
CREATE TABLE `ip_families` (
`family_id` int(11) NOT NULL AUTO_INCREMENT,
`family_name` text,
PRIMARY KEY (`family_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_imports`
--
CREATE TABLE `ip_imports` (
`import_id` int(11) NOT NULL AUTO_INCREMENT,
`import_date` datetime NOT NULL,
PRIMARY KEY (`import_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_import_details`
--
CREATE TABLE `ip_import_details` (
`import_detail_id` int(11) NOT NULL AUTO_INCREMENT,
`import_id` int(11) NOT NULL,
`import_lang_key` varchar(35) NOT NULL,
`import_table_name` varchar(35) NOT NULL,
`import_record_id` int(11) NOT NULL,
PRIMARY KEY (`import_detail_id`),
KEY `import_id` (`import_id`,`import_record_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_invoices`
--
CREATE TABLE `ip_invoices` (
`invoice_id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`client_id` int(11) NOT NULL,
`invoice_group_id` int(11) NOT NULL,
`invoice_status_id` tinyint(2) NOT NULL DEFAULT '1',
`is_read_only` tinyint(1) DEFAULT NULL,
`invoice_password` varchar(90) DEFAULT NULL,
`invoice_date_created` date NOT NULL,
`invoice_time_created` time NOT NULL DEFAULT '00:00:00',
`invoice_date_modified` datetime NOT NULL,
`invoice_date_due` date NOT NULL,
`invoice_number` varchar(100) DEFAULT NULL,
`invoice_discount_amount` decimal(20,2) DEFAULT NULL,
`invoice_discount_percent` decimal(20,2) DEFAULT NULL,
`invoice_terms` longtext NOT NULL,
`invoice_url_key` char(32) NOT NULL,
`payment_method` int(11) NOT NULL DEFAULT '0',
`creditinvoice_parent_id` int(11) DEFAULT NULL,
PRIMARY KEY (`invoice_id`),
UNIQUE KEY `invoice_url_key` (`invoice_url_key`),
KEY `user_id` (`user_id`,`client_id`,`invoice_group_id`,`invoice_date_created`,`invoice_date_due`,`invoice_number`),
KEY `invoice_status_id` (`invoice_status_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_invoices_recurring`
--
CREATE TABLE `ip_invoices_recurring` (
`invoice_recurring_id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_id` int(11) NOT NULL,
`recur_start_date` date NOT NULL,
`recur_end_date` date DEFAULT NULL,
`recur_frequency` varchar(255) NOT NULL,
`recur_next_date` date DEFAULT NULL,
PRIMARY KEY (`invoice_recurring_id`),
KEY `invoice_id` (`invoice_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_invoice_amounts`
--
CREATE TABLE `ip_invoice_amounts` (
`invoice_amount_id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_id` int(11) NOT NULL,
`invoice_sign` enum('1','-1') NOT NULL DEFAULT '1',
`invoice_item_subtotal` decimal(20,2) DEFAULT NULL,
`invoice_item_tax_total` decimal(20,2) DEFAULT NULL,
`invoice_tax_total` decimal(20,2) DEFAULT NULL,
`invoice_total` decimal(20,2) DEFAULT NULL,
`invoice_paid` decimal(20,2) DEFAULT NULL,
`invoice_balance` decimal(20,2) DEFAULT NULL,
PRIMARY KEY (`invoice_amount_id`),
KEY `invoice_id` (`invoice_id`),
KEY `invoice_paid` (`invoice_paid`,`invoice_balance`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_invoice_custom`
--
CREATE TABLE `ip_invoice_custom` (
`invoice_custom_id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_id` int(11) NOT NULL,
`invoice_custom_fieldid` int(11) NOT NULL,
`invoice_custom_fieldvalue` text,
PRIMARY KEY (`invoice_custom_id`),
UNIQUE KEY `invoice_id` (`invoice_id`,`invoice_custom_fieldid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_invoice_groups`
--
CREATE TABLE `ip_invoice_groups` (
`invoice_group_id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_group_name` text,
`invoice_group_identifier_format` varchar(255) NOT NULL,
`invoice_group_next_id` int(11) NOT NULL,
`invoice_group_left_pad` int(2) NOT NULL DEFAULT '0',
PRIMARY KEY (`invoice_group_id`),
KEY `invoice_group_next_id` (`invoice_group_next_id`),
KEY `invoice_group_left_pad` (`invoice_group_left_pad`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `ip_invoice_groups`
--
INSERT INTO `ip_invoice_groups` VALUES
(3, 'Invoice Default', '{{{id}}}', 1, 0),
(4, 'Quote Default', 'QUO{{{id}}}', 1, 0);
-- --------------------------------------------------------
--
-- Table structure for table `ip_invoice_items`
--
CREATE TABLE `ip_invoice_items` (
`item_id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_id` int(11) NOT NULL,
`item_tax_rate_id` int(11) NOT NULL DEFAULT '0',
`item_product_id` int(11) DEFAULT NULL,
`item_date_added` date NOT NULL,
`item_task_id` int(11) DEFAULT NULL,
`item_name` text,
`item_description` longtext,
`item_quantity` decimal(10,2) NOT NULL,
`item_price` decimal(20,2) DEFAULT NULL,
`item_discount_amount` decimal(20,2) DEFAULT NULL,
`item_order` int(2) NOT NULL DEFAULT '0',
`item_is_recurring` tinyint(1) DEFAULT NULL,
`item_product_unit` varchar(50) DEFAULT NULL,
`item_product_unit_id` int(11) DEFAULT NULL,
`item_date` date DEFAULT NULL,
PRIMARY KEY (`item_id`),
KEY `invoice_id` (`invoice_id`,`item_tax_rate_id`,`item_date_added`,`item_order`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_invoice_item_amounts`
--
CREATE TABLE `ip_invoice_item_amounts` (
`item_amount_id` int(11) NOT NULL AUTO_INCREMENT,
`item_id` int(11) NOT NULL,
`item_subtotal` decimal(20,2) DEFAULT NULL,
`item_tax_total` decimal(20,2) DEFAULT NULL,
`item_discount` decimal(20,2) DEFAULT NULL,
`item_total` decimal(20,2) DEFAULT NULL,
PRIMARY KEY (`item_amount_id`),
KEY `item_id` (`item_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_invoice_sumex`
--
CREATE TABLE `ip_invoice_sumex` (
`sumex_id` int(11) NOT NULL AUTO_INCREMENT,
`sumex_invoice` int(11) NOT NULL,
`sumex_reason` int(11) NOT NULL,
`sumex_diagnosis` varchar(500) NOT NULL,
`sumex_observations` varchar(500) NOT NULL,
`sumex_treatmentstart` date NOT NULL,
`sumex_treatmentend` date NOT NULL,
`sumex_casedate` date NOT NULL,
`sumex_casenumber` varchar(35) DEFAULT NULL,
PRIMARY KEY (`sumex_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_invoice_tax_rates`
--
CREATE TABLE `ip_invoice_tax_rates` (
`invoice_tax_rate_id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_id` int(11) NOT NULL,
`tax_rate_id` int(11) NOT NULL,
`include_item_tax` int(1) NOT NULL DEFAULT '0',
`invoice_tax_rate_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
PRIMARY KEY (`invoice_tax_rate_id`),
KEY `invoice_id` (`invoice_id`,`tax_rate_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_item_lookups`
--
CREATE TABLE `ip_item_lookups` (
`item_lookup_id` int(11) NOT NULL AUTO_INCREMENT,
`item_name` varchar(100) NOT NULL DEFAULT '',
`item_description` longtext NOT NULL,
`item_price` decimal(10,2) NOT NULL,
PRIMARY KEY (`item_lookup_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_login_log`
--
CREATE TABLE `ip_login_log` (
`login_name` varchar(100) NOT NULL,
`log_count` int(11) DEFAULT '0',
`log_create_timestamp` datetime DEFAULT NULL,
PRIMARY KEY (`login_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `ip_merchant_responses`
--
CREATE TABLE `ip_merchant_responses` (
`merchant_response_id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_id` int(11) NOT NULL,
`merchant_response_successful` tinyint(1) DEFAULT '1',
`merchant_response_date` date NOT NULL,
`merchant_response_driver` varchar(35) NOT NULL,
`merchant_response` varchar(255) NOT NULL,
`merchant_response_reference` varchar(255) NOT NULL,
PRIMARY KEY (`merchant_response_id`),
KEY `merchant_response_date` (`merchant_response_date`),
KEY `invoice_id` (`invoice_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_payments`
--
CREATE TABLE `ip_payments` (
`payment_id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_id` int(11) NOT NULL,
`payment_method_id` int(11) NOT NULL DEFAULT '0',
`payment_date` date NOT NULL,
`payment_amount` decimal(20,2) DEFAULT NULL,
`payment_note` longtext NOT NULL,
PRIMARY KEY (`payment_id`),
KEY `invoice_id` (`invoice_id`),
KEY `payment_method_id` (`payment_method_id`),
KEY `payment_amount` (`payment_amount`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_payment_custom`
--
CREATE TABLE `ip_payment_custom` (
`payment_custom_id` int(11) NOT NULL AUTO_INCREMENT,
`payment_id` int(11) NOT NULL,
`payment_custom_fieldid` int(11) NOT NULL,
`payment_custom_fieldvalue` text,
PRIMARY KEY (`payment_custom_id`),
UNIQUE KEY `payment_id` (`payment_id`,`payment_custom_fieldid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_payment_methods`
--
CREATE TABLE `ip_payment_methods` (
`payment_method_id` int(11) NOT NULL AUTO_INCREMENT,
`payment_method_name` text,
PRIMARY KEY (`payment_method_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `ip_payment_methods`
--
INSERT INTO `ip_payment_methods` VALUES
(1, 'Cash'),
(2, 'Credit Card');
-- --------------------------------------------------------
--
-- Table structure for table `ip_products`
--
CREATE TABLE `ip_products` (
`product_id` int(11) NOT NULL AUTO_INCREMENT,
`family_id` int(11) DEFAULT NULL,
`product_sku` text,
`product_name` text,
`product_description` longtext NOT NULL,
`product_price` decimal(20,2) DEFAULT NULL,
`purchase_price` decimal(20,2) DEFAULT NULL,
`provider_name` text,
`tax_rate_id` int(11) DEFAULT NULL,
`unit_id` int(11) DEFAULT NULL,
`product_tariff` int(11) DEFAULT NULL,
PRIMARY KEY (`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_projects`
--
CREATE TABLE `ip_projects` (
`project_id` int(11) NOT NULL AUTO_INCREMENT,
`client_id` int(11) NOT NULL,
`project_name` text,
PRIMARY KEY (`project_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_quotes`
--
CREATE TABLE `ip_quotes` (
`quote_id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_id` int(11) NOT NULL DEFAULT '0',
`user_id` int(11) NOT NULL,
`client_id` int(11) NOT NULL,
`invoice_group_id` int(11) NOT NULL,
`quote_status_id` tinyint(2) NOT NULL DEFAULT '1',
`quote_date_created` date NOT NULL,
`quote_date_modified` datetime NOT NULL,
`quote_date_expires` date NOT NULL,
`quote_number` varchar(100) DEFAULT NULL,
`quote_discount_amount` decimal(20,2) DEFAULT NULL,
`quote_discount_percent` decimal(20,2) DEFAULT NULL,
`quote_url_key` char(32) NOT NULL,
`quote_password` varchar(90) DEFAULT NULL,
`notes` longtext,
PRIMARY KEY (`quote_id`),
KEY `user_id` (`user_id`,`client_id`,`invoice_group_id`,`quote_date_created`,`quote_date_expires`,`quote_number`),
KEY `invoice_id` (`invoice_id`),
KEY `quote_status_id` (`quote_status_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_quote_amounts`
--
CREATE TABLE `ip_quote_amounts` (
`quote_amount_id` int(11) NOT NULL AUTO_INCREMENT,
`quote_id` int(11) NOT NULL,
`quote_item_subtotal` decimal(20,2) DEFAULT NULL,
`quote_item_tax_total` decimal(20,2) DEFAULT NULL,
`quote_tax_total` decimal(20,2) DEFAULT NULL,
`quote_total` decimal(20,2) DEFAULT NULL,
PRIMARY KEY (`quote_amount_id`),
KEY `quote_id` (`quote_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_quote_custom`
--
CREATE TABLE `ip_quote_custom` (
`quote_custom_id` int(11) NOT NULL AUTO_INCREMENT,
`quote_id` int(11) NOT NULL,
`quote_custom_fieldid` int(11) NOT NULL,
`quote_custom_fieldvalue` text,
PRIMARY KEY (`quote_custom_id`),
UNIQUE KEY `quote_id` (`quote_id`,`quote_custom_fieldid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_quote_items`
--
CREATE TABLE `ip_quote_items` (
`item_id` int(11) NOT NULL AUTO_INCREMENT,
`quote_id` int(11) NOT NULL,
`item_tax_rate_id` int(11) NOT NULL,
`item_product_id` int(11) DEFAULT NULL,
`item_date_added` date NOT NULL,
`item_name` text,
`item_description` text,
`item_quantity` decimal(20,2) DEFAULT NULL,
`item_price` decimal(20,2) DEFAULT NULL,
`item_discount_amount` decimal(20,2) DEFAULT NULL,
`item_order` int(2) NOT NULL DEFAULT '0',
`item_product_unit` varchar(50) DEFAULT NULL,
`item_product_unit_id` int(11) DEFAULT NULL,
PRIMARY KEY (`item_id`),
KEY `quote_id` (`quote_id`,`item_date_added`,`item_order`),
KEY `item_tax_rate_id` (`item_tax_rate_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_quote_item_amounts`
--
CREATE TABLE `ip_quote_item_amounts` (
`item_amount_id` int(11) NOT NULL AUTO_INCREMENT,
`item_id` int(11) NOT NULL,
`item_subtotal` decimal(20,2) DEFAULT NULL,
`item_tax_total` decimal(20,2) DEFAULT NULL,
`item_discount` decimal(20,2) DEFAULT NULL,
`item_total` decimal(20,2) DEFAULT NULL,
PRIMARY KEY (`item_amount_id`),
KEY `item_id` (`item_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_quote_tax_rates`
--
CREATE TABLE `ip_quote_tax_rates` (
`quote_tax_rate_id` int(11) NOT NULL AUTO_INCREMENT,
`quote_id` int(11) NOT NULL,
`tax_rate_id` int(11) NOT NULL,
`include_item_tax` int(1) NOT NULL DEFAULT '0',
`quote_tax_rate_amount` decimal(20,2) DEFAULT NULL,
PRIMARY KEY (`quote_tax_rate_id`),
KEY `quote_id` (`quote_id`),
KEY `tax_rate_id` (`tax_rate_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_sessions`
--
CREATE TABLE `ip_sessions` (
`id` varchar(128) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) unsigned NOT NULL DEFAULT '0',
`data` blob NOT NULL,
KEY `ip_sessions_timestamp` (`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `ip_settings`
--
CREATE TABLE `ip_settings` (
`setting_id` int(11) NOT NULL AUTO_INCREMENT,
`setting_key` varchar(50) NOT NULL,
`setting_value` longtext NOT NULL,
PRIMARY KEY (`setting_id`),
KEY `setting_key` (`setting_key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=52 ;
--
-- Dumping data for table `ip_settings`
--
INSERT INTO `ip_settings` VALUES
(19, 'default_language', '[[language]]'),
(20, 'date_format', 'm/d/Y'),
(21, 'currency_symbol', '$'),
(22, 'currency_symbol_placement', 'before'),
(23, 'currency_code', 'USD'),
(24, 'invoices_due_after', '30'),
(25, 'quotes_expire_after', '15'),
(26, 'default_invoice_group', '3'),
(27, 'default_quote_group', '4'),
(28, 'thousands_separator', ','),
(29, 'decimal_point', '.'),
(30, 'cron_key', '[[cron_key]]'),
(31, 'tax_rate_decimal_places', '2'),
(32, 'pdf_invoice_template', 'InvoicePlane'),
(33, 'pdf_invoice_template_paid', 'InvoicePlane - paid'),
(34, 'pdf_invoice_template_overdue', 'InvoicePlane - overdue'),
(35, 'pdf_quote_template', 'InvoicePlane'),
(36, 'public_invoice_template', 'InvoicePlane_Web'),
(37, 'public_quote_template', 'InvoicePlane_Web'),
(38, 'disable_sidebar', '1'),
(39, 'read_only_toggle', '4'),
(40, 'invoice_pre_password', ''),
(41, 'quote_pre_password', ''),
(42, 'email_pdf_attachment', '1'),
(43, 'generate_invoice_number_for_draft', '1'),
(44, 'generate_quote_number_for_draft', '1'),
(45, 'sumex', '0'),
(46, 'sumex_sliptype', '1'),
(47, 'sumex_canton', '0'),
(48, 'system_theme', 'invoiceplane'),
(49, 'default_hourly_rate', '0.00'),
(50, 'projects_enabled', '1'),
(51, 'pdf_quote_footer', '');
-- --------------------------------------------------------
--
-- Table structure for table `ip_tasks`
--
CREATE TABLE `ip_tasks` (
`task_id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`task_name` text,
`task_description` longtext NOT NULL,
`task_price` decimal(20,2) DEFAULT NULL,
`task_finish_date` date NOT NULL,
`task_status` tinyint(1) NOT NULL,
`tax_rate_id` int(11) NOT NULL,
PRIMARY KEY (`task_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_tax_rates`
--
CREATE TABLE `ip_tax_rates` (
`tax_rate_id` int(11) NOT NULL AUTO_INCREMENT,
`tax_rate_name` text,
`tax_rate_percent` decimal(5,2) NOT NULL,
PRIMARY KEY (`tax_rate_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_units`
--
CREATE TABLE `ip_units` (
`unit_id` int(11) NOT NULL AUTO_INCREMENT,
`unit_name` varchar(50) DEFAULT NULL,
`unit_name_plrl` varchar(50) DEFAULT NULL,
PRIMARY KEY (`unit_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_uploads`
--
CREATE TABLE `ip_uploads` (
`upload_id` int(11) NOT NULL AUTO_INCREMENT,
`client_id` int(11) NOT NULL,
`url_key` char(32) NOT NULL,
`file_name_original` longtext NOT NULL,
`file_name_new` longtext NOT NULL,
`uploaded_date` date NOT NULL,
PRIMARY KEY (`upload_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_users`
--
CREATE TABLE `ip_users` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
`user_type` int(1) NOT NULL DEFAULT '0',
`user_active` tinyint(1) DEFAULT '1',
`user_date_created` datetime NOT NULL,
`user_date_modified` datetime NOT NULL,
`user_language` varchar(255) DEFAULT 'system',
`user_name` text,
`user_company` text,
`user_address_1` text,
`user_address_2` text,
`user_city` text,
`user_state` text,
`user_zip` text,
`user_country` text,
`user_phone` text,
`user_fax` text,
`user_mobile` text,
`user_email` text,
`user_password` varchar(60) NOT NULL,
`user_web` text,
`user_vat_id` text,
`user_tax_code` text,
`user_psalt` text,
`user_all_clients` int(1) NOT NULL DEFAULT '0',
`user_passwordreset_token` varchar(100) DEFAULT '',
`user_subscribernumber` varchar(40) DEFAULT NULL,
`user_iban` varchar(34) DEFAULT NULL,
`user_gln` bigint(13) DEFAULT NULL,
`user_rcc` varchar(7) DEFAULT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `ip_users`
--
INSERT INTO `ip_users` VALUES
(1, 1, 1, '[[regtime]]', '[[regtime]]', 'system', '[[admin_username]]', NULL, '', '', '', '', '', '', '', '', '', '[[admin_email]]', '[[admin_pass]]', '', NULL, NULL, '[[user_psalt]]', 0, '', NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `ip_user_clients`
--
CREATE TABLE `ip_user_clients` (
`user_client_id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`client_id` int(11) NOT NULL,
PRIMARY KEY (`user_client_id`),
KEY `user_id` (`user_id`,`client_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_user_custom`
--
CREATE TABLE `ip_user_custom` (
`user_custom_id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`user_custom_fieldid` int(11) NOT NULL,
`user_custom_fieldvalue` text,
PRIMARY KEY (`user_custom_id`),
UNIQUE KEY `user_id` (`user_id`,`user_custom_fieldid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ip_versions`
--
CREATE TABLE `ip_versions` (
`version_id` int(11) NOT NULL AUTO_INCREMENT,
`version_date_applied` varchar(14) NOT NULL,
`version_file` varchar(45) NOT NULL,
`version_sql_errors` int(2) NOT NULL,
PRIMARY KEY (`version_id`),
KEY `version_date_applied` (`version_date_applied`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=39 ;
--
-- Dumping data for table `ip_versions`
--
INSERT INTO `ip_versions` VALUES
(1, '[[timestamp]]', '000_1.0.0.sql', 0),
(2, '[[timestamp]]', '001_1.0.1.sql', 0),
(3, '[[timestamp]]', '002_1.0.2.sql', 0),
(4, '[[timestamp]]', '003_1.1.0.sql', 0),
(5, '[[timestamp]]', '004_1.1.1.sql', 0),
(6, '[[timestamp]]', '005_1.1.2.sql', 0),
(7, '[[timestamp]]', '006_1.2.0.sql', 0),
(8, '[[timestamp]]', '007_1.2.1.sql', 0),
(9, '[[timestamp]]', '008_1.3.0.sql', 0),
(10, '[[timestamp]]', '009_1.3.1.sql', 0),
(11, '[[timestamp]]', '010_1.3.2.sql', 0),
(12, '[[timestamp]]', '011_1.3.3.sql', 0),
(13, '[[timestamp]]', '012_1.4.0.sql', 0),
(14, '[[timestamp]]', '013_1.4.1.sql', 0),
(15, '[[timestamp]]', '014_1.4.2.sql', 0),
(16, '[[timestamp]]', '015_1.4.3.sql', 0),
(17, '[[timestamp]]', '016_1.4.4.sql', 0),
(18, '[[timestamp]]', '017_1.4.5.sql', 0),
(19, '[[timestamp]]', '018_1.4.6.sql', 0),
(20, '[[timestamp]]', '019_1.4.7.sql', 0),
(21, '[[timestamp]]', '020_1.4.8.sql', 0),
(22, '[[timestamp]]', '021_1.4.9.sql', 0),
(23, '[[timestamp]]', '022_1.4.10.sql', 0),
(24, '[[timestamp]]', '023_1.5.0.sql', 0),
(25, '[[timestamp]]', '024_1.5.1.sql', 0),
(26, '[[timestamp]]', '025_1.5.2.sql', 0),
(27, '[[timestamp]]', '026_1.5.3.sql', 0),
(28, '[[timestamp]]', '027_1.5.4.sql', 0),
(29, '[[timestamp]]', '028_1.5.5.sql', 0),
(30, '[[timestamp]]', '029_1.5.6.sql', 0),
(31, '[[timestamp]]', '030_1.5.7.sql', 0),
(32, '[[timestamp]]', '031_1.5.8.sql', 0),
(33, '[[timestamp]]', '032_1.5.9.sql', 0),
(34, '[[timestamp]]', '033_1.5.10.sql', 0),
(35, '[[timestamp]]', '034_1.5.11.sql', 0),
(36, '[[timestamp]]', '035_1.5.12.sql', 0),
(37, '[[timestamp]]', '036_1.6.sql', 0),
(38, '[[timestamp]]', '037_1.6.1.sql', 0);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;