Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SET FOREIGN_KEY_CHECKS=0;
- -- ----------------------------
- -- Table structure for ip_clients
- -- ----------------------------
- DROP TABLE IF EXISTS `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`) USING BTREE
- ) ENGINE=MyISAM AUTO_INCREMENT=840 DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of ip_clients
- -- ----------------------------
- INSERT INTO `ip_clients` VALUES ('1', '0000-00-00 00:00:00', '2017-09-12 19:58:32', 'Client 1', '', '', null, '', '', '', null, null, null, null, null, null, null, 'system', '1', '', null, null, null, '0000-00-00', '0');
- INSERT INTO `ip_clients` VALUES ('2', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Client 2', null, null, null, null, null, null, null, null, null, null, null, null, null, 'system', '1', null, null, null, null, null, '0');
- -- ----------------------------
- -- Table structure for ip_invoice_amounts
- -- ----------------------------
- DROP TABLE IF EXISTS `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`) USING BTREE,
- KEY `invoice_paid` (`invoice_paid`,`invoice_balance`) USING BTREE
- ) ENGINE=MyISAM AUTO_INCREMENT=205 DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of ip_invoice_amounts
- -- ----------------------------
- INSERT INTO `ip_invoice_amounts` VALUES ('1', '1', '1', '129.60', '0.00', '0.00', '129.60', '129.60', '0.00');
- INSERT INTO `ip_invoice_amounts` VALUES ('2', '2', '1', '4.78', '0.00', '0.00', '4.78', '0.00', '4.78');
- INSERT INTO `ip_invoice_amounts` VALUES ('3', '3', '1', '60.24', '0.00', '0.00', '60.24', '0.00', '60.24');
- INSERT INTO `ip_invoice_amounts` VALUES ('4', '4', '1', '62.53', '0.00', '0.00', '62.53', '0.00', '62.53');
- INSERT INTO `ip_invoice_amounts` VALUES ('5', '5', '1', '90.74', '0.00', '0.00', '90.74', '0.00', '90.74');
- -- ----------------------------
- -- Table structure for ip_invoice_item_amounts
- -- ----------------------------
- DROP TABLE IF EXISTS `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`) USING BTREE
- ) ENGINE=MyISAM AUTO_INCREMENT=255 DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of ip_invoice_item_amounts
- -- ----------------------------
- INSERT INTO `ip_invoice_item_amounts` VALUES ('1', '1', '129.60', '0.00', '0.00', '129.60');
- INSERT INTO `ip_invoice_item_amounts` VALUES ('2', '2', '4.78', '0.00', '0.00', '4.78');
- INSERT INTO `ip_invoice_item_amounts` VALUES ('3', '3', '60.24', '0.00', '0.00', '60.24');
- INSERT INTO `ip_invoice_item_amounts` VALUES ('4', '4', '62.53', '0.00', '0.00', '62.53');
- INSERT INTO `ip_invoice_item_amounts` VALUES ('5', '5', '90.74', '0.00', '0.00', '90.74');
- -- ----------------------------
- -- Table structure for ip_invoice_items
- -- ----------------------------
- DROP TABLE IF EXISTS `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_promitheftis` 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_product_unit` varchar(50) DEFAULT NULL,
- `item_product_unit_id` int(11) DEFAULT NULL,
- `item_date` date DEFAULT NULL,
- `promithefti` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`item_id`),
- KEY `invoice_id` (`invoice_id`,`item_tax_rate_id`,`item_date_added`,`item_order`) USING BTREE
- ) ENGINE=MyISAM AUTO_INCREMENT=255 DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of ip_invoice_items
- -- ----------------------------
- INSERT INTO `ip_invoice_items` VALUES ('1', '1', '0', '3021104', '2017-07-26', null, 'item names', null, '', '1.00', '129.60', null, '1', null, null, null, '');
- INSERT INTO `ip_invoice_items` VALUES ('2', '2', '0', '3021137', '2017-07-26', null, 'item names', null, '', '1.00', '4.78', null, '1', null, null, null, '');
- INSERT INTO `ip_invoice_items` VALUES ('3', '3', '0', '3021100', '2017-07-26', null, 'item names', null, '', '1.00', '60.24', null, '1', null, null, null, '');
- INSERT INTO `ip_invoice_items` VALUES ('4', '4', '0', '3021138', '2017-07-26', null, 'item names', null, '', '1.00', '62.53', null, '1', null, null, null, '');
- INSERT INTO `ip_invoice_items` VALUES ('5', '5', '0', '3021101', '2017-07-26', null, 'item names', null, '', '1.00', '90.74', null, '1', null, null, null, '');
- INSERT INTO `ip_invoice_items` VALUES ('6', '6', '0', '3021139', '2017-07-26', null, 'item names', null, '', '1.00', '274.54', null, '1', null, null, null, '');
- INSERT INTO `ip_invoice_items` VALUES ('7', '7', '0', '3021102', '2017-07-26', null, 'item names', null, '', '1.00', '152.36', null, '1', null, null, null, '');
- INSERT INTO `ip_invoice_items` VALUES ('8', '8', '0', '3021140', '2017-07-26', null, 'item names', null, '', '1.00', '184.21', null, '1', null, null, null, '');
- INSERT INTO `ip_invoice_items` VALUES ('9', '9', '0', '3021103', '2017-07-26', null, 'item names', null, '', '1.00', '5.95', null, '1', null, null, null, '');
- -- ----------------------------
- -- Table structure for ip_invoice_tax_rates
- -- ----------------------------
- DROP TABLE IF EXISTS `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`) USING BTREE
- ) ENGINE=MyISAM AUTO_INCREMENT=228 DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of ip_invoice_tax_rates
- -- ----------------------------
- INSERT INTO `ip_invoice_tax_rates` VALUES ('1', '1', '1', '0', '15.00');
- INSERT INTO `ip_invoice_tax_rates` VALUES ('2', '2', '1', '0', '10.00');
- INSERT INTO `ip_invoice_tax_rates` VALUES ('3', '3', '1', '0', '50.00');
- INSERT INTO `ip_invoice_tax_rates` VALUES ('4', '4', '1', '0', '34.27');
- INSERT INTO `ip_invoice_tax_rates` VALUES ('5', '5', '1', '0', '16.32');
- -- ----------------------------
- -- Table structure for ip_invoices
- -- ----------------------------
- DROP TABLE IF EXISTS `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`) USING BTREE,
- KEY `user_id` (`user_id`,`client_id`,`invoice_group_id`,`invoice_date_created`,`invoice_date_due`,`invoice_number`) USING BTREE,
- KEY `invoice_status_id` (`invoice_status_id`) USING BTREE
- ) ENGINE=MyISAM AUTO_INCREMENT=205 DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of ip_invoices
- -- ----------------------------
- INSERT INTO `ip_invoices` VALUES ('1', '1', '1', '3', '4', '1', '', '2017-07-26', '16:21:25', '2017-07-26 16:21:57', '2017-08-25', '1', '0.00', '0.00', '', 'N5G208R7j9EhrnP', '1', null);
- INSERT INTO `ip_invoices` VALUES ('2', '1', '1', '3', '2', null, '', '2017-07-26', '16:21:29', '2017-07-26 16:22:10', '2017-08-25', '2', '0.00', '0.00', '', 'MscSjbXU5maZdFN', '1', null);
- INSERT INTO `ip_invoices` VALUES ('3', '1', '1', '3', '1', null, '', '2017-07-26', '16:22:04', '2017-07-26 16:22:47', '2017-08-25', '3', '0.00', '0.00', '', 'uzUyISZ7ia2eLlf', '1', null);
- INSERT INTO `ip_invoices` VALUES ('4', '1', '2', '3', '1', null, '', '2017-07-26', '16:22:28', '2017-07-26 16:22:55', '2017-08-25', '4', '0.00', '0.00', '', 'awN8XJFlpGu3MPi', '1', null);
- INSERT INTO `ip_invoices` VALUES ('5', '1', '2', '3', '4', null, '', '2017-07-26', '16:23:04', '2017-07-26 16:23:27', '2017-08-25', '5', '0.00', '0.00', '', 'bDodkRZTxAKPi3I', '1', null);
- -- ----------------------------
- -- Table structure for ip_payments
- -- ----------------------------
- DROP TABLE IF EXISTS `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`) USING BTREE,
- KEY `payment_method_id` (`payment_method_id`) USING BTREE,
- KEY `payment_amount` (`payment_amount`) USING BTREE
- ) ENGINE=MyISAM AUTO_INCREMENT=81 DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of ip_payments
- -- ----------------------------
- INSERT INTO `ip_payments` VALUES ('1', '1', '1', '2017-07-26', '142.37', '');
- INSERT INTO `ip_payments` VALUES ('2', '2', '1', '2017-08-01', '84.32', '');
- INSERT INTO `ip_payments` VALUES ('3', '3', '1', '2017-08-01', '180.79', '');
- INSERT INTO `ip_payments` VALUES ('4', '4', '1', '2017-08-03', '126.48', '');
- -- ----------------------------
- -- Table structure for ip_products
- -- ----------------------------
- DROP TABLE IF EXISTS `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 CHARACTER SET greek,
- `product_description` longtext NOT NULL,
- `product_price` decimal(20,3) DEFAULT NULL,
- `purchase_price` decimal(20,3) DEFAULT NULL,
- `provider_name` text,
- `tax_rate_id` int(11) DEFAULT NULL,
- `unit_id` int(11) DEFAULT NULL,
- `product_tariff` int(11) DEFAULT NULL,
- `promithefti` text,
- `posotita` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`product_id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=463 DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of ip_products
- -- ----------------------------
- INSERT INTO `ip_products` VALUES ('1', '1', '1010001', 'Product 1', '', '1.650', '1.610', '', null, '2', '0', null, null);
- INSERT INTO `ip_products` VALUES ('2', '1', '1010002', 'Product 2', '', '1.610', '1.610', '', null, '2', '0', null, null);
- -- ----------------------------
- -- Table structure for ip_tasks
- -- ----------------------------
- DROP TABLE IF EXISTS `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,
- `task_base` text,
- `task_til` text,
- `task_kostos` tinyint(1) NOT NULL,
- `task_perioxes` text,
- `task_promitheftis` text,
- PRIMARY KEY (`task_id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of ip_tasks
- -- ----------------------------
- INSERT INTO `ip_tasks` VALUES ('5', '0', 'task name 1', '', '2.00', '0000-00-00', '3', '1', 'base', null, '1', null, null);
- INSERT INTO `ip_tasks` VALUES ('6', '0', 'task name 2', '', '5.00', '0000-00-00', '3', '1', 'base', null, '1', null, null);
- -- ----------------------------
- -- Table structure for ip_tax_rates
- -- ----------------------------
- DROP TABLE IF EXISTS `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 AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
- -- ----------------------------
- -- Records of ip_tax_rates
- -- ----------------------------
- INSERT INTO `ip_tax_rates` VALUES ('1', 'tax name', '24.00');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement