1 # MySQL dump of database 'unstable' on host 'localhost'
2 # Backup Date and Time: 2009-01-10 16:22
3 # Built by FrontAccounting 2.1.0 CVS
4 # http://frontaccounting.net
5 # Company: Company name
10 ### Structure of table `0_areas` ###
12 DROP TABLE IF EXISTS `0_areas`;
14 CREATE TABLE `0_areas` (
15 `area_code` int(11) NOT NULL auto_increment,
16 `description` varchar(60) NOT NULL default '',
17 PRIMARY KEY (`area_code`),
18 UNIQUE KEY `description` (`description`)
19 ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
22 ### Data of table `0_areas` ###
24 INSERT INTO `0_areas` VALUES ('1', 'USA');
27 ### Structure of table `0_attachments` ###
29 DROP TABLE IF EXISTS `0_attachments`;
31 CREATE TABLE `0_attachments` (
32 `id` int(11) unsigned NOT NULL auto_increment,
33 `description` varchar(60) NOT NULL default '',
34 `type_no` int(11) NOT NULL default '0',
35 `trans_no` int(11) NOT NULL default '0',
36 `unique_name` varchar(60) NOT NULL default '',
37 `tran_date` date NOT NULL default '0000-00-00',
38 `filename` varchar(60) NOT NULL default '',
39 `filesize` int(11) NOT NULL default '0',
40 `filetype` varchar(60) NOT NULL default '',
42 KEY `type_no` (`type_no`,`trans_no`)
43 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
46 ### Data of table `0_attachments` ###
50 ### Structure of table `0_bank_accounts` ###
52 DROP TABLE IF EXISTS `0_bank_accounts`;
54 CREATE TABLE `0_bank_accounts` (
55 `account_code` varchar(11) NOT NULL default '',
56 `account_type` smallint(6) NOT NULL default '0',
57 `bank_account_name` varchar(60) NOT NULL default '',
58 `bank_account_number` varchar(100) NOT NULL default '',
59 `bank_name` varchar(60) NOT NULL default '',
60 `bank_address` tinytext,
61 `bank_curr_code` char(3) NOT NULL default '',
62 `id` smallint(6) NOT NULL auto_increment,
63 `last_reconciled_date` timestamp NOT NULL default '0000-00-00 00:00:00',
64 `ending_reconcile_balance` double NOT NULL default '0',
66 KEY `bank_account_name` (`bank_account_name`),
67 KEY `bank_account_number` (`bank_account_number`)
68 ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
71 ### Data of table `0_bank_accounts` ###
73 INSERT INTO `0_bank_accounts` VALUES ('1700', '0', 'Current account', 'N/A', 'N/A', '', 'USD', '1', '0000-00-00 00:00:00', '0');
74 INSERT INTO `0_bank_accounts` VALUES ('1705', '0', 'Petty Cash account', 'N/A', 'N/A', '', 'USD', '2', '0000-00-00 00:00:00', '0');
77 ### Structure of table `0_bank_trans` ###
79 DROP TABLE IF EXISTS `0_bank_trans`;
81 CREATE TABLE `0_bank_trans` (
82 `id` int(11) NOT NULL auto_increment,
83 `type` smallint(6) default NULL,
84 `trans_no` int(11) default NULL,
85 `bank_act` varchar(11) default NULL,
86 `ref` varchar(40) default NULL,
87 `trans_date` date NOT NULL default '0000-00-00',
88 `bank_trans_type_id` int(10) unsigned default NULL,
89 `amount` double default NULL,
90 `dimension_id` int(11) NOT NULL default '0',
91 `dimension2_id` int(11) NOT NULL default '0',
92 `person_type_id` int(11) NOT NULL default '0',
94 `reconciled` tinyint(1) NOT NULL default '0',
96 KEY `bank_act` (`bank_act`,`ref`),
97 KEY `type` (`type`,`trans_no`)
98 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
101 ### Data of table `0_bank_trans` ###
105 ### Structure of table `0_bom` ###
107 DROP TABLE IF EXISTS `0_bom`;
109 CREATE TABLE `0_bom` (
110 `id` int(11) NOT NULL auto_increment,
111 `parent` char(20) NOT NULL default '',
112 `component` char(20) NOT NULL default '',
113 `workcentre_added` int(11) NOT NULL default '0',
114 `loc_code` char(5) NOT NULL default '',
115 `quantity` double NOT NULL default '1',
116 PRIMARY KEY (`parent`,`component`,`workcentre_added`,`loc_code`),
117 KEY `component` (`component`),
119 KEY `loc_code` (`loc_code`),
120 KEY `parent` (`parent`,`loc_code`),
121 KEY `Parent_2` (`parent`),
122 KEY `workcentre_added` (`workcentre_added`)
123 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
126 ### Data of table `0_bom` ###
130 ### Structure of table `0_budget_trans` ###
132 DROP TABLE IF EXISTS `0_budget_trans`;
134 CREATE TABLE `0_budget_trans` (
135 `counter` int(11) NOT NULL auto_increment,
136 `type` smallint(6) NOT NULL default '0',
137 `type_no` bigint(16) NOT NULL default '1',
138 `tran_date` date NOT NULL default '0000-00-00',
139 `account` varchar(11) NOT NULL default '',
140 `memo_` tinytext NOT NULL,
141 `amount` double NOT NULL default '0',
142 `dimension_id` int(11) default '0',
143 `dimension2_id` int(11) default '0',
144 `person_type_id` int(11) default NULL,
145 `person_id` tinyblob,
146 PRIMARY KEY (`counter`),
147 KEY `Type_and_Number` (`type`,`type_no`)
148 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
151 ### Data of table `0_budget_trans` ###
155 ### Structure of table `0_chart_class` ###
157 DROP TABLE IF EXISTS `0_chart_class`;
159 CREATE TABLE `0_chart_class` (
160 `cid` int(11) NOT NULL default '0',
161 `class_name` varchar(60) NOT NULL default '',
162 `balance_sheet` tinyint(1) NOT NULL default '0',
164 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
167 ### Data of table `0_chart_class` ###
169 INSERT INTO `0_chart_class` VALUES ('1', 'Assets', '1');
170 INSERT INTO `0_chart_class` VALUES ('2', 'Liabilities', '1');
171 INSERT INTO `0_chart_class` VALUES ('3', 'Income', '0');
172 INSERT INTO `0_chart_class` VALUES ('4', 'Costs', '0');
175 ### Structure of table `0_chart_master` ###
177 DROP TABLE IF EXISTS `0_chart_master`;
179 CREATE TABLE `0_chart_master` (
180 `account_code` varchar(11) NOT NULL default '',
181 `account_code2` varchar(11) default '',
182 `account_name` varchar(60) NOT NULL default '',
183 `account_type` int(11) NOT NULL default '0',
184 `tax_code` int(11) NOT NULL default '0',
185 PRIMARY KEY (`account_code`),
186 KEY `account_code` (`account_code`),
187 KEY `account_name` (`account_name`)
188 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
191 ### Data of table `0_chart_master` ###
193 INSERT INTO `0_chart_master` VALUES ('3000', '', 'Sales', '1', '1');
194 INSERT INTO `0_chart_master` VALUES ('3010', '', 'Sales - Wholesale', '1', '1');
195 INSERT INTO `0_chart_master` VALUES ('3020', '', 'Sales of Other items', '1', '1');
196 INSERT INTO `0_chart_master` VALUES ('3400', '', 'Difference On Exchange', '1', '0');
197 INSERT INTO `0_chart_master` VALUES ('5000', '', 'Direct Labour', '2', '0');
198 INSERT INTO `0_chart_master` VALUES ('5050', '', 'Direct Labour Recovery', '2', '0');
199 INSERT INTO `0_chart_master` VALUES ('4200', '', 'Material Usage Varaiance', '2', '4');
200 INSERT INTO `0_chart_master` VALUES ('4210', '', 'Consumable Materials', '2', '4');
201 INSERT INTO `0_chart_master` VALUES ('4220', '', 'Purchase price Variance', '2', '0');
202 INSERT INTO `0_chart_master` VALUES ('4000', '', 'Purchases of materials', '2', '4');
203 INSERT INTO `0_chart_master` VALUES ('4250', '', 'Discounts Received', '2', '0');
204 INSERT INTO `0_chart_master` VALUES ('4260', '', 'Exchange Variation', '2', '0');
205 INSERT INTO `0_chart_master` VALUES ('4300', '', 'Freight Inwards', '2', '4');
206 INSERT INTO `0_chart_master` VALUES ('4010', '', 'Cost of Goods Sold - Retail', '2', '4');
207 INSERT INTO `0_chart_master` VALUES ('6790', '', 'Bank Charges', '5', '4');
208 INSERT INTO `0_chart_master` VALUES ('6800', '', 'Entertainments', '5', '4');
209 INSERT INTO `0_chart_master` VALUES ('6810', '', 'Legal Expenses', '5', '4');
210 INSERT INTO `0_chart_master` VALUES ('6600', '', 'Repairs and Maintenance Office', '5', '4');
211 INSERT INTO `0_chart_master` VALUES ('6730', '', 'phone', '5', '4');
212 INSERT INTO `0_chart_master` VALUES ('8200', '', 'Bank Interest', '52', '0');
213 INSERT INTO `0_chart_master` VALUES ('6840', '', 'Credit Control', '5', '0');
214 INSERT INTO `0_chart_master` VALUES ('7040', '', 'Depreciation Office Equipment', '51', '0');
215 INSERT INTO `0_chart_master` VALUES ('3800', '', 'Freight Outwards', '5', '4');
216 INSERT INTO `0_chart_master` VALUES ('4500', '', 'Packaging', '5', '4');
217 INSERT INTO `0_chart_master` VALUES ('6400', '', 'Commissions', '5', '0');
218 INSERT INTO `0_chart_master` VALUES ('3200', '', 'Prompt Payment Discounts', '1', '0');
219 INSERT INTO `0_chart_master` VALUES ('6700', '', 'General Expenses', '5', '4');
220 INSERT INTO `0_chart_master` VALUES ('5200', '', 'Indirect Labour', '2', '0');
221 INSERT INTO `0_chart_master` VALUES ('5210', '', 'Overhead Recovery', '5', '0');
222 INSERT INTO `0_chart_master` VALUES ('1700', '', 'Bank account', '10', '0');
223 INSERT INTO `0_chart_master` VALUES ('1705', '', 'Petty Cash', '10', '0');
224 INSERT INTO `0_chart_master` VALUES ('1710', '', 'Foreign currency account', '10', '0');
225 INSERT INTO `0_chart_master` VALUES ('1500', '', 'Accounts Receivable', '20', '0');
226 INSERT INTO `0_chart_master` VALUES ('1400', '', 'Stocks of Raw Materials', '45', '0');
227 INSERT INTO `0_chart_master` VALUES ('1410', '', 'Stocks of Work In Progress', '45', '0');
228 INSERT INTO `0_chart_master` VALUES ('1420', '', 'Stocks of Finsihed Goods', '45', '0');
229 INSERT INTO `0_chart_master` VALUES ('1430', '', 'Goods Received Clearing account', '30', '0');
230 INSERT INTO `0_chart_master` VALUES ('2630', '', 'Accounts Payable', '30', '0');
231 INSERT INTO `0_chart_master` VALUES ('2660', '', 'VAT out 5', '30', '0');
232 INSERT INTO `0_chart_master` VALUES ('2662', '', 'VAT out 1', '30', '0');
233 INSERT INTO `0_chart_master` VALUES ('2664', '', 'VAT out 25', '30', '0');
234 INSERT INTO `0_chart_master` VALUES ('2680', '', 'VAT In 5', '30', '0');
235 INSERT INTO `0_chart_master` VALUES ('2682', '', 'VAT In 25', '30', '0');
236 INSERT INTO `0_chart_master` VALUES ('2050', '', 'Retained Earnings', '50', '0');
237 INSERT INTO `0_chart_master` VALUES ('2000', '', 'Share Capital', '50', '0');
240 ### Structure of table `0_chart_types` ###
242 DROP TABLE IF EXISTS `0_chart_types`;
244 CREATE TABLE `0_chart_types` (
245 `id` int(11) NOT NULL auto_increment,
246 `name` varchar(60) NOT NULL default '',
247 `class_id` tinyint(1) NOT NULL default '0',
248 `parent` int(11) NOT NULL default '-1',
251 ) ENGINE=MyISAM AUTO_INCREMENT=53 DEFAULT CHARSET=latin1 AUTO_INCREMENT=53 ;
254 ### Data of table `0_chart_types` ###
256 INSERT INTO `0_chart_types` VALUES ('1', 'Sales', '3', '-1');
257 INSERT INTO `0_chart_types` VALUES ('2', 'Cost of Sales', '4', '-1');
258 INSERT INTO `0_chart_types` VALUES ('5', 'Expenses', '4', '-1');
259 INSERT INTO `0_chart_types` VALUES ('10', 'Cash/Bank', '1', '-1');
260 INSERT INTO `0_chart_types` VALUES ('20', 'Accounts Receivable', '1', '-1');
261 INSERT INTO `0_chart_types` VALUES ('30', 'Accounts Payable', '2', '-1');
262 INSERT INTO `0_chart_types` VALUES ('40', 'Fixed Assets', '1', '-1');
263 INSERT INTO `0_chart_types` VALUES ('45', 'Inventory', '1', '-1');
264 INSERT INTO `0_chart_types` VALUES ('50', 'Equity', '2', '-1');
265 INSERT INTO `0_chart_types` VALUES ('51', 'Depreciations', '4', '-1');
266 INSERT INTO `0_chart_types` VALUES ('52', 'Financials', '4', '-1');
269 ### Structure of table `0_comments` ###
271 DROP TABLE IF EXISTS `0_comments`;
273 CREATE TABLE `0_comments` (
274 `type` int(11) NOT NULL default '0',
275 `id` int(11) NOT NULL default '0',
276 `date_` date default '0000-00-00',
278 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
281 ### Data of table `0_comments` ###
285 ### Structure of table `0_company` ###
287 DROP TABLE IF EXISTS `0_company`;
289 CREATE TABLE `0_company` (
290 `coy_code` int(11) NOT NULL default '1',
291 `coy_name` varchar(60) NOT NULL default '',
292 `gst_no` varchar(25) NOT NULL default '',
293 `coy_no` varchar(25) NOT NULL default '0',
294 `tax_prd` int(11) NOT NULL default '1',
295 `tax_last` int(11) NOT NULL default '1',
296 `postal_address` tinytext NOT NULL,
297 `phone` varchar(30) NOT NULL default '',
298 `fax` varchar(30) NOT NULL default '',
299 `email` varchar(100) NOT NULL default '',
300 `coy_logo` varchar(100) NOT NULL default '',
301 `domicile` varchar(55) NOT NULL default '',
302 `curr_default` char(3) NOT NULL default '',
303 `debtors_act` varchar(11) NOT NULL default '',
304 `pyt_discount_act` varchar(11) NOT NULL default '',
305 `creditors_act` varchar(11) NOT NULL default '',
306 `grn_act` varchar(11) NOT NULL default '',
307 `exchange_diff_act` varchar(11) NOT NULL default '',
308 `purch_exchange_diff_act` varchar(11) NOT NULL default '',
309 `retained_earnings_act` varchar(11) NOT NULL default '',
310 `freight_act` varchar(11) NOT NULL default '',
311 `default_sales_act` varchar(11) NOT NULL default '',
312 `default_sales_discount_act` varchar(11) NOT NULL default '',
313 `default_prompt_payment_act` varchar(11) NOT NULL default '',
314 `default_inventory_act` varchar(11) NOT NULL default '',
315 `default_cogs_act` varchar(11) NOT NULL default '',
316 `default_adj_act` varchar(11) NOT NULL default '',
317 `default_inv_sales_act` varchar(11) NOT NULL default '',
318 `default_assembly_act` varchar(11) NOT NULL default '',
319 `payroll_act` varchar(11) NOT NULL default '',
320 `custom1_name` varchar(60) NOT NULL default '',
321 `custom2_name` varchar(60) NOT NULL default '',
322 `custom3_name` varchar(60) NOT NULL default '',
323 `custom1_value` varchar(100) NOT NULL default '',
324 `custom2_value` varchar(100) NOT NULL default '',
325 `custom3_value` varchar(100) NOT NULL default '',
326 `allow_negative_stock` tinyint(1) NOT NULL default '0',
327 `po_over_receive` int(11) NOT NULL default '10',
328 `po_over_charge` int(11) NOT NULL default '10',
329 `default_credit_limit` int(11) NOT NULL default '1000',
330 `default_workorder_required` int(11) NOT NULL default '20',
331 `default_dim_required` int(11) NOT NULL default '20',
332 `past_due_days` int(11) NOT NULL default '30',
333 `use_dimension` tinyint(1) default '0',
334 `f_year` int(11) NOT NULL default '1',
335 `no_item_list` tinyint(1) NOT NULL default '0',
336 `no_customer_list` tinyint(1) NOT NULL default '0',
337 `no_supplier_list` tinyint(1) NOT NULL default '0',
338 `base_sales` int(11) NOT NULL default '-1',
339 `foreign_codes` tinyint(1) NOT NULL default '0',
340 `accumulate_shipping` tinyint(1) NOT NULL default '0',
341 `legal_text` tinytext NOT NULL,
342 PRIMARY KEY (`coy_code`)
343 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
346 ### Data of table `0_company` ###
348 INSERT INTO `0_company` VALUES ('1', 'Company name', '', '', '1', '1', 'N/A', '', '', '', '', '', 'USD', '1500', '4250', '2630', '1430', '4260', '4220', '2050', '3800', '3000', '3000', '3200', '1420', '4010', '4210', '3000', '1410', '5000', '', '', '', '', '', '', '0', '10', '10', '1000', '20', '20', '30', '1', '1', '0', '0', '0', '-1', '0', '0', '');
351 ### Structure of table `0_credit_status` ###
353 DROP TABLE IF EXISTS `0_credit_status`;
355 CREATE TABLE `0_credit_status` (
356 `id` int(11) NOT NULL auto_increment,
357 `reason_description` char(100) NOT NULL default '',
358 `dissallow_invoices` tinyint(1) NOT NULL default '0',
360 UNIQUE KEY `reason_description` (`reason_description`)
361 ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
364 ### Data of table `0_credit_status` ###
366 INSERT INTO `0_credit_status` VALUES ('1', 'Good History', '0');
367 INSERT INTO `0_credit_status` VALUES ('3', 'No more work until payment received', '1');
368 INSERT INTO `0_credit_status` VALUES ('4', 'In liquidation', '1');
371 ### Structure of table `0_currencies` ###
373 DROP TABLE IF EXISTS `0_currencies`;
375 CREATE TABLE `0_currencies` (
376 `currency` varchar(60) NOT NULL default '',
377 `curr_abrev` char(3) NOT NULL default '',
378 `curr_symbol` varchar(10) NOT NULL default '',
379 `country` varchar(100) NOT NULL default '',
380 `hundreds_name` varchar(15) NOT NULL default '',
381 PRIMARY KEY (`curr_abrev`)
382 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
385 ### Data of table `0_currencies` ###
387 INSERT INTO `0_currencies` VALUES ('Euro', 'EUR', '?', 'Europe', 'Cents');
388 INSERT INTO `0_currencies` VALUES ('Pounds', 'GBP', '?', 'England', 'Pence');
389 INSERT INTO `0_currencies` VALUES ('US Dollars', 'USD', '$', 'United States', 'Cents');
392 ### Structure of table `0_cust_allocations` ###
394 DROP TABLE IF EXISTS `0_cust_allocations`;
396 CREATE TABLE `0_cust_allocations` (
397 `id` int(11) NOT NULL auto_increment,
398 `amt` double unsigned default NULL,
399 `date_alloc` date NOT NULL default '0000-00-00',
400 `trans_no_from` int(11) default NULL,
401 `trans_type_from` int(11) default NULL,
402 `trans_no_to` int(11) default NULL,
403 `trans_type_to` int(11) default NULL,
405 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
408 ### Data of table `0_cust_allocations` ###
412 ### Structure of table `0_cust_branch` ###
414 DROP TABLE IF EXISTS `0_cust_branch`;
416 CREATE TABLE `0_cust_branch` (
417 `branch_code` int(11) NOT NULL auto_increment,
418 `debtor_no` int(11) NOT NULL default '0',
419 `br_name` varchar(60) NOT NULL default '',
420 `br_address` tinytext NOT NULL,
421 `area` int(11) default NULL,
422 `salesman` int(11) NOT NULL default '0',
423 `phone` varchar(30) NOT NULL default '',
424 `fax` varchar(30) NOT NULL default '',
425 `contact_name` varchar(60) NOT NULL default '',
426 `email` varchar(100) NOT NULL default '',
427 `default_location` varchar(5) NOT NULL default '',
428 `tax_group_id` int(11) default NULL,
429 `sales_account` varchar(11) default NULL,
430 `sales_discount_account` varchar(11) default NULL,
431 `receivables_account` varchar(11) default NULL,
432 `payment_discount_account` varchar(11) default NULL,
433 `default_ship_via` int(11) NOT NULL default '1',
434 `disable_trans` tinyint(4) NOT NULL default '0',
435 `br_post_address` tinytext NOT NULL,
436 `group_no` int(11) NOT NULL default '0',
437 PRIMARY KEY (`branch_code`,`debtor_no`),
438 KEY `branch_code` (`branch_code`),
439 KEY `br_name` (`br_name`)
440 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
443 ### Data of table `0_cust_branch` ###
447 ### Structure of table `0_debtor_trans` ###
449 DROP TABLE IF EXISTS `0_debtor_trans`;
451 CREATE TABLE `0_debtor_trans` (
452 `trans_no` int(11) unsigned NOT NULL default '0',
453 `type` smallint(6) unsigned NOT NULL default '0',
454 `version` tinyint(1) unsigned NOT NULL default '0',
455 `debtor_no` int(11) unsigned default NULL,
456 `branch_code` int(11) NOT NULL default '-1',
457 `tran_date` date NOT NULL default '0000-00-00',
458 `due_date` date NOT NULL default '0000-00-00',
459 `reference` varchar(60) NOT NULL default '',
460 `tpe` int(11) NOT NULL default '0',
461 `order_` int(11) NOT NULL default '0',
462 `ov_amount` double NOT NULL default '0',
463 `ov_gst` double NOT NULL default '0',
464 `ov_freight` double NOT NULL default '0',
465 `ov_freight_tax` double NOT NULL default '0',
466 `ov_discount` double NOT NULL default '0',
467 `alloc` double NOT NULL default '0',
468 `rate` double NOT NULL default '1',
469 `ship_via` int(11) default NULL,
470 `trans_link` int(11) NOT NULL default '0',
471 `dimension_id` int(11) NOT NULL default '0',
472 `dimension2_id` int(11) NOT NULL default '0',
473 PRIMARY KEY (`trans_no`,`type`),
474 KEY `debtor_no` (`debtor_no`,`branch_code`)
475 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
478 ### Data of table `0_debtor_trans` ###
482 ### Structure of table `0_debtor_trans_details` ###
484 DROP TABLE IF EXISTS `0_debtor_trans_details`;
486 CREATE TABLE `0_debtor_trans_details` (
487 `id` int(11) NOT NULL auto_increment,
488 `debtor_trans_no` int(11) default NULL,
489 `debtor_trans_type` int(11) default NULL,
490 `stock_id` varchar(20) NOT NULL default '',
491 `description` tinytext,
492 `unit_price` double NOT NULL default '0',
493 `unit_tax` double NOT NULL default '0',
494 `quantity` double NOT NULL default '0',
495 `discount_percent` double NOT NULL default '0',
496 `standard_cost` double NOT NULL default '0',
497 `qty_done` double NOT NULL default '0',
499 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
502 ### Data of table `0_debtor_trans_details` ###
506 ### Structure of table `0_debtor_trans_tax_details` ###
508 DROP TABLE IF EXISTS `0_debtor_trans_tax_details`;
510 CREATE TABLE `0_debtor_trans_tax_details` (
511 `id` int(11) NOT NULL auto_increment,
512 `debtor_trans_no` int(11) default NULL,
513 `debtor_trans_type` int(11) default NULL,
514 `tax_type_id` int(11) NOT NULL default '0',
515 `tax_type_name` varchar(60) default NULL,
516 `rate` double NOT NULL default '0',
517 `included_in_price` tinyint(1) NOT NULL default '0',
518 `amount` double NOT NULL default '0',
520 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
523 ### Data of table `0_debtor_trans_tax_details` ###
527 ### Structure of table `0_debtors_master` ###
529 DROP TABLE IF EXISTS `0_debtors_master`;
531 CREATE TABLE `0_debtors_master` (
532 `debtor_no` int(11) NOT NULL auto_increment,
533 `name` varchar(60) NOT NULL default '',
535 `email` varchar(100) NOT NULL default '',
536 `tax_id` varchar(55) NOT NULL default '',
537 `curr_code` char(3) NOT NULL default '',
538 `sales_type` int(11) NOT NULL default '1',
539 `dimension_id` int(11) NOT NULL default '0',
540 `dimension2_id` int(11) NOT NULL default '0',
541 `credit_status` int(11) NOT NULL default '0',
542 `payment_terms` int(11) default NULL,
543 `discount` double NOT NULL default '0',
544 `pymt_discount` double NOT NULL default '0',
545 `credit_limit` float NOT NULL default '1000',
546 PRIMARY KEY (`debtor_no`),
547 UNIQUE KEY `name` (`name`)
548 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
551 ### Data of table `0_debtors_master` ###
555 ### Structure of table `0_dimensions` ###
557 DROP TABLE IF EXISTS `0_dimensions`;
559 CREATE TABLE `0_dimensions` (
560 `id` int(11) NOT NULL auto_increment,
561 `reference` varchar(60) NOT NULL default '',
562 `name` varchar(60) NOT NULL default '',
563 `type_` tinyint(1) NOT NULL default '1',
564 `closed` tinyint(1) NOT NULL default '0',
565 `date_` date NOT NULL default '0000-00-00',
566 `due_date` date NOT NULL default '0000-00-00',
568 UNIQUE KEY `reference` (`reference`)
569 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
572 ### Data of table `0_dimensions` ###
576 ### Structure of table `0_exchange_rates` ###
578 DROP TABLE IF EXISTS `0_exchange_rates`;
580 CREATE TABLE `0_exchange_rates` (
581 `id` int(11) NOT NULL auto_increment,
582 `curr_code` char(3) NOT NULL default '',
583 `rate_buy` double NOT NULL default '0',
584 `rate_sell` double NOT NULL default '0',
585 `date_` date NOT NULL default '0000-00-00',
587 UNIQUE KEY `curr_code` (`curr_code`,`date_`)
588 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
591 ### Data of table `0_exchange_rates` ###
595 ### Structure of table `0_fiscal_year` ###
597 DROP TABLE IF EXISTS `0_fiscal_year`;
599 CREATE TABLE `0_fiscal_year` (
600 `id` int(11) NOT NULL auto_increment,
601 `begin` date default '0000-00-00',
602 `end` date default '0000-00-00',
603 `closed` tinyint(1) NOT NULL default '0',
605 ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
608 ### Data of table `0_fiscal_year` ###
610 INSERT INTO `0_fiscal_year` VALUES ('1', '2008-01-01', '2008-12-31', '0');
613 ### Structure of table `0_gl_trans` ###
615 DROP TABLE IF EXISTS `0_gl_trans`;
617 CREATE TABLE `0_gl_trans` (
618 `counter` int(11) NOT NULL auto_increment,
619 `type` smallint(6) NOT NULL default '0',
620 `type_no` bigint(16) NOT NULL default '1',
621 `tran_date` date NOT NULL default '0000-00-00',
622 `account` varchar(11) NOT NULL default '',
623 `memo_` tinytext NOT NULL,
624 `amount` double NOT NULL default '0',
625 `dimension_id` int(11) NOT NULL default '0',
626 `dimension2_id` int(11) NOT NULL default '0',
627 `person_type_id` int(11) default NULL,
628 `person_id` tinyblob,
629 PRIMARY KEY (`counter`),
630 KEY `Type_and_Number` (`type`,`type_no`)
631 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
634 ### Data of table `0_gl_trans` ###
638 ### Structure of table `0_grn_batch` ###
640 DROP TABLE IF EXISTS `0_grn_batch`;
642 CREATE TABLE `0_grn_batch` (
643 `id` int(11) NOT NULL auto_increment,
644 `supplier_id` int(11) NOT NULL default '0',
645 `purch_order_no` int(11) default NULL,
646 `reference` varchar(60) NOT NULL default '',
647 `delivery_date` date NOT NULL default '0000-00-00',
648 `loc_code` varchar(5) default NULL,
650 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
653 ### Data of table `0_grn_batch` ###
657 ### Structure of table `0_grn_items` ###
659 DROP TABLE IF EXISTS `0_grn_items`;
661 CREATE TABLE `0_grn_items` (
662 `id` int(11) NOT NULL auto_increment,
663 `grn_batch_id` int(11) default NULL,
664 `po_detail_item` int(11) NOT NULL default '0',
665 `item_code` varchar(20) NOT NULL default '',
666 `description` tinytext,
667 `qty_recd` double NOT NULL default '0',
668 `quantity_inv` double NOT NULL default '0',
670 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
673 ### Data of table `0_grn_items` ###
677 ### Structure of table `0_groups` ###
679 DROP TABLE IF EXISTS `0_groups`;
681 CREATE TABLE `0_groups` (
682 `id` smallint(6) unsigned NOT NULL auto_increment,
683 `description` varchar(60) NOT NULL default '',
685 UNIQUE KEY `description` (`description`)
686 ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
689 ### Data of table `0_groups` ###
691 INSERT INTO `0_groups` VALUES ('1', 'Small');
692 INSERT INTO `0_groups` VALUES ('2', 'Medium');
693 INSERT INTO `0_groups` VALUES ('3', 'Large');
696 ### Structure of table `0_item_codes` ###
698 DROP TABLE IF EXISTS `0_item_codes`;
700 CREATE TABLE `0_item_codes` (
701 `id` int(11) unsigned NOT NULL auto_increment,
702 `item_code` varchar(20) NOT NULL,
703 `stock_id` varchar(20) NOT NULL,
704 `description` varchar(200) NOT NULL default '',
705 `category_id` smallint(6) unsigned NOT NULL,
706 `quantity` double NOT NULL default '1',
707 `is_foreign` tinyint(1) NOT NULL default '0',
709 UNIQUE KEY `stock_id` (`stock_id`,`item_code`)
710 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
713 ### Data of table `0_item_codes` ###
717 ### Structure of table `0_item_tax_type_exemptions` ###
719 DROP TABLE IF EXISTS `0_item_tax_type_exemptions`;
721 CREATE TABLE `0_item_tax_type_exemptions` (
722 `item_tax_type_id` int(11) NOT NULL default '0',
723 `tax_type_id` int(11) NOT NULL default '0',
724 PRIMARY KEY (`item_tax_type_id`,`tax_type_id`)
725 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
728 ### Data of table `0_item_tax_type_exemptions` ###
732 ### Structure of table `0_item_tax_types` ###
734 DROP TABLE IF EXISTS `0_item_tax_types`;
736 CREATE TABLE `0_item_tax_types` (
737 `id` int(11) NOT NULL auto_increment,
738 `name` varchar(60) NOT NULL default '',
739 `exempt` tinyint(1) NOT NULL default '0',
741 UNIQUE KEY `name` (`name`)
742 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
745 ### Data of table `0_item_tax_types` ###
749 ### Structure of table `0_item_units` ###
751 DROP TABLE IF EXISTS `0_item_units`;
753 CREATE TABLE `0_item_units` (
754 `abbr` varchar(20) NOT NULL,
755 `name` varchar(40) NOT NULL,
756 `decimals` tinyint(2) NOT NULL,
757 PRIMARY KEY (`abbr`),
758 UNIQUE KEY `name` (`name`)
759 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
762 ### Data of table `0_item_units` ###
764 INSERT INTO `0_item_units` VALUES ('each', 'Each', '0');
767 ### Structure of table `0_loc_stock` ###
769 DROP TABLE IF EXISTS `0_loc_stock`;
771 CREATE TABLE `0_loc_stock` (
772 `loc_code` char(5) NOT NULL default '',
773 `stock_id` char(20) NOT NULL default '',
774 `reorder_level` bigint(20) NOT NULL default '0',
775 PRIMARY KEY (`loc_code`,`stock_id`),
776 KEY `stock_id` (`stock_id`)
777 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
780 ### Data of table `0_loc_stock` ###
784 ### Structure of table `0_locations` ###
786 DROP TABLE IF EXISTS `0_locations`;
788 CREATE TABLE `0_locations` (
789 `loc_code` varchar(5) NOT NULL default '',
790 `location_name` varchar(60) NOT NULL default '',
791 `delivery_address` tinytext NOT NULL,
792 `phone` varchar(30) NOT NULL default '',
793 `fax` varchar(30) NOT NULL default '',
794 `email` varchar(100) NOT NULL default '',
795 `contact` varchar(30) NOT NULL default '',
796 PRIMARY KEY (`loc_code`)
797 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
800 ### Data of table `0_locations` ###
802 INSERT INTO `0_locations` VALUES ('DEF', 'Default', 'N/A', '', '', '', '');
805 ### Structure of table `0_movement_types` ###
807 DROP TABLE IF EXISTS `0_movement_types`;
809 CREATE TABLE `0_movement_types` (
810 `id` int(11) NOT NULL auto_increment,
811 `name` varchar(60) NOT NULL default '',
813 UNIQUE KEY `name` (`name`)
814 ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
817 ### Data of table `0_movement_types` ###
819 INSERT INTO `0_movement_types` VALUES ('1', 'Adjustment');
822 ### Structure of table `0_payment_terms` ###
824 DROP TABLE IF EXISTS `0_payment_terms`;
826 CREATE TABLE `0_payment_terms` (
827 `terms_indicator` int(11) NOT NULL auto_increment,
828 `terms` char(80) NOT NULL default '',
829 `days_before_due` smallint(6) NOT NULL default '0',
830 `day_in_following_month` smallint(6) NOT NULL default '0',
831 PRIMARY KEY (`terms_indicator`),
832 UNIQUE KEY `terms` (`terms`)
833 ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
836 ### Data of table `0_payment_terms` ###
838 INSERT INTO `0_payment_terms` VALUES ('1', 'Due 15th Of the Following Month', '0', '17');
839 INSERT INTO `0_payment_terms` VALUES ('2', 'Due By End Of The Following Month', '0', '30');
840 INSERT INTO `0_payment_terms` VALUES ('3', 'Payment due within 10 days', '10', '0');
841 INSERT INTO `0_payment_terms` VALUES ('4', 'Cash Only', '1', '0');
844 ### Structure of table `0_prices` ###
846 DROP TABLE IF EXISTS `0_prices`;
848 CREATE TABLE `0_prices` (
849 `id` int(11) NOT NULL auto_increment,
850 `stock_id` varchar(20) NOT NULL default '',
851 `sales_type_id` int(11) NOT NULL default '0',
852 `curr_abrev` char(3) NOT NULL default '',
853 `price` double NOT NULL default '0',
855 UNIQUE KEY `price` (`stock_id`,`sales_type_id`,`curr_abrev`)
856 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
859 ### Data of table `0_prices` ###
863 ### Structure of table `0_print_profiles` ###
865 DROP TABLE IF EXISTS `0_print_profiles`;
867 CREATE TABLE `0_print_profiles` (
868 `id` smallint(6) unsigned NOT NULL auto_increment,
869 `profile` varchar(30) NOT NULL,
870 `report` varchar(5) default NULL,
871 `printer` tinyint(3) unsigned default NULL,
873 UNIQUE KEY `profile` (`profile`,`report`)
874 ) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
877 ### Data of table `0_print_profiles` ###
879 INSERT INTO `0_print_profiles` VALUES ('1', 'Out of office', '', '0');
880 INSERT INTO `0_print_profiles` VALUES ('2', 'Sales Department', '', '0');
881 INSERT INTO `0_print_profiles` VALUES ('3', 'Central', '', '2');
882 INSERT INTO `0_print_profiles` VALUES ('4', 'Sales Department', '104', '2');
883 INSERT INTO `0_print_profiles` VALUES ('5', 'Sales Department', '105', '2');
884 INSERT INTO `0_print_profiles` VALUES ('6', 'Sales Department', '107', '2');
885 INSERT INTO `0_print_profiles` VALUES ('7', 'Sales Department', '109', '2');
886 INSERT INTO `0_print_profiles` VALUES ('8', 'Sales Department', '110', '2');
887 INSERT INTO `0_print_profiles` VALUES ('9', 'Sales Department', '201', '2');
890 ### Structure of table `0_printers` ###
892 DROP TABLE IF EXISTS `0_printers`;
894 CREATE TABLE `0_printers` (
895 `id` tinyint(3) unsigned NOT NULL auto_increment,
896 `name` varchar(20) NOT NULL,
897 `description` varchar(60) NOT NULL,
898 `queue` varchar(20) NOT NULL,
899 `host` varchar(40) NOT NULL,
900 `port` smallint(11) unsigned NOT NULL,
901 `timeout` tinyint(3) unsigned NOT NULL,
903 UNIQUE KEY `name` (`name`)
904 ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
907 ### Data of table `0_printers` ###
909 INSERT INTO `0_printers` VALUES ('1', 'QL500', 'Label printer', 'QL500', 'server', '127', '20');
910 INSERT INTO `0_printers` VALUES ('2', 'Samsung', 'Main network printer', 'scx4521F', 'server', '515', '5');
911 INSERT INTO `0_printers` VALUES ('3', 'Local', 'Local print server at user IP', 'lp', '', '515', '10');
914 ### Structure of table `0_purch_data` ###
916 DROP TABLE IF EXISTS `0_purch_data`;
918 CREATE TABLE `0_purch_data` (
919 `supplier_id` int(11) NOT NULL default '0',
920 `stock_id` char(20) NOT NULL default '',
921 `price` double NOT NULL default '0',
922 `suppliers_uom` char(50) NOT NULL default '',
923 `conversion_factor` double NOT NULL default '1',
924 `supplier_description` char(50) NOT NULL default '',
925 PRIMARY KEY (`supplier_id`,`stock_id`)
926 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
929 ### Data of table `0_purch_data` ###
933 ### Structure of table `0_purch_order_details` ###
935 DROP TABLE IF EXISTS `0_purch_order_details`;
937 CREATE TABLE `0_purch_order_details` (
938 `po_detail_item` int(11) NOT NULL auto_increment,
939 `order_no` int(11) NOT NULL default '0',
940 `item_code` varchar(20) NOT NULL default '',
941 `description` tinytext,
942 `delivery_date` date NOT NULL default '0000-00-00',
943 `qty_invoiced` double NOT NULL default '0',
944 `unit_price` double NOT NULL default '0',
945 `act_price` double NOT NULL default '0',
946 `std_cost_unit` double NOT NULL default '0',
947 `quantity_ordered` double NOT NULL default '0',
948 `quantity_received` double NOT NULL default '0',
949 PRIMARY KEY (`po_detail_item`)
950 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
953 ### Data of table `0_purch_order_details` ###
957 ### Structure of table `0_purch_orders` ###
959 DROP TABLE IF EXISTS `0_purch_orders`;
961 CREATE TABLE `0_purch_orders` (
962 `order_no` int(11) NOT NULL auto_increment,
963 `supplier_id` int(11) NOT NULL default '0',
965 `ord_date` date NOT NULL default '0000-00-00',
966 `reference` tinytext NOT NULL,
967 `requisition_no` tinytext,
968 `into_stock_location` varchar(5) NOT NULL default '',
969 `delivery_address` tinytext NOT NULL,
970 PRIMARY KEY (`order_no`)
971 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
974 ### Data of table `0_purch_orders` ###
978 ### Structure of table `0_quick_entries` ###
980 DROP TABLE IF EXISTS `0_quick_entries`;
982 CREATE TABLE `0_quick_entries` (
983 `id` smallint(6) unsigned NOT NULL auto_increment,
984 `description` varchar(60) NOT NULL,
985 `deposit` tinyint(1) NOT NULL default '0',
986 `bank_only` tinyint(1) NOT NULL default '0',
988 KEY `description` (`description`)
989 ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
992 ### Data of table `0_quick_entries` ###
994 INSERT INTO `0_quick_entries` VALUES ('1', 'Maintenance', '0', '1');
995 INSERT INTO `0_quick_entries` VALUES ('2', 'Phone', '0', '1');
996 INSERT INTO `0_quick_entries` VALUES ('3', 'Cash Sales', '1', '1');
999 ### Structure of table `0_quick_entry_lines` ###
1001 DROP TABLE IF EXISTS `0_quick_entry_lines`;
1003 CREATE TABLE `0_quick_entry_lines` (
1004 `id` smallint(6) unsigned NOT NULL auto_increment,
1005 `qid` smallint(6) unsigned NOT NULL,
1006 `account` varchar(11) NOT NULL,
1007 `tax_acc` tinyint(1) NOT NULL default '0',
1008 `pct` tinyint(1) NOT NULL default '0',
1009 `amount` double default '0',
1010 `dimension_id` smallint(6) unsigned default NULL,
1011 `dimension2_id` smallint(6) unsigned default NULL,
1014 ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
1017 ### Data of table `0_quick_entry_lines` ###
1019 INSERT INTO `0_quick_entry_lines` VALUES ('1', '1', '6600', '1', '0', '0', '0', '0');
1020 INSERT INTO `0_quick_entry_lines` VALUES ('2', '2', '6730', '1', '0', '0', '0', '0');
1021 INSERT INTO `0_quick_entry_lines` VALUES ('3', '3', '3000', '1', '0', '0', '0', '0');
1024 ### Structure of table `0_recurrent_invoices` ###
1026 DROP TABLE IF EXISTS `0_recurrent_invoices`;
1028 CREATE TABLE `0_recurrent_invoices` (
1029 `id` smallint(6) unsigned NOT NULL auto_increment,
1030 `description` varchar(60) NOT NULL default '',
1031 `order_no` int(11) unsigned NOT NULL,
1032 `debtor_no` int(11) unsigned default NULL,
1033 `group_no` smallint(6) unsigned default NULL,
1034 `days` int(11) NOT NULL default '0',
1035 `monthly` int(11) NOT NULL default '0',
1036 `begin` date NOT NULL default '0000-00-00',
1037 `end` date NOT NULL default '0000-00-00',
1038 `last_sent` date NOT NULL default '0000-00-00',
1040 UNIQUE KEY `description` (`description`)
1041 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1044 ### Data of table `0_recurrent_invoices` ###
1048 ### Structure of table `0_refs` ###
1050 DROP TABLE IF EXISTS `0_refs`;
1052 CREATE TABLE `0_refs` (
1053 `id` int(11) NOT NULL default '0',
1054 `type` int(11) NOT NULL default '0',
1055 `reference` varchar(100) NOT NULL default '',
1056 PRIMARY KEY (`id`,`type`)
1057 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
1060 ### Data of table `0_refs` ###
1064 ### Structure of table `0_sales_order_details` ###
1066 DROP TABLE IF EXISTS `0_sales_order_details`;
1068 CREATE TABLE `0_sales_order_details` (
1069 `id` int(11) NOT NULL auto_increment,
1070 `order_no` int(11) NOT NULL default '0',
1071 `stk_code` varchar(20) NOT NULL default '',
1072 `description` tinytext,
1073 `qty_sent` double NOT NULL default '0',
1074 `unit_price` double NOT NULL default '0',
1075 `quantity` double NOT NULL default '0',
1076 `discount_percent` double NOT NULL default '0',
1078 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1081 ### Data of table `0_sales_order_details` ###
1085 ### Structure of table `0_sales_orders` ###
1087 DROP TABLE IF EXISTS `0_sales_orders`;
1089 CREATE TABLE `0_sales_orders` (
1090 `order_no` int(11) NOT NULL auto_increment,
1091 `version` tinyint(1) unsigned NOT NULL default '0',
1092 `type` tinyint(1) NOT NULL default '0',
1093 `debtor_no` int(11) NOT NULL default '0',
1094 `branch_code` int(11) NOT NULL default '0',
1095 `customer_ref` tinytext NOT NULL,
1096 `comments` tinytext,
1097 `ord_date` date NOT NULL default '0000-00-00',
1098 `order_type` int(11) NOT NULL default '0',
1099 `ship_via` int(11) NOT NULL default '0',
1100 `delivery_address` tinytext NOT NULL,
1101 `contact_phone` varchar(30) default NULL,
1102 `contact_email` varchar(100) default NULL,
1103 `deliver_to` tinytext NOT NULL,
1104 `freight_cost` double NOT NULL default '0',
1105 `from_stk_loc` varchar(5) NOT NULL default '',
1106 `delivery_date` date NOT NULL default '0000-00-00',
1107 PRIMARY KEY (`order_no`)
1108 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1111 ### Data of table `0_sales_orders` ###
1115 ### Structure of table `0_sales_pos` ###
1117 DROP TABLE IF EXISTS `0_sales_pos`;
1119 CREATE TABLE `0_sales_pos` (
1120 `id` smallint(6) unsigned NOT NULL auto_increment,
1121 `pos_name` varchar(30) NOT NULL,
1122 `cash_sale` tinyint(1) NOT NULL,
1123 `credit_sale` tinyint(1) NOT NULL,
1124 `pos_location` varchar(5) NOT NULL,
1125 `pos_account` smallint(6) unsigned NOT NULL,
1127 UNIQUE KEY `pos_name` (`pos_name`)
1128 ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
1131 ### Data of table `0_sales_pos` ###
1133 INSERT INTO `0_sales_pos` VALUES ('1', 'Default', '1', '1', 'DEF', '1');
1136 ### Structure of table `0_sales_types` ###
1138 DROP TABLE IF EXISTS `0_sales_types`;
1140 CREATE TABLE `0_sales_types` (
1141 `id` int(11) NOT NULL auto_increment,
1142 `sales_type` char(50) NOT NULL default '',
1143 `tax_included` int(1) NOT NULL default '0',
1144 `factor` double NOT NULL default '1',
1146 UNIQUE KEY `sales_type` (`sales_type`)
1147 ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
1150 ### Data of table `0_sales_types` ###
1152 INSERT INTO `0_sales_types` VALUES ('1', 'Retail', '0', '1');
1153 INSERT INTO `0_sales_types` VALUES ('2', 'Wholesale', '0', '1');
1156 ### Structure of table `0_salesman` ###
1158 DROP TABLE IF EXISTS `0_salesman`;
1160 CREATE TABLE `0_salesman` (
1161 `salesman_code` int(11) NOT NULL auto_increment,
1162 `salesman_name` char(60) NOT NULL default '',
1163 `salesman_phone` char(30) NOT NULL default '',
1164 `salesman_fax` char(30) NOT NULL default '',
1165 `salesman_email` varchar(100) NOT NULL default '',
1166 `provision` double NOT NULL default '0',
1167 `break_pt` double NOT NULL default '0',
1168 `provision2` double NOT NULL default '0',
1169 PRIMARY KEY (`salesman_code`),
1170 UNIQUE KEY `salesman_name` (`salesman_name`)
1171 ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
1174 ### Data of table `0_salesman` ###
1176 INSERT INTO `0_salesman` VALUES ('1', 'Sales Person', '', '', '', '5', '1000', '4');
1179 ### Structure of table `0_shippers` ###
1181 DROP TABLE IF EXISTS `0_shippers`;
1183 CREATE TABLE `0_shippers` (
1184 `shipper_id` int(11) NOT NULL auto_increment,
1185 `shipper_name` varchar(60) NOT NULL default '',
1186 `phone` varchar(30) NOT NULL default '',
1187 `contact` tinytext NOT NULL,
1188 `address` tinytext NOT NULL,
1189 PRIMARY KEY (`shipper_id`),
1190 UNIQUE KEY `name` (`shipper_name`)
1191 ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
1194 ### Data of table `0_shippers` ###
1196 INSERT INTO `0_shippers` VALUES ('1', 'Default', '', '', '');
1199 ### Structure of table `0_sql_trail` ###
1201 DROP TABLE IF EXISTS `0_sql_trail`;
1203 CREATE TABLE `0_sql_trail` (
1204 `id` int(11) unsigned NOT NULL auto_increment,
1205 `sql` text NOT NULL,
1206 `result` tinyint(1) NOT NULL,
1207 `msg` varchar(255) NOT NULL,
1209 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1212 ### Data of table `0_sql_trail` ###
1216 ### Structure of table `0_stock_category` ###
1218 DROP TABLE IF EXISTS `0_stock_category`;
1220 CREATE TABLE `0_stock_category` (
1221 `category_id` int(11) NOT NULL auto_increment,
1222 `description` varchar(60) NOT NULL default '',
1223 `stock_act` varchar(11) default NULL,
1224 `cogs_act` varchar(11) default NULL,
1225 `adj_gl_act` varchar(11) default NULL,
1226 `purch_price_var_act` varchar(11) default NULL,
1227 PRIMARY KEY (`category_id`),
1228 UNIQUE KEY `description` (`description`)
1229 ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
1232 ### Data of table `0_stock_category` ###
1234 INSERT INTO `0_stock_category` VALUES ('1', 'Components', '', '', '', '');
1235 INSERT INTO `0_stock_category` VALUES ('2', 'Charges', '', '', '', '');
1236 INSERT INTO `0_stock_category` VALUES ('3', 'Systems', '', '', '', '');
1237 INSERT INTO `0_stock_category` VALUES ('4', 'Services', '', '', '', '');
1240 ### Structure of table `0_stock_master` ###
1242 DROP TABLE IF EXISTS `0_stock_master`;
1244 CREATE TABLE `0_stock_master` (
1245 `stock_id` varchar(20) NOT NULL default '',
1246 `category_id` int(11) NOT NULL default '0',
1247 `tax_type_id` int(11) NOT NULL default '0',
1248 `description` varchar(200) NOT NULL default '',
1249 `long_description` tinytext NOT NULL,
1250 `units` varchar(20) NOT NULL default 'each',
1251 `mb_flag` char(1) NOT NULL default 'B',
1252 `sales_account` varchar(11) NOT NULL default '',
1253 `cogs_account` varchar(11) NOT NULL default '',
1254 `inventory_account` varchar(11) NOT NULL default '',
1255 `adjustment_account` varchar(11) NOT NULL default '',
1256 `assembly_account` varchar(11) NOT NULL default '',
1257 `dimension_id` int(11) default NULL,
1258 `dimension2_id` int(11) default NULL,
1259 `actual_cost` double NOT NULL default '0',
1260 `last_cost` double NOT NULL default '0',
1261 `material_cost` double NOT NULL default '0',
1262 `labour_cost` double NOT NULL default '0',
1263 `overhead_cost` double NOT NULL default '0',
1264 PRIMARY KEY (`stock_id`)
1265 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
1268 ### Data of table `0_stock_master` ###
1272 ### Structure of table `0_stock_moves` ###
1274 DROP TABLE IF EXISTS `0_stock_moves`;
1276 CREATE TABLE `0_stock_moves` (
1277 `trans_id` int(11) NOT NULL auto_increment,
1278 `trans_no` int(11) NOT NULL default '0',
1279 `stock_id` char(20) NOT NULL default '',
1280 `type` smallint(6) NOT NULL default '0',
1281 `loc_code` char(5) NOT NULL default '',
1282 `tran_date` date NOT NULL default '0000-00-00',
1283 `person_id` int(11) default NULL,
1284 `price` double NOT NULL default '0',
1285 `reference` char(40) NOT NULL default '',
1286 `qty` double NOT NULL default '1',
1287 `discount_percent` double NOT NULL default '0',
1288 `standard_cost` double NOT NULL default '0',
1289 `visible` tinyint(1) NOT NULL default '1',
1290 PRIMARY KEY (`trans_id`),
1291 KEY `type` (`type`,`trans_no`)
1292 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1295 ### Data of table `0_stock_moves` ###
1299 ### Structure of table `0_supp_allocations` ###
1301 DROP TABLE IF EXISTS `0_supp_allocations`;
1303 CREATE TABLE `0_supp_allocations` (
1304 `id` int(11) NOT NULL auto_increment,
1305 `amt` double unsigned default NULL,
1306 `date_alloc` date NOT NULL default '0000-00-00',
1307 `trans_no_from` int(11) default NULL,
1308 `trans_type_from` int(11) default NULL,
1309 `trans_no_to` int(11) default NULL,
1310 `trans_type_to` int(11) default NULL,
1312 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1315 ### Data of table `0_supp_allocations` ###
1319 ### Structure of table `0_supp_invoice_items` ###
1321 DROP TABLE IF EXISTS `0_supp_invoice_items`;
1323 CREATE TABLE `0_supp_invoice_items` (
1324 `id` int(11) NOT NULL auto_increment,
1325 `supp_trans_no` int(11) default NULL,
1326 `supp_trans_type` int(11) default NULL,
1327 `gl_code` varchar(11) NOT NULL default '0',
1328 `grn_item_id` int(11) default NULL,
1329 `po_detail_item_id` int(11) default NULL,
1330 `stock_id` varchar(20) NOT NULL default '',
1331 `description` tinytext,
1332 `quantity` double NOT NULL default '0',
1333 `unit_price` double NOT NULL default '0',
1334 `unit_tax` double NOT NULL default '0',
1337 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1340 ### Data of table `0_supp_invoice_items` ###
1344 ### Structure of table `0_supp_invoice_tax_items` ###
1346 DROP TABLE IF EXISTS `0_supp_invoice_tax_items`;
1348 CREATE TABLE `0_supp_invoice_tax_items` (
1349 `id` int(11) NOT NULL auto_increment,
1350 `supp_trans_no` int(11) default NULL,
1351 `supp_trans_type` int(11) default NULL,
1352 `tax_type_id` int(11) NOT NULL default '0',
1353 `tax_type_name` varchar(60) default NULL,
1354 `rate` double NOT NULL default '0',
1355 `included_in_price` tinyint(1) NOT NULL default '0',
1356 `amount` double NOT NULL default '0',
1358 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1361 ### Data of table `0_supp_invoice_tax_items` ###
1365 ### Structure of table `0_supp_trans` ###
1367 DROP TABLE IF EXISTS `0_supp_trans`;
1369 CREATE TABLE `0_supp_trans` (
1370 `trans_no` int(11) unsigned NOT NULL default '0',
1371 `type` smallint(6) unsigned NOT NULL default '0',
1372 `supplier_id` int(11) unsigned default NULL,
1373 `reference` tinytext NOT NULL,
1374 `supp_reference` varchar(60) NOT NULL default '',
1375 `tran_date` date NOT NULL default '0000-00-00',
1376 `due_date` date NOT NULL default '0000-00-00',
1377 `ov_amount` double NOT NULL default '0',
1378 `ov_discount` double NOT NULL default '0',
1379 `ov_gst` double NOT NULL default '0',
1380 `rate` double NOT NULL default '1',
1381 `alloc` double NOT NULL default '0',
1382 PRIMARY KEY (`trans_no`,`type`),
1383 KEY `supplier_id` (`supplier_id`),
1384 KEY `SupplierID_2` (`supplier_id`,`supp_reference`),
1386 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
1389 ### Data of table `0_supp_trans` ###
1393 ### Structure of table `0_suppliers` ###
1395 DROP TABLE IF EXISTS `0_suppliers`;
1397 CREATE TABLE `0_suppliers` (
1398 `supplier_id` int(11) NOT NULL auto_increment,
1399 `supp_name` varchar(60) NOT NULL default '',
1400 `address` tinytext NOT NULL,
1401 `supp_address` tinytext NOT NULL,
1402 `phone` varchar(30) NOT NULL default '',
1403 `fax` varchar(30) NOT NULL default '',
1404 `gst_no` varchar(25) NOT NULL default '',
1405 `contact` varchar(60) NOT NULL default '',
1406 `supp_account_no` varchar(40) NOT NULL default '',
1407 `email` varchar(100) NOT NULL default '',
1408 `website` varchar(100) NOT NULL default '',
1409 `bank_account` varchar(60) NOT NULL default '',
1410 `curr_code` char(3) default NULL,
1411 `payment_terms` int(11) default NULL,
1412 `dimension_id` int(11) default '0',
1413 `dimension2_id` int(11) default '0',
1414 `tax_group_id` int(11) default NULL,
1415 `credit_limit` double NOT NULL default '0',
1416 `purchase_account` varchar(11) default NULL,
1417 `payable_account` varchar(11) default NULL,
1418 `payment_discount_account` varchar(11) default NULL,
1419 `notes` tinytext NOT NULL,
1420 PRIMARY KEY (`supplier_id`)
1421 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1424 ### Data of table `0_suppliers` ###
1428 ### Structure of table `0_sys_types` ###
1430 DROP TABLE IF EXISTS `0_sys_types`;
1432 CREATE TABLE `0_sys_types` (
1433 `type_id` smallint(6) NOT NULL default '0',
1434 `type_name` varchar(60) NOT NULL default '',
1435 `type_no` int(11) NOT NULL default '1',
1436 `next_reference` varchar(100) NOT NULL default '',
1437 PRIMARY KEY (`type_id`)
1438 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
1441 ### Data of table `0_sys_types` ###
1443 INSERT INTO `0_sys_types` VALUES ('0', 'Journal - GL', '17', '1');
1444 INSERT INTO `0_sys_types` VALUES ('1', 'Payment - GL', '7', '1');
1445 INSERT INTO `0_sys_types` VALUES ('2', 'Receipt - GL', '4', '1');
1446 INSERT INTO `0_sys_types` VALUES ('4', 'Funds Transfer', '3', '1');
1447 INSERT INTO `0_sys_types` VALUES ('10', 'Sales Invoice', '16', '1');
1448 INSERT INTO `0_sys_types` VALUES ('11', 'Credit Note', '2', '1');
1449 INSERT INTO `0_sys_types` VALUES ('12', 'Receipt', '6', '1');
1450 INSERT INTO `0_sys_types` VALUES ('13', 'Delivery', '1', '1');
1451 INSERT INTO `0_sys_types` VALUES ('16', 'Location Transfer', '2', '1');
1452 INSERT INTO `0_sys_types` VALUES ('17', 'Inventory Adjustment', '2', '1');
1453 INSERT INTO `0_sys_types` VALUES ('18', 'Purchase Order', '1', '1');
1454 INSERT INTO `0_sys_types` VALUES ('20', 'Supplier Invoice', '6', '1');
1455 INSERT INTO `0_sys_types` VALUES ('21', 'Supplier Credit Note', '1', '1');
1456 INSERT INTO `0_sys_types` VALUES ('22', 'Supplier Payment', '3', '1');
1457 INSERT INTO `0_sys_types` VALUES ('25', 'Purchase Order Delivery', '1', '1');
1458 INSERT INTO `0_sys_types` VALUES ('26', 'Work Order', '1', '1');
1459 INSERT INTO `0_sys_types` VALUES ('28', 'Work Order Issue', '1', '1');
1460 INSERT INTO `0_sys_types` VALUES ('29', 'Work Order Production', '1', '1');
1461 INSERT INTO `0_sys_types` VALUES ('30', 'Sales Order', '1', '1');
1462 INSERT INTO `0_sys_types` VALUES ('35', 'Cost Update', '1', '1');
1463 INSERT INTO `0_sys_types` VALUES ('40', 'Dimension', '1', '1');
1466 ### Structure of table `0_tax_group_items` ###
1468 DROP TABLE IF EXISTS `0_tax_group_items`;
1470 CREATE TABLE `0_tax_group_items` (
1471 `tax_group_id` int(11) NOT NULL default '0',
1472 `tax_type_id` int(11) NOT NULL default '0',
1473 `rate` double NOT NULL default '0',
1474 PRIMARY KEY (`tax_group_id`,`tax_type_id`)
1475 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
1478 ### Data of table `0_tax_group_items` ###
1482 ### Structure of table `0_tax_groups` ###
1484 DROP TABLE IF EXISTS `0_tax_groups`;
1486 CREATE TABLE `0_tax_groups` (
1487 `id` int(11) NOT NULL auto_increment,
1488 `name` varchar(60) NOT NULL default '',
1489 `tax_shipping` tinyint(1) NOT NULL default '0',
1491 UNIQUE KEY `name` (`name`)
1492 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1495 ### Data of table `0_tax_groups` ###
1499 ### Structure of table `0_tax_types` ###
1501 DROP TABLE IF EXISTS `0_tax_types`;
1503 CREATE TABLE `0_tax_types` (
1504 `id` int(11) NOT NULL auto_increment,
1505 `rate` double NOT NULL default '0',
1506 `sales_gl_code` varchar(11) NOT NULL default '',
1507 `purchasing_gl_code` varchar(11) NOT NULL default '',
1508 `name` varchar(60) NOT NULL default '',
1510 UNIQUE KEY `name` (`name`,`rate`)
1511 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1514 ### Data of table `0_tax_types` ###
1518 ### Structure of table `0_users` ###
1520 DROP TABLE IF EXISTS `0_users`;
1522 CREATE TABLE `0_users` (
1523 `user_id` varchar(60) NOT NULL default '',
1524 `password` varchar(100) NOT NULL default '',
1525 `real_name` varchar(100) NOT NULL default '',
1526 `full_access` int(11) NOT NULL default '1',
1527 `phone` varchar(30) NOT NULL default '',
1528 `email` varchar(100) default NULL,
1529 `language` varchar(20) default NULL,
1530 `date_format` tinyint(1) NOT NULL default '0',
1531 `date_sep` tinyint(1) NOT NULL default '0',
1532 `tho_sep` tinyint(1) NOT NULL default '0',
1533 `dec_sep` tinyint(1) NOT NULL default '0',
1534 `theme` varchar(20) NOT NULL default 'default',
1535 `page_size` varchar(20) NOT NULL default 'A4',
1536 `prices_dec` smallint(6) NOT NULL default '2',
1537 `qty_dec` smallint(6) NOT NULL default '2',
1538 `rates_dec` smallint(6) NOT NULL default '4',
1539 `percent_dec` smallint(6) NOT NULL default '1',
1540 `show_gl` tinyint(1) NOT NULL default '1',
1541 `show_codes` tinyint(1) NOT NULL default '0',
1542 `show_hints` tinyint(1) NOT NULL default '0',
1543 `last_visit_date` datetime default NULL,
1544 `query_size` tinyint(1) default '10',
1545 `graphic_links` tinyint(1) default '1',
1546 `pos` smallint(6) default '1',
1547 `print_profile` varchar(30) NOT NULL default '1',
1548 `rep_popup` tinyint(1) default '1',
1549 PRIMARY KEY (`user_id`)
1550 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
1553 ### Data of table `0_users` ###
1555 INSERT INTO `0_users` VALUES ('admin', '5f4dcc3b5aa765d61d8327deb882cf99', 'Administrator', '2', '', 'adm@adm.com', 'en_US', '0', '0', '0', '0', 'default', 'Letter', '2', '2', '4', '1', '1', '0', '0', '2008-04-04 12:34:29', '10', '1', '1', '1', '1');
1558 ### Structure of table `0_voided` ###
1560 DROP TABLE IF EXISTS `0_voided`;
1562 CREATE TABLE `0_voided` (
1563 `type` int(11) NOT NULL default '0',
1564 `id` int(11) NOT NULL default '0',
1565 `date_` date NOT NULL default '0000-00-00',
1566 `memo_` tinytext NOT NULL,
1567 UNIQUE KEY `id` (`type`,`id`)
1568 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
1571 ### Data of table `0_voided` ###
1575 ### Structure of table `0_wo_issue_items` ###
1577 DROP TABLE IF EXISTS `0_wo_issue_items`;
1579 CREATE TABLE `0_wo_issue_items` (
1580 `id` int(11) NOT NULL auto_increment,
1581 `stock_id` varchar(40) default NULL,
1582 `issue_id` int(11) default NULL,
1583 `qty_issued` double default NULL,
1585 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1588 ### Data of table `0_wo_issue_items` ###
1592 ### Structure of table `0_wo_issues` ###
1594 DROP TABLE IF EXISTS `0_wo_issues`;
1596 CREATE TABLE `0_wo_issues` (
1597 `issue_no` int(11) NOT NULL auto_increment,
1598 `workorder_id` int(11) NOT NULL default '0',
1599 `reference` varchar(100) default NULL,
1600 `issue_date` date default NULL,
1601 `loc_code` varchar(5) default NULL,
1602 `workcentre_id` int(11) default NULL,
1603 PRIMARY KEY (`issue_no`)
1604 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1607 ### Data of table `0_wo_issues` ###
1611 ### Structure of table `0_wo_manufacture` ###
1613 DROP TABLE IF EXISTS `0_wo_manufacture`;
1615 CREATE TABLE `0_wo_manufacture` (
1616 `id` int(11) NOT NULL auto_increment,
1617 `reference` varchar(100) default NULL,
1618 `workorder_id` int(11) NOT NULL default '0',
1619 `quantity` double NOT NULL default '0',
1620 `date_` date NOT NULL default '0000-00-00',
1622 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1625 ### Data of table `0_wo_manufacture` ###
1629 ### Structure of table `0_wo_requirements` ###
1631 DROP TABLE IF EXISTS `0_wo_requirements`;
1633 CREATE TABLE `0_wo_requirements` (
1634 `id` int(11) NOT NULL auto_increment,
1635 `workorder_id` int(11) NOT NULL default '0',
1636 `stock_id` char(20) NOT NULL default '',
1637 `workcentre` int(11) NOT NULL default '0',
1638 `units_req` double NOT NULL default '1',
1639 `std_cost` double NOT NULL default '0',
1640 `loc_code` char(5) NOT NULL default '',
1641 `units_issued` double NOT NULL default '0',
1643 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1646 ### Data of table `0_wo_requirements` ###
1650 ### Structure of table `0_workcentres` ###
1652 DROP TABLE IF EXISTS `0_workcentres`;
1654 CREATE TABLE `0_workcentres` (
1655 `id` int(11) NOT NULL auto_increment,
1656 `name` char(40) NOT NULL default '',
1657 `description` char(50) NOT NULL default '',
1659 UNIQUE KEY `name` (`name`)
1660 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1663 ### Data of table `0_workcentres` ###
1667 ### Structure of table `0_workorders` ###
1669 DROP TABLE IF EXISTS `0_workorders`;
1671 CREATE TABLE `0_workorders` (
1672 `id` int(11) NOT NULL auto_increment,
1673 `wo_ref` varchar(60) NOT NULL default '',
1674 `loc_code` varchar(5) NOT NULL default '',
1675 `units_reqd` double NOT NULL default '1',
1676 `stock_id` varchar(20) NOT NULL default '',
1677 `date_` date NOT NULL default '0000-00-00',
1678 `type` tinyint(4) NOT NULL default '0',
1679 `required_by` date NOT NULL default '0000-00-00',
1680 `released_date` date NOT NULL default '0000-00-00',
1681 `units_issued` double NOT NULL default '0',
1682 `closed` tinyint(1) NOT NULL default '0',
1683 `released` tinyint(1) NOT NULL default '0',
1684 `additional_costs` double NOT NULL default '0',
1686 UNIQUE KEY `wo_ref` (`wo_ref`)
1687 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
1690 ### Data of table `0_workorders` ###