CREATE TABLE `0_stock_moves` (
`trans_id` int(11) NOT NULL AUTO_INCREMENT,
`trans_no` int(11) NOT NULL DEFAULT '0',
`stock_id` char(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`type` smallint(6) NOT NULL DEFAULT '0',
`loc_code` char(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`tran_date` date NOT NULL DEFAULT '0000-00-00',
`price` double NOT NULL DEFAULT '0',
`reference` char(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`qty` double NOT NULL DEFAULT '1',
`standard_cost` double NOT NULL DEFAULT '0',
PRIMARY KEY (`trans_id`),
KEY `type` (`type`,`trans_no`),
KEY `Move` (`stock_id`,`loc_code`,`tran_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `0_suppliers`
CREATE TABLE `0_suppliers` (
`supplier_id` int(11) NOT NULL AUTO_INCREMENT,
`supp_name` varchar(60) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`supp_ref` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`address` tinytext COLLATE utf8_unicode_ci NOT NULL,
`supp_address` tinytext COLLATE utf8_unicode_ci NOT NULL,
`gst_no` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`contact` varchar(60) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`supp_account_no` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`website` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`bank_account` varchar(60) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`curr_code` char(3) COLLATE utf8_unicode_ci DEFAULT NULL,
`payment_terms` int(11) DEFAULT NULL,
`tax_included` tinyint(1) NOT NULL DEFAULT '0',
`dimension_id` int(11) DEFAULT '0',
`dimension2_id` int(11) DEFAULT '0',
`tax_group_id` int(11) DEFAULT NULL,
`credit_limit` double NOT NULL DEFAULT '0',
`purchase_account` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`payable_account` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`payment_discount_account` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`notes` tinytext COLLATE utf8_unicode_ci NOT NULL,
`inactive` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`supplier_id`),
KEY `supp_ref` (`supp_ref`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `0_supp_allocations`
CREATE TABLE `0_supp_allocations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`person_id` int(11) DEFAULT NULL,
`amt` double unsigned DEFAULT NULL,
`date_alloc` date NOT NULL DEFAULT '0000-00-00',
`trans_no_from` int(11) DEFAULT NULL,
`trans_type_from` int(11) DEFAULT NULL,
`trans_no_to` int(11) DEFAULT NULL,
`trans_type_to` int(11) DEFAULT NULL,
UNIQUE KEY `trans_type_from` (`person_id`,`trans_type_from`,`trans_no_from`,`trans_type_to`,`trans_no_to`),
KEY `From` (`trans_type_from`,`trans_no_from`),
KEY `To` (`trans_type_to`,`trans_no_to`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `0_supp_invoice_items`
CREATE TABLE `0_supp_invoice_items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`supp_trans_no` int(11) DEFAULT NULL,
`supp_trans_type` int(11) DEFAULT NULL,
`gl_code` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`grn_item_id` int(11) DEFAULT NULL,
`po_detail_item_id` int(11) DEFAULT NULL,
`stock_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`description` tinytext COLLATE utf8_unicode_ci,
`quantity` double NOT NULL DEFAULT '0',
`unit_price` double NOT NULL DEFAULT '0',
`unit_tax` double NOT NULL DEFAULT '0',
`memo_` tinytext COLLATE utf8_unicode_ci,
`dimension_id` int(11) NOT NULL DEFAULT '0',
`dimension2_id` int(11) NOT NULL DEFAULT '0',
KEY `Transaction` (`supp_trans_type`,`supp_trans_no`,`stock_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `0_supp_trans`
CREATE TABLE `0_supp_trans` (
`trans_no` int(11) unsigned NOT NULL DEFAULT '0',
`type` smallint(6) unsigned NOT NULL DEFAULT '0',
`supplier_id` int(11) unsigned NOT NULL,
`reference` tinytext COLLATE utf8_unicode_ci NOT NULL,
`supp_reference` varchar(60) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`tran_date` date NOT NULL DEFAULT '0000-00-00',
`due_date` date NOT NULL DEFAULT '0000-00-00',
`ov_amount` double NOT NULL DEFAULT '0',
`ov_discount` double NOT NULL DEFAULT '0',
`ov_gst` double NOT NULL DEFAULT '0',
`rate` double NOT NULL DEFAULT '1',
`alloc` double NOT NULL DEFAULT '0',
`tax_included` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`type`,`trans_no`,`supplier_id`),
KEY `supplier_id` (`supplier_id`),
KEY `tran_date` (`tran_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
-- Table structure for table `0_sys_prefs`
CREATE TABLE `0_sys_prefs` (
`name` varchar(35) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`category` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
`type` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`length` smallint(6) DEFAULT NULL,
`value` text COLLATE utf8_unicode_ci NOT NULL,
KEY `category` (`category`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Dumping data for table `0_sys_prefs`
INSERT INTO `0_sys_prefs` VALUES
('accounts_alpha', 'glsetup.general', 'tinyint', 1, '0'),
('accumulate_shipping', 'glsetup.customer', 'tinyint', 1, '0'),
('add_pct', 'setup.company', 'int', 5, '-1'),
('allow_negative_prices', 'glsetup.inventory', 'tinyint', 1, '1'),
('allow_negative_stock', 'glsetup.inventory', 'tinyint', 1, '0'),
('alternative_tax_include_on_docs', 'setup.company', 'tinyint', 1, '0'),
('auto_curr_reval', 'setup.company', 'smallint', 6, '1'),
('bank_charge_act', 'glsetup.general', 'varchar', 15, '5690'),
('barcodes_on_stock', 'setup.company', 'tinyint', 1, '0'),
('base_sales', 'setup.company', 'int', 11, '1'),
('bcc_email', 'setup.company', 'varchar', 100, ''),
('company_logo_on_views', 'setup.company', 'tinyint', 1, '0'),
('company_logo_report', 'setup.company', 'tinyint', 1, '0'),
('coy_logo', 'setup.company', 'varchar', 100, ''),
('coy_name', 'setup.company', 'varchar', 60, '[[site_name]]'),
('coy_no', 'setup.company', 'varchar', 25, ''),
('creditors_act', 'glsetup.purchase', 'varchar', 15, '2100'),
('curr_default', 'setup.company', 'char', 3, 'USD'),
('debtors_act', 'glsetup.sales', 'varchar', 15, '1200'),
('default_adj_act', 'glsetup.items', 'varchar', 15, '5040'),
('default_cogs_act', 'glsetup.items', 'varchar', 15, '5010'),
('default_credit_limit', 'glsetup.customer', 'int', 11, '1000'),
('default_delivery_required', 'glsetup.sales', 'smallint', 6, '1'),
('default_dim_required', 'glsetup.dims', 'int', 11, '20'),
('default_inv_sales_act', 'glsetup.items', 'varchar', 15, '4010'),
('default_inventory_act', 'glsetup.items', 'varchar', 15, '1510'),
('default_loss_on_asset_disposal_act', 'glsetup.items', 'varchar', 15, '5660'),
('default_prompt_payment_act', 'glsetup.sales', 'varchar', 15, '4500'),
('default_quote_valid_days', 'glsetup.sales', 'smallint', 6, '30'),
('default_receival_required', 'glsetup.purchase', 'smallint', 6, '10'),
('default_sales_act', 'glsetup.sales', 'varchar', 15, '4010'),
('default_sales_discount_act', 'glsetup.sales', 'varchar', 15, '4510'),
('default_wip_act', 'glsetup.items', 'varchar', 15, '1530'),
('default_workorder_required', 'glsetup.manuf', 'int', 11, '20'),
('deferred_income_act', 'glsetup.sales', 'varchar', 15, '2105'),
('depreciation_period', 'glsetup.company', 'tinyint', 1, '1'),
('dim_on_recurrent_invoice', 'setup.company', 'tinyint', 1, '0'),
('domicile', 'setup.company', 'varchar', 55, ''),
('email', 'setup.company', 'varchar', 100, ''),
('exchange_diff_act', 'glsetup.general', 'varchar', 15, '4450'),
('f_year', 'setup.company', 'int', 11, '1'),
('fax', 'setup.company', 'varchar', 30, ''),
('freight_act', 'glsetup.customer', 'varchar', 15, '4430'),
('gl_closing_date', 'setup.closing_date', 'date', 8, ''),
('grn_clearing_act', 'glsetup.purchase', 'varchar', 15, '1550'),
('gst_no', 'setup.company', 'varchar', 25, ''),
('legal_text', 'glsetup.customer', 'tinytext', 0, ''),
('loc_notification', 'glsetup.inventory', 'tinyint', 1, '0'),
('login_tout', 'setup.company', 'smallint', 6, '600'),
('long_description_invoice', 'setup.company', 'tinyint', 1, '0'),
('max_days_in_docs', 'setup.company', 'smallint', 5, '180'),
('no_customer_list', 'setup.company', 'tinyint', 1, '0'),
('no_item_list', 'setup.company', 'tinyint', 1, '0'),
('no_supplier_list', 'setup.company', 'tinyint', 1, '0'),
('no_zero_lines_amount', 'glsetup.sales', 'tinyint', 1, '1'),
('past_due_days', 'glsetup.general', 'int', 11, '30'),
('phone', 'setup.company', 'varchar', 30, ''),
('po_over_charge', 'glsetup.purchase', 'int', 11, '10'),
('po_over_receive', 'glsetup.purchase', 'int', 11, '10'),
('postal_address', 'setup.company', 'tinytext', 0, 'N/A'),
('print_dialog_direct', 'setup.company', 'tinyint', 1, '0'),
('print_invoice_no', 'glsetup.sales', 'tinyint', 1, '0'),
('print_item_images_on_quote', 'glsetup.inventory', 'tinyint', 1, '0'),
('profit_loss_year_act', 'glsetup.general', 'varchar', 15, '9990'),
('pyt_discount_act', 'glsetup.purchase', 'varchar', 15, '5060'),
('ref_no_auto_increase', 'setup.company', 'tinyint', 1, '0'),
('retained_earnings_act', 'glsetup.general', 'varchar', 15, '3590'),
('round_to', 'setup.company', 'int', 5, '1'),
('shortname_name_in_list', 'setup.company', 'tinyint', 1, '0'),
('show_po_item_codes', 'glsetup.purchase', 'tinyint', 1, '0'),
('suppress_tax_rates', 'setup.company', 'tinyint', 1, '0'),
('tax_algorithm', 'glsetup.customer', 'tinyint', 1, '1'),
('tax_last', 'setup.company', 'int', 11, '1'),
('tax_prd', 'setup.company', 'int', 11, '1'),
('time_zone', 'setup.company', 'tinyint', 1, '0'),
('use_dimension', 'setup.company', 'tinyint', 1, '1'),
('use_fixed_assets', 'setup.company', 'tinyint', 1, '1'),
('use_manufacturing', 'setup.company', 'tinyint', 1, '1'),
('version_id', 'system', 'varchar', 11, '2.4.1');
-- --------------------------------------------------------
-- Table structure for table `0_tags`
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` smallint(6) NOT NULL,
`name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`description` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,
`inactive` tinyint(1) NOT NULL DEFAULT '0',
UNIQUE KEY `type` (`type`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `0_tag_associations`
CREATE TABLE `0_tag_associations` (
`record_id` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
`tag_id` int(11) NOT NULL,
PRIMARY KEY (`record_id`,`tag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
-- Table structure for table `0_tax_groups`
CREATE TABLE `0_tax_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(60) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`inactive` tinyint(1) NOT NULL DEFAULT '0',
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;
-- Dumping data for table `0_tax_groups`
INSERT INTO `0_tax_groups` VALUES
-- --------------------------------------------------------
-- Table structure for table `0_tax_group_items`
CREATE TABLE `0_tax_group_items` (
`tax_group_id` int(11) NOT NULL DEFAULT '0',
`tax_type_id` int(11) NOT NULL DEFAULT '0',
`tax_shipping` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`tax_group_id`,`tax_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Dumping data for table `0_tax_group_items`
INSERT INTO `0_tax_group_items` VALUES
-- --------------------------------------------------------
-- Table structure for table `0_tax_types`
CREATE TABLE `0_tax_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`rate` double NOT NULL DEFAULT '0',
`sales_gl_code` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`purchasing_gl_code` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`name` varchar(60) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`inactive` tinyint(1) NOT NULL DEFAULT '0',
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
-- Dumping data for table `0_tax_types`
INSERT INTO `0_tax_types` VALUES
(1, 5, '2150', '2150', 'Tax', 0);
-- --------------------------------------------------------
-- Table structure for table `0_trans_tax_details`
CREATE TABLE `0_trans_tax_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`trans_type` smallint(6) DEFAULT NULL,
`trans_no` int(11) DEFAULT NULL,
`tran_date` date NOT NULL,
`tax_type_id` int(11) NOT NULL DEFAULT '0',
`rate` double NOT NULL DEFAULT '0',
`ex_rate` double NOT NULL DEFAULT '1',
`included_in_price` tinyint(1) NOT NULL DEFAULT '0',
`net_amount` double NOT NULL DEFAULT '0',
`amount` double NOT NULL DEFAULT '0',
`memo` tinytext COLLATE utf8_unicode_ci,
`reg_type` tinyint(1) DEFAULT NULL,
KEY `Type_and_Number` (`trans_type`,`trans_no`),
KEY `tran_date` (`tran_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `0_useronline`
CREATE TABLE `0_useronline` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`timestamp` int(15) NOT NULL DEFAULT '0',
`ip` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`file` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
KEY `timestamp` (`timestamp`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `0_users`
`id` smallint(6) NOT NULL AUTO_INCREMENT,
`user_id` varchar(60) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`password` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`real_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`role_id` int(11) NOT NULL DEFAULT '1',
`phone` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`email` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`language` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
`date_format` tinyint(1) NOT NULL DEFAULT '0',
`date_sep` tinyint(1) NOT NULL DEFAULT '0',
`tho_sep` tinyint(1) NOT NULL DEFAULT '0',
`dec_sep` tinyint(1) NOT NULL DEFAULT '0',
`theme` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'default',
`page_size` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'A4',
`prices_dec` smallint(6) NOT NULL DEFAULT '2',
`qty_dec` smallint(6) NOT NULL DEFAULT '2',
`rates_dec` smallint(6) NOT NULL DEFAULT '4',
`percent_dec` smallint(6) NOT NULL DEFAULT '1',
`show_gl` tinyint(1) NOT NULL DEFAULT '1',
`show_codes` tinyint(1) NOT NULL DEFAULT '0',
`show_hints` tinyint(1) NOT NULL DEFAULT '0',
`last_visit_date` datetime DEFAULT NULL,
`query_size` tinyint(1) unsigned NOT NULL DEFAULT '10',
`graphic_links` tinyint(1) DEFAULT '1',
`pos` smallint(6) DEFAULT '1',
`print_profile` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`rep_popup` tinyint(1) DEFAULT '1',
`sticky_doc_date` tinyint(1) DEFAULT '0',
`startup_tab` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`transaction_days` smallint(6) NOT NULL DEFAULT '30',
`save_report_selections` smallint(6) NOT NULL DEFAULT '0',
`use_date_picker` tinyint(1) NOT NULL DEFAULT '1',
`def_print_destination` tinyint(1) NOT NULL DEFAULT '0',
`def_print_orientation` tinyint(1) NOT NULL DEFAULT '0',
`inactive` tinyint(1) NOT NULL DEFAULT '0',
UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
-- Dumping data for table `0_users`
INSERT INTO `0_users` VALUES
(1, '[[admin_username]]', '[[admin_pass]]', 'Administrator', 2, '', '[[admin_email]]', 'C', 0, 0, 0, 0, 'default', 'Letter', 2, 2, 4, 1, 1, 0, 0, '2021-05-07 13:58:33', 10, 1, 1, '1', 1, 0, 'orders', 30, 0, 1, 0, 0, 0);
-- --------------------------------------------------------
-- Table structure for table `0_voided`
CREATE TABLE `0_voided` (
`type` int(11) NOT NULL DEFAULT '0',
`id` int(11) NOT NULL DEFAULT '0',
`date_` date NOT NULL DEFAULT '0000-00-00',
`memo_` tinytext COLLATE utf8_unicode_ci NOT NULL,
UNIQUE KEY `id` (`type`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
-- Table structure for table `0_workcentres`
CREATE TABLE `0_workcentres` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` char(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`description` char(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`inactive` tinyint(1) NOT NULL DEFAULT '0',
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
-- Dumping data for table `0_workcentres`
INSERT INTO `0_workcentres` VALUES
(1, 'Work Centre', '', 0);
-- --------------------------------------------------------
-- Table structure for table `0_workorders`
CREATE TABLE `0_workorders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`wo_ref` varchar(60) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`loc_code` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`units_reqd` double NOT NULL DEFAULT '1',
`stock_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`date_` date NOT NULL DEFAULT '0000-00-00',
`type` tinyint(4) NOT NULL DEFAULT '0',
`required_by` date NOT NULL DEFAULT '0000-00-00',
`released_date` date NOT NULL DEFAULT '0000-00-00',
`units_issued` double NOT NULL DEFAULT '0',
`closed` tinyint(1) NOT NULL DEFAULT '0',
`released` tinyint(1) NOT NULL DEFAULT '0',
`additional_costs` double NOT NULL DEFAULT '0',
UNIQUE KEY `wo_ref` (`wo_ref`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `0_wo_costing`
CREATE TABLE `0_wo_costing` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`workorder_id` int(11) NOT NULL DEFAULT '0',
`cost_type` tinyint(1) NOT NULL DEFAULT '0',
`trans_type` int(11) NOT NULL DEFAULT '0',
`trans_no` int(11) NOT NULL DEFAULT '0',
`factor` double NOT NULL DEFAULT '1',
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `0_wo_issues`
CREATE TABLE `0_wo_issues` (
`issue_no` int(11) NOT NULL AUTO_INCREMENT,
`workorder_id` int(11) NOT NULL DEFAULT '0',
`reference` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`issue_date` date DEFAULT NULL,
`loc_code` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
`workcentre_id` int(11) DEFAULT NULL,
PRIMARY KEY (`issue_no`),
KEY `workorder_id` (`workorder_id`)