Database Schema Report for FrontAccounting 2.2

Table of Contents

Summary

PropertyValue
Report created03-Nov-2009 10:48
DBMS and versionMySQL [ 5.0.51b-community-nt ]
Serverlocalhost via TCP/IP
Database nameunstable
User/Loginroot
Driver and versionmyodbc5.dll [ 05.01.0005 ]
DTM Schema Reporter versionVersion 1.17.00, (C) 2003-2008 DTM soft.

Tables, 77 items

Table: '`0_areas`', 3 fields

Field NameType and SizeDefaultNullableDescription
area_codeinteger0NULL 
descriptionvarchar(60)''NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_areas`'

Primary Key NameField Name
Pa

Indexes for table '`0_areas`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesarea_code
descriptionNoYesdescription

Table: '`0_attachments`', 9 fields

Field NameType and SizeDefaultNullableDescription
idinteger unsigned0NULL 
descriptionvarchar(60)''NOT NULL 
type_nointeger0NOT NULL 
trans_nointeger0NOT NULL 
unique_namevarchar(60)''NOT NULL 
tran_datedate'0000-00-00'NOT NULL 
filenamevarchar(60)''NOT NULL 
filesizeinteger0NOT NULL 
filetypevarchar(60)''NOT NULL 

Primary key for table '`0_attachments`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_attachments`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
type_noNoNotype_no, trans_no

Table: '`0_audit_trail`', 9 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
typesmallint unsigned0NOT NULL 
trans_nointeger unsigned0NOT NULL 
usersmallint unsigned0NOT NULL 
stamptimestamp NULL 
descriptionvarchar(60) NULL 
fiscal_yearinteger0NOT NULL 
gl_datedate'0000-00-00'NOT NULL 
gl_seqinteger unsigned NULL 

Primary key for table '`0_audit_trail`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_audit_trail`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
fiscal_yearNoNofiscal_year, gl_seq

Table: '`0_bank_accounts`', 12 fields

Field NameType and SizeDefaultNullableDescription
account_codevarchar(11)''NOT NULL 
account_typesmallint0NOT NULL 
bank_account_namevarchar(60)''NOT NULL 
bank_account_numbervarchar(100)''NOT NULL 
bank_namevarchar(60)''NOT NULL 
bank_addresstext NULL 
bank_curr_codechar(3)''NOT NULL 
dflt_curr_acttinyint0NOT NULL 
idsmallint0NULL 
last_reconciled_datetimestamp NOT NULL 
ending_reconcile_balancedouble0NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_bank_accounts`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_bank_accounts`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
bank_account_nameNoNobank_account_name
bank_account_numberNoNobank_account_number

Table: '`0_bank_trans`', 13 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
typesmallint NULL 
trans_nointeger NULL 
bank_actvarchar(11) NULL 
refvarchar(40) NULL 
trans_datedate'0000-00-00'NOT NULL 
bank_trans_type_idinteger unsigned NULL 
amountdouble NULL 
dimension_idinteger0NOT NULL 
dimension2_idinteger0NOT NULL 
person_type_idinteger0NOT NULL 
person_idblob NULL 
reconcileddate NULL 

Primary key for table '`0_bank_trans`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_bank_trans`', 5 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
bank_actNoNobank_act, ref
typeNoNotype, trans_no

Table: '`0_bom`', 6 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
parentchar(20)''NOT NULL 
componentchar(20)''NOT NULL 
workcentre_addedinteger0NOT NULL 
loc_codechar(5)''NOT NULL 
quantitydouble1NOT NULL 

Primary key for table '`0_bom`'

Primary Key NameField Names
PRIMARYparent, component, workcentre_added, loc_code

Indexes for table '`0_bom`', 11 items

Index NameClusteredUniqueFields
PRIMARYNoYesparent
PRIMARYNoYescomponent
PRIMARYNoYesworkcentre_added
PRIMARYNoYesloc_code
componentNoNocomponent
idNoNoid
loc_codeNoNoloc_code
parentNoNoparent, loc_code
Parent_2NoNoparent
workcentre_addedNoNoworkcentre_added

Table: '`0_budget_trans`', 11 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
counterinteger0NULL 
typesmallint0NOT NULL 
type_nobigint1NOT NULL 
tran_datedate'0000-00-00'NOT NULL 
accountvarchar(11)''NOT NULL 
memo_text''NOT NULL 
amountdouble0NOT NULL 
dimension_idinteger0NULL 
dimension2_idinteger0NULL 
person_type_idinteger NULL 
person_idblob NULL 

Primary key for table '`0_budget_trans`'

Primary Key NameField Name
PRIMARYcounter

Indexes for table '`0_budget_trans`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYescounter
Type_and_NumberNoNotype, type_no

Table: '`0_chart_class`', 4 fields

Field NameType and SizeDefaultNullableDescription
cidinteger0NOT NULL 
class_namevarchar(60)''NOT NULL 
ctypetinyint0NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_chart_class`'

Primary Key NameField Name
PRIMARYcid

Indexes for table '`0_chart_class`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYescid

Table: '`0_chart_master`', 5 fields

Field NameType and SizeDefaultNullableDescription
account_codevarchar(11)''NOT NULL 
account_code2varchar(11)''NULL 
account_namevarchar(60)''NOT NULL 
account_typeinteger0NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_chart_master`'

Primary Key NameField Name
PRIMARYaccount_code

Indexes for table '`0_chart_master`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesaccount_code
account_codeNoNoaccount_code
account_nameNoNoaccount_name

Table: '`0_chart_types`', 5 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
namevarchar(60)''NOT NULL 
class_idtinyint0NOT NULL 
parentinteger-1NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_chart_types`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_chart_types`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
nameNoNoname

Table: '`0_check_account`', 3 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
account_idinteger0NULL 
bank_refvarchar(11)''NOT NULL 
next_referencevarchar(100)''NOT NULL 

Primary key for table '`0_check_account`'

Primary Key NameField Name
Pa

Indexes for table '`0_check_account`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesaccount_id
bank_refNoYesbank_ref

Table: '`0_check_trans`', 4 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
check_refvarchar(100)''NOT NULL 
bank_trans_idinteger0NOT NULL 
cheque_bank_idinteger0NOT NULL 

Primary key for table '`0_check_trans`'

Primary Key NameField Name
Pi

Indexes for table '`0_check_trans`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
cheque_refNoYescheck_ref, cheque_bank_id

Table: '`0_comments`', 4 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
typeinteger0NOT NULL 
idinteger0NOT NULL 
date_date'0000-00-00'NULL 
memo_text NULL 

Table: '`0_company`', 52 fields

Field NameType and SizeDefaultNullableDescription
coy_codeinteger1NOT NULL 
coy_namevarchar(60)''NOT NULL 
gst_novarchar(25)''NOT NULL 
coy_novarchar(25)'0'NOT NULL 
tax_prdinteger1NOT NULL 
tax_lastinteger1NOT NULL 
postal_addresstext''NOT NULL 
phonevarchar(30)''NOT NULL 
faxvarchar(30)''NOT NULL 
emailvarchar(100)''NOT NULL 
coy_logovarchar(100)''NOT NULL 
domicilevarchar(55)''NOT NULL 
curr_defaultchar(3)''NOT NULL 
debtors_actvarchar(11)''NOT NULL 
pyt_discount_actvarchar(11)''NOT NULL 
creditors_actvarchar(11)''NOT NULL 
bank_charge_actvarchar(11)''NOT NULL 
exchange_diff_actvarchar(11)''NOT NULL 
profit_loss_year_actvarchar(11)''NOT NULL 
retained_earnings_actvarchar(11)''NOT NULL 
freight_actvarchar(11)''NOT NULL 
default_sales_actvarchar(11)''NOT NULL 
default_sales_discount_actvarchar(11)''NOT NULL 
default_prompt_payment_actvarchar(11)''NOT NULL 
default_inventory_actvarchar(11)''NOT NULL 
default_cogs_actvarchar(11)''NOT NULL 
default_adj_actvarchar(11)''NOT NULL 
default_inv_sales_actvarchar(11)''NOT NULL 
default_assembly_actvarchar(11)''NOT NULL 
payroll_actvarchar(11)''NOT NULL 
allow_negative_stocktinyint0NOT NULL 
po_over_receiveinteger10NOT NULL 
po_over_chargeinteger10NOT NULL 
default_credit_limitinteger1000NOT NULL 
default_workorder_requiredinteger20NOT NULL 
default_dim_requiredinteger20NOT NULL 
past_due_daysinteger30NOT NULL 
use_dimensiontinyint0NULL 
f_yearinteger1NOT NULL 
no_item_listtinyint0NOT NULL 
no_customer_listtinyint0NOT NULL 
no_supplier_listtinyint0NOT NULL 
base_salesinteger-1NOT NULL 
foreign_codestinyint0NOT NULL 
accumulate_shippingtinyint0NOT NULL 
legal_texttext''NOT NULL 
default_delivery_requiredsmallint1NULL 
version_idvarchar(11)''NOT NULL 
time_zonetinyint0NOT NULL 
add_pctinteger-1NOT NULL 
round_tointeger1NOT NULL 
login_toutsmallint600NOT NULL 

Primary key for table '`0_company`'

Primary Key NameField Name
PRIMARYcoy_code

Indexes for table '`0_company`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYescoy_code

Table: '`0_credit_status`', 4 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
reason_descriptionchar(100)''NOT NULL 
dissallow_invoicestinyint0NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_credit_status`'

Primary Key NameField Name
Pi

Indexes for table '`0_credit_status`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
reason_descriptionNoYesreason_description

Table: '`0_currencies`', 7 fields

Field NameType and SizeDefaultNullableDescription
currencyvarchar(60)''NOT NULL 
curr_abrevchar(3)''NOT NULL 
curr_symbolvarchar(10)''NOT NULL 
countryvarchar(100)''NOT NULL 
hundreds_namevarchar(15)''NOT NULL 
inactivetinyint0NOT NULL 
auto_updatetinyint1NOT NULL 

Primary key for table '`0_currencies`'

Primary Key NameField Name
PRIMARYcurr_abrev

Indexes for table '`0_currencies`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYescurr_abrev

Table: '`0_cust_allocations`', 7 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
amtdouble unsigned NULL 
date_allocdate'0000-00-00'NOT NULL 
trans_no_frominteger NULL 
trans_type_frominteger NULL 
trans_no_tointeger NULL 
trans_type_tointeger NULL 

Primary key for table '`0_cust_allocations`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_cust_allocations`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_cust_branch`', 24 fields

Field NameType and SizeDefaultNullableDescription
branch_codeinteger0NULL 
debtor_nointeger0NOT NULL 
br_namevarchar(60)''NOT NULL 
br_addresstext''NOT NULL 
areainteger NULL 
salesmaninteger0NOT NULL 
phonevarchar(30)''NOT NULL 
phone2varchar(30)''NOT NULL 
faxvarchar(30)''NOT NULL 
contact_namevarchar(60)''NOT NULL 
emailvarchar(100)''NOT NULL 
default_locationvarchar(5)''NOT NULL 
tax_group_idinteger NULL 
sales_accountvarchar(11) NULL 
sales_discount_accountvarchar(11) NULL 
receivables_accountvarchar(11) NULL 
payment_discount_accountvarchar(11) NULL 
default_ship_viainteger1NOT NULL 
disable_transtinyint0NOT NULL 
br_post_addresstext''NOT NULL 
group_nointeger0NOT NULL 
notestext NULL 
inactivetinyint0NOT NULL 
branch_refvarchar(30)''NOT NULL 

Primary key for table '`0_cust_branch`'

Primary Key NameField Names
PRIMARYbranch_code, debtor_no

Indexes for table '`0_cust_branch`', 4 items

Index NameClusteredUniqueFields
PRIMARYNoYesbranch_code
PRIMARYNoYesdebtor_no
branch_codeNoNobranch_code
br_nameNoNobr_name

Table: '`0_debtor_trans`', 21 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
trans_nointeger unsigned0NOT NULL 
typesmallint unsigned0NOT NULL 
versiontinyint unsigned0NOT NULL 
debtor_nointeger unsigned NULL 
branch_codeinteger-1NOT NULL 
tran_datedate'0000-00-00'NOT NULL 
due_datedate'0000-00-00'NOT NULL 
referencevarchar(60)''NOT NULL 
tpeinteger0NOT NULL 
order_integer0NOT NULL 
ov_amountdouble0NOT NULL 
ov_gstdouble0NOT NULL 
ov_freightdouble0NOT NULL 
ov_freight_taxdouble0NOT NULL 
ov_discountdouble0NOT NULL 
allocdouble0NOT NULL 
ratedouble1NOT NULL 
ship_viainteger NULL 
trans_linkinteger0NOT NULL 
dimension_idinteger0NOT NULL 
dimension2_idinteger0NOT NULL 

Primary key for table '`0_debtor_trans`'

Primary Key NameField Names
PRIMARYtrans_no, type

Indexes for table '`0_debtor_trans`', 4 items

Index NameClusteredUniqueFields
PRIMARYNoYestrans_no
PRIMARYNoYestype
debtor_noNoNodebtor_no, branch_code

Table: '`0_debtor_trans_details`', 11 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
debtor_trans_nointeger NULL 
debtor_trans_typeinteger NULL 
stock_idvarchar(20)''NOT NULL 
descriptiontext NULL 
unit_pricedouble0NOT NULL 
unit_taxdouble0NOT NULL 
quantitydouble0NOT NULL 
discount_percentdouble0NOT NULL 
standard_costdouble0NOT NULL 
qty_donedouble0NOT NULL 

Primary key for table '`0_debtor_trans_details`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_debtor_trans_details`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_debtors_master`', 17 fields

Field NameType and SizeDefaultNullableDescription
debtor_nointeger0NULL 
namevarchar(100)''NOT NULL 
addresstext NULL 
emailvarchar(100)''NOT NULL 
tax_idvarchar(55)''NOT NULL 
curr_codechar(3)''NOT NULL 
sales_typeinteger1NOT NULL 
dimension_idinteger0NOT NULL 
dimension2_idinteger0NOT NULL 
credit_statusinteger0NOT NULL 
payment_termsinteger NULL 
discountdouble0NOT NULL 
pymt_discountdouble0NOT NULL 
credit_limitfloat1000NOT NULL 
notestext NULL 
inactivetinyint0NOT NULL 
debtor_refvarchar(30)''NOT NULL 

Primary key for table '`0_debtors_master`'

Primary Key NameField Name
Pd

Indexes for table '`0_debtors_master`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesdebtor_no
nameNoYesname

Table: '`0_dimensions`', 7 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
referencevarchar(60)''NOT NULL 
namevarchar(60)''NOT NULL 
type_tinyint1NOT NULL 
closedtinyint0NOT NULL 
date_date'0000-00-00'NOT NULL 
due_datedate'0000-00-00'NOT NULL 

Primary key for table '`0_dimensions`'

Primary Key NameField Name
Pi

Indexes for table '`0_dimensions`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
referenceNoYesreference

Table: '`0_exchange_rates`', 5 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
curr_codechar(3)''NOT NULL 
rate_buydouble0NOT NULL 
rate_selldouble0NOT NULL 
date_date'0000-00-00'NOT NULL 

Primary key for table '`0_exchange_rates`'

Primary Key NameField Name
PRIMARYi

Indexes for table '`0_exchange_rates`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
curr_codeNoYescurr_code, date_

Table: '`0_fiscal_year`', 4 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
begindate'0000-00-00'NULL 
enddate'0000-00-00'NULL 
closedtinyint0NOT NULL 

Primary key for table '`0_fiscal_year`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_fiscal_year`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_gl_trans`', 11 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
counterinteger0NULL 
typesmallint0NOT NULL 
type_nobigint1NOT NULL 
tran_datedate'0000-00-00'NOT NULL 
accountvarchar(11)''NOT NULL 
memo_text''NOT NULL 
amountdouble0NOT NULL 
dimension_idinteger0NOT NULL 
dimension2_idinteger0NOT NULL 
person_type_idinteger NULL 
person_idblob NULL 

Primary key for table '`0_gl_trans`'

Primary Key NameField Name
PRIMARYcounter

Indexes for table '`0_gl_trans`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYescounter
Type_and_NumberNoNotype, type_no

Table: '`0_grn_batch`', 6 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
supplier_idinteger0NOT NULL 
purch_order_nointeger NULL 
referencevarchar(60)''NOT NULL 
delivery_datedate'0000-00-00'NOT NULL 
loc_codevarchar(5) NULL 

Primary key for table '`0_grn_batch`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_grn_batch`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_grn_items`', 7 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
grn_batch_idinteger NULL 
po_detail_iteminteger0NOT NULL 
item_codevarchar(20)''NOT NULL 
descriptiontext NULL 
qty_recddouble0NOT NULL 
quantity_invdouble0NOT NULL 

Primary key for table '`0_grn_items`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_grn_items`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_groups`', 3 fields

Field NameType and SizeDefaultNullableDescription
idsmallint unsigned0NULL 
descriptionvarchar(60)''NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_groups`'

Primary Key NameField Name
Pi

Indexes for table '`0_groups`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
descriptionNoYesdescription

Table: '`0_item_codes`', 8 fields

Field NameType and SizeDefaultNullableDescription
idinteger unsigned0NULL 
item_codevarchar(20)''NOT NULL 
stock_idvarchar(20)''NOT NULL 
descriptionvarchar(200)''NOT NULL 
category_idsmallint unsigned0NOT NULL 
quantitydouble1NOT NULL 
is_foreigntinyint0NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_item_codes`'

Primary Key NameField Name
PRIMARYi

Indexes for table '`0_item_codes`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
stock_idNoYesstock_id, item_code

Table: '`0_item_tax_type_exemptions`', 2 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
item_tax_type_idinteger0NOT NULL 
tax_type_idinteger0NOT NULL 

Primary key for table '`0_item_tax_type_exemptions`'

Primary Key NameField Names
PRIMARYitem_tax_type_id, tax_type_id

Indexes for table '`0_item_tax_type_exemptions`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesitem_tax_type_id
PRIMARYNoYestax_type_id

Table: '`0_item_tax_types`', 4 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
namevarchar(60)''NOT NULL 
exempttinyint0NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_item_tax_types`'

Primary Key NameField Name
Pi

Indexes for table '`0_item_tax_types`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
nameNoYesname

Table: '`0_item_units`', 4 fields

Field NameType and SizeDefaultNullableDescription
abbrvarchar(20)''NOT NULL 
namevarchar(40)''NOT NULL 
decimalstinyint0NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_item_units`'

Primary Key NameField Name
Pa

Indexes for table '`0_item_units`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesabbr
nameNoYesname

Table: '`0_loc_stock`', 3 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
loc_codechar(5)''NOT NULL 
stock_idchar(20)''NOT NULL 
reorder_levelbigint0NOT NULL 

Primary key for table '`0_loc_stock`'

Primary Key NameField Names
PRIMARYloc_code, stock_id

Indexes for table '`0_loc_stock`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesloc_code
PRIMARYNoYesstock_id
stock_idNoNostock_id

Table: '`0_locations`', 9 fields

Field NameType and SizeDefaultNullableDescription
loc_codevarchar(5)''NOT NULL 
location_namevarchar(60)''NOT NULL 
delivery_addresstext''NOT NULL 
phonevarchar(30)''NOT NULL 
phone2varchar(30)''NOT NULL 
faxvarchar(30)''NOT NULL 
emailvarchar(100)''NOT NULL 
contactvarchar(30)''NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_locations`'

Primary Key NameField Name
PRIMARYloc_code

Indexes for table '`0_locations`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesloc_code

Table: '`0_movement_types`', 3 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
namevarchar(60)''NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_movement_types`'

Primary Key NameField Name
Pi

Indexes for table '`0_movement_types`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
nameNoYesname

Table: '`0_payment_terms`', 5 fields

Field NameType and SizeDefaultNullableDescription
terms_indicatorinteger0NULL 
termschar(80)''NOT NULL 
days_before_duesmallint0NOT NULL 
day_in_following_monthsmallint0NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_payment_terms`'

Primary Key NameField Name
Pt

Indexes for table '`0_payment_terms`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesterms_indicator
termsNoYesterms

Table: '`0_prices`', 5 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
stock_idvarchar(20)''NOT NULL 
sales_type_idinteger0NOT NULL 
curr_abrevchar(3)''NOT NULL 
pricedouble0NOT NULL 

Primary key for table '`0_prices`'

Primary Key NameField Name
PRIMARYi

Indexes for table '`0_prices`', 4 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
priceNoYesstock_id, sales_type_id, curr_abrev

Table: '`0_print_profiles`', 4 fields

Field NameType and SizeDefaultNullableDescription
idsmallint unsigned0NULL 
profilevarchar(30)''NOT NULL 
reportvarchar(5) NULL 
printertinyint unsigned NULL 

Primary key for table '`0_print_profiles`'

Primary Key NameField Name
PRIMARYi

Indexes for table '`0_print_profiles`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
profileNoYesprofile, report

Table: '`0_printers`', 7 fields

Field NameType and SizeDefaultNullableDescription
idtinyint unsigned0NULL 
namevarchar(20)''NOT NULL 
descriptionvarchar(60)''NOT NULL 
queuevarchar(20)''NOT NULL 
hostvarchar(40)''NOT NULL 
portsmallint unsigned0NOT NULL 
timeouttinyint unsigned0NOT NULL 

Primary key for table '`0_printers`'

Primary Key NameField Name
Pi

Indexes for table '`0_printers`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
nameNoYesname

Table: '`0_purch_data`', 6 fields

Field NameType and SizeDefaultNullableDescription
supplier_idinteger0NOT NULL 
stock_idchar(20)''NOT NULL 
pricedouble0NOT NULL 
suppliers_uomchar(50)''NOT NULL 
conversion_factordouble1NOT NULL 
supplier_descriptionchar(50)''NOT NULL 

Primary key for table '`0_purch_data`'

Primary Key NameField Names
PRIMARYsupplier_id, stock_id

Indexes for table '`0_purch_data`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYessupplier_id
PRIMARYNoYesstock_id

Table: '`0_purch_order_details`', 11 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
po_detail_iteminteger0NULL 
order_nointeger0NOT NULL 
item_codevarchar(20)''NOT NULL 
descriptiontext NULL 
delivery_datedate'0000-00-00'NOT NULL 
qty_invoiceddouble0NOT NULL 
unit_pricedouble0NOT NULL 
act_pricedouble0NOT NULL 
std_cost_unitdouble0NOT NULL 
quantity_ordereddouble0NOT NULL 
quantity_receiveddouble0NOT NULL 

Primary key for table '`0_purch_order_details`'

Primary Key NameField Name
PRIMARYpo_detail_item

Indexes for table '`0_purch_order_details`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYespo_detail_item

Table: '`0_purch_orders`', 8 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
order_nointeger0NULL 
supplier_idinteger0NOT NULL 
commentstext NULL 
ord_datedate'0000-00-00'NOT NULL 
referencetext''NOT NULL 
requisition_notext NULL 
into_stock_locationvarchar(5)''NOT NULL 
delivery_addresstext''NOT NULL 

Primary key for table '`0_purch_orders`'

Primary Key NameField Name
PRIMARYorder_no

Indexes for table '`0_purch_orders`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesorder_no

Table: '`0_quick_entries`', 5 fields

Field NameType and SizeDefaultNullableDescription
idsmallint unsigned0NULL 
typetinyint0NOT NULL 
descriptionvarchar(60)''NOT NULL 
base_amountdouble0NOT NULL 
base_descvarchar(60) NULL 

Primary key for table '`0_quick_entries`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_quick_entries`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
descriptionNoNodescription

Table: '`0_quick_entry_lines`', 7 fields

Field NameType and SizeDefaultNullableDescription
idsmallint unsigned0NULL 
qidsmallint unsigned0NOT NULL 
amountdouble0NULL 
actionvarchar(2)''NOT NULL 
dest_idvarchar(11)''NOT NULL 
dimension_idsmallint unsigned NULL 
dimension2_idsmallint unsigned NULL 

Primary key for table '`0_quick_entry_lines`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_quick_entry_lines`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
qidNoNoqid

Table: '`0_recurrent_invoices`', 10 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idsmallint unsigned0NULL 
descriptionvarchar(60)''NOT NULL 
order_nointeger unsigned0NOT NULL 
debtor_nointeger unsigned NULL 
group_nosmallint unsigned NULL 
daysinteger0NOT NULL 
monthlyinteger0NOT NULL 
begindate'0000-00-00'NOT NULL 
enddate'0000-00-00'NOT NULL 
last_sentdate'0000-00-00'NOT NULL 

Primary key for table '`0_recurrent_invoices`'

Primary Key NameField Name
Pi

Indexes for table '`0_recurrent_invoices`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
descriptionNoYesdescription

Table: '`0_refs`', 3 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NOT NULL 
typeinteger0NOT NULL 
referencevarchar(100)''NOT NULL 

Primary key for table '`0_refs`'

Primary Key NameField Names
PRIMARYid, type

Indexes for table '`0_refs`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
PRIMARYNoYestype

Table: '`0_sales_order_details`', 9 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
order_nointeger0NOT NULL 
trans_typesmallint30NOT NULL 
stk_codevarchar(20)''NOT NULL 
descriptiontext NULL 
qty_sentdouble0NOT NULL 
unit_pricedouble0NOT NULL 
quantitydouble0NOT NULL 
discount_percentdouble0NOT NULL 

Primary key for table '`0_sales_order_details`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_sales_order_details`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_sales_orders`', 19 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
order_nointeger0NOT NULL 
trans_typesmallint30NOT NULL 
versiontinyint unsigned0NOT NULL 
typetinyint0NOT NULL 
debtor_nointeger0NOT NULL 
branch_codeinteger0NOT NULL 
referencevarchar(100)''NOT NULL 
customer_reftext''NOT NULL 
commentstext NULL 
ord_datedate'0000-00-00'NOT NULL 
order_typeinteger0NOT NULL 
ship_viainteger0NOT NULL 
delivery_addresstext''NOT NULL 
contact_phonevarchar(30) NULL 
contact_emailvarchar(100) NULL 
deliver_totext''NOT NULL 
freight_costdouble0NOT NULL 
from_stk_locvarchar(5)''NOT NULL 
delivery_datedate'0000-00-00'NOT NULL 

Primary key for table '`0_sales_orders`'

Primary Key NameField Names
PRIMARYtrans_type, order_no

Indexes for table '`0_sales_orders`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYestrans_type
PRIMARYNoYesorder_no

Table: '`0_sales_pos`', 7 fields

Field NameType and SizeDefaultNullableDescription
idsmallint unsigned0NULL 
pos_namevarchar(30)''NOT NULL 
cash_saletinyint0NOT NULL 
credit_saletinyint0NOT NULL 
pos_locationvarchar(5)''NOT NULL 
pos_accountsmallint unsigned0NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_sales_pos`'

Primary Key NameField Name
Pi

Indexes for table '`0_sales_pos`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
pos_nameNoYespos_name

Table: '`0_sales_types`', 5 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
sales_typechar(50)''NOT NULL 
tax_includedinteger0NOT NULL 
factordouble1NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_sales_types`'

Primary Key NameField Name
Pi

Indexes for table '`0_sales_types`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
sales_typeNoYessales_type

Table: '`0_salesman`', 9 fields

Field NameType and SizeDefaultNullableDescription
salesman_codeinteger0NULL 
salesman_namechar(60)''NOT NULL 
salesman_phonechar(30)''NOT NULL 
salesman_faxchar(30)''NOT NULL 
salesman_emailvarchar(100)''NOT NULL 
provisiondouble0NOT NULL 
break_ptdouble0NOT NULL 
provision2double0NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_salesman`'

Primary Key NameField Name
Ps

Indexes for table '`0_salesman`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYessalesman_code
salesman_nameNoYessalesman_name

Table: '`0_security_roles`', 6 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
rolevarchar(30)''NOT NULL 
descriptionvarchar(50) NULL 
sectionstext NULL 
areastext NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_security_roles`'

Primary Key NameField Name
Pi

Indexes for table '`0_security_roles`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
roleNoYesrole

Table: '`0_shippers`', 7 fields

Field NameType and SizeDefaultNullableDescription
shipper_idinteger0NULL 
shipper_namevarchar(60)''NOT NULL 
phonevarchar(30)''NOT NULL 
phone2varchar(30)''NOT NULL 
contacttext''NOT NULL 
addresstext''NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_shippers`'

Primary Key NameField Name
Ps

Indexes for table '`0_shippers`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesshipper_id
nameNoYesshipper_name

Table: '`0_sql_trail`', 4 fields

Field NameType and SizeDefaultNullableDescription
idinteger unsigned0NULL 
sqltext''NOT NULL 
resulttinyint0NOT NULL 
msgvarchar(255)''NOT NULL 

Primary key for table '`0_sql_trail`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_sql_trail`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_stock_category`', 14 fields

Field NameType and SizeDefaultNullableDescription
category_idinteger0NULL 
descriptionvarchar(60)''NOT NULL 
inactivetinyint0NOT NULL 
dflt_tax_typeinteger1NOT NULL 
dflt_unitsvarchar(20)'each'NOT NULL 
dflt_mb_flagchar(1)'B'NOT NULL 
dflt_sales_actvarchar(11)''NOT NULL 
dflt_cogs_actvarchar(11)''NOT NULL 
dflt_inventory_actvarchar(11)''NOT NULL 
dflt_adjustment_actvarchar(11)''NOT NULL 
dflt_assembly_actvarchar(11)''NOT NULL 
dflt_dim1integer NULL 
dflt_dim2integer NULL 
dflt_no_saletinyint0NOT NULL 

Primary key for table '`0_stock_category`'

Primary Key NameField Name
Pc

Indexes for table '`0_stock_category`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYescategory_id
descriptionNoYesdescription

Table: '`0_stock_master`', 21 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
stock_idvarchar(20)''NOT NULL 
category_idinteger0NOT NULL 
tax_type_idinteger0NOT NULL 
descriptionvarchar(200)''NOT NULL 
long_descriptiontext''NOT NULL 
unitsvarchar(20)'each'NOT NULL 
mb_flagchar(1)'B'NOT NULL 
sales_accountvarchar(11)''NOT NULL 
cogs_accountvarchar(11)''NOT NULL 
inventory_accountvarchar(11)''NOT NULL 
adjustment_accountvarchar(11)''NOT NULL 
assembly_accountvarchar(11)''NOT NULL 
dimension_idinteger NULL 
dimension2_idinteger NULL 
actual_costdouble0NOT NULL 
last_costdouble0NOT NULL 
material_costdouble0NOT NULL 
labour_costdouble0NOT NULL 
overhead_costdouble0NOT NULL 
inactivetinyint0NOT NULL 
no_saletinyint0NOT NULL 

Primary key for table '`0_stock_master`'

Primary Key NameField Name
PRIMARYstock_id

Indexes for table '`0_stock_master`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesstock_id

Table: '`0_stock_moves`', 13 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
trans_idinteger0NULL 
trans_nointeger0NOT NULL 
stock_idchar(20)''NOT NULL 
typesmallint0NOT NULL 
loc_codechar(5)''NOT NULL 
tran_datedate'0000-00-00'NOT NULL 
person_idinteger NULL 
pricedouble0NOT NULL 
referencechar(40)''NOT NULL 
qtydouble1NOT NULL 
discount_percentdouble0NOT NULL 
standard_costdouble0NOT NULL 
visibletinyint1NOT NULL 

Primary key for table '`0_stock_moves`'

Primary Key NameField Name
PRIMARYtrans_id

Indexes for table '`0_stock_moves`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYestrans_id
typeNoNotype, trans_no

Table: '`0_supp_allocations`', 7 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
amtdouble unsigned NULL 
date_allocdate'0000-00-00'NOT NULL 
trans_no_frominteger NULL 
trans_type_frominteger NULL 
trans_no_tointeger NULL 
trans_type_tointeger NULL 

Primary key for table '`0_supp_allocations`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_supp_allocations`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_supp_invoice_items`', 12 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
supp_trans_nointeger NULL 
supp_trans_typeinteger NULL 
gl_codevarchar(11)'0'NOT NULL 
grn_item_idinteger NULL 
po_detail_item_idinteger NULL 
stock_idvarchar(20)''NOT NULL 
descriptiontext NULL 
quantitydouble0NOT NULL 
unit_pricedouble0NOT NULL 
unit_taxdouble0NOT NULL 
memo_text NULL 

Primary key for table '`0_supp_invoice_items`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_supp_invoice_items`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_supp_trans`', 12 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
trans_nointeger unsigned0NOT NULL 
typesmallint unsigned0NOT NULL 
supplier_idinteger unsigned NULL 
referencetext''NOT NULL 
supp_referencevarchar(60)''NOT NULL 
tran_datedate'0000-00-00'NOT NULL 
due_datedate'0000-00-00'NOT NULL 
ov_amountdouble0NOT NULL 
ov_discountdouble0NOT NULL 
ov_gstdouble0NOT NULL 
ratedouble1NOT NULL 
allocdouble0NOT NULL 

Primary key for table '`0_supp_trans`'

Primary Key NameField Names
PRIMARYtrans_no, type

Indexes for table '`0_supp_trans`', 6 items

Index NameClusteredUniqueFields
PRIMARYNoYestrans_no
PRIMARYNoYestype
supplier_idNoNosupplier_id
SupplierID_2NoNosupplier_id, supp_reference
typeNoNotype

Table: '`0_suppliers`', 25 fields

Field NameType and SizeDefaultNullableDescription
supplier_idinteger0NULL 
supp_namevarchar(60)''NOT NULL 
addresstext''NOT NULL 
supp_addresstext''NOT NULL 
phonevarchar(30)''NOT NULL 
phone2varchar(30)''NOT NULL 
faxvarchar(30)''NOT NULL 
gst_novarchar(25)''NOT NULL 
contactvarchar(60)''NOT NULL 
supp_account_novarchar(40)''NOT NULL 
emailvarchar(100)''NOT NULL 
websitevarchar(100)''NOT NULL 
bank_accountvarchar(60)''NOT NULL 
curr_codechar(3) NULL 
payment_termsinteger NULL 
dimension_idinteger0NULL 
dimension2_idinteger0NULL 
tax_group_idinteger NULL 
credit_limitdouble0NOT NULL 
purchase_accountvarchar(11) NULL 
payable_accountvarchar(11) NULL 
payment_discount_accountvarchar(11) NULL 
notestext''NOT NULL 
inactivetinyint0NOT NULL 
supp_refvarchar(30)''NOT NULL 

Primary key for table '`0_suppliers`'

Primary Key NameField Name
PRIMARYsupplier_id

Indexes for table '`0_suppliers`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYessupplier_id

Table: '`0_sys_types`', 3 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
type_idsmallint0NOT NULL 
type_nointeger1NOT NULL 
next_referencevarchar(100)''NOT NULL 

Primary key for table '`0_sys_types`'

Primary Key NameField Name
PRIMARYtype_id

Indexes for table '`0_sys_types`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYestype_id

Table: '`0_tag_associations`', 3 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
record_idvarchar(11)''NOT NULL 
tag_idinteger0NOT NULL 

Primary key for table '`0_tag_associations`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_tag_associations`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_tags`', 5 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
typesmallint0NOT NULL 
namevarchar(30)''NOT NULL 
descriptionvarchar(60) NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_tags`'

Primary Key NameField Name
PRIMARYi

Indexes for table '`0_tags`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
typeNoYestype, name

Table: '`0_tax_group_items`', 3 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
tax_group_idinteger0NOT NULL 
tax_type_idinteger0NOT NULL 
ratedouble0NOT NULL 

Primary key for table '`0_tax_group_items`'

Primary Key NameField Names
PRIMARYtax_group_id, tax_type_id

Indexes for table '`0_tax_group_items`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYestax_group_id
PRIMARYNoYestax_type_id

Table: '`0_tax_groups`', 4 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
namevarchar(60)''NOT NULL 
tax_shippingtinyint0NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_tax_groups`'

Primary Key NameField Name
Pi

Indexes for table '`0_tax_groups`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
nameNoYesname

Table: '`0_tax_types`', 6 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
ratedouble0NOT NULL 
sales_gl_codevarchar(11)''NOT NULL 
purchasing_gl_codevarchar(11)''NOT NULL 
namevarchar(60)''NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_tax_types`'

Primary Key NameField Name
Pi

Indexes for table '`0_tax_types`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
nameNoYesname, rate

Table: '`0_trans_tax_details`', 11 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
trans_typesmallint NULL 
trans_nointeger NULL 
tran_datedate'0000-00-00'NOT NULL 
tax_type_idinteger0NOT NULL 
ratedouble0NOT NULL 
ex_ratedouble1NOT NULL 
included_in_pricetinyint0NOT NULL 
net_amountdouble0NOT NULL 
amountdouble0NOT NULL 
memotext NULL 

Primary key for table '`0_trans_tax_details`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_trans_tax_details`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_useronline`', 4 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
timestampinteger0NOT NULL 
ipvarchar(40)''NOT NULL 
filevarchar(100)''NOT NULL 

Primary key for table '`0_useronline`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_useronline`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
timestampNoNotimestamp

Table: '`0_users`', 30 fields

Field NameType and SizeDefaultNullableDescription
idsmallint0NULL 
user_idvarchar(60)''NOT NULL 
passwordvarchar(100)''NOT NULL 
real_namevarchar(100)''NOT NULL 
role_idinteger1NOT NULL 
phonevarchar(30)''NOT NULL 
emailvarchar(100) NULL 
languagevarchar(20) NULL 
date_formattinyint0NOT NULL 
date_septinyint0NOT NULL 
tho_septinyint0NOT NULL 
dec_septinyint0NOT NULL 
themevarchar(20)'default'NOT NULL 
page_sizevarchar(20)'A4'NOT NULL 
prices_decsmallint2NOT NULL 
qty_decsmallint2NOT NULL 
rates_decsmallint4NOT NULL 
percent_decsmallint1NOT NULL 
show_gltinyint1NOT NULL 
show_codestinyint0NOT NULL 
show_hintstinyint0NOT NULL 
last_visit_datedatetime NULL 
query_sizetinyint10NULL 
graphic_linkstinyint1NULL 
possmallint1NULL 
print_profilevarchar(30)'1'NOT NULL 
rep_popuptinyint1NULL 
sticky_doc_datetinyint0NULL 
startup_tabvarchar(20)'orders'NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_users`'

Primary Key NameField Name
Pi

Indexes for table '`0_users`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
user_idNoYesuser_id

Table: '`0_voided`', 4 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
typeinteger0NOT NULL 
idinteger0NOT NULL 
date_date'0000-00-00'NOT NULL 
memo_text''NOT NULL 

Primary key for table '`0_voided`'

Primary Key NameField Names
PRIMARYtype, id

Indexes for table '`0_voided`', 2 items

Index NameClusteredUniqueFields
idNoYestype, id

Table: '`0_wo_issue_items`', 4 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
stock_idvarchar(40) NULL 
issue_idinteger NULL 
qty_issueddouble NULL 

Primary key for table '`0_wo_issue_items`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_wo_issue_items`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_wo_issues`', 6 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
issue_nointeger0NULL 
workorder_idinteger0NOT NULL 
referencevarchar(100) NULL 
issue_datedate NULL 
loc_codevarchar(5) NULL 
workcentre_idinteger NULL 

Primary key for table '`0_wo_issues`'

Primary Key NameField Name
PRIMARYissue_no

Indexes for table '`0_wo_issues`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesissue_no

Table: '`0_wo_manufacture`', 5 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
referencevarchar(100) NULL 
workorder_idinteger0NOT NULL 
quantitydouble0NOT NULL 
date_date'0000-00-00'NOT NULL 

Primary key for table '`0_wo_manufacture`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_wo_manufacture`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_wo_requirements`', 8 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
workorder_idinteger0NOT NULL 
stock_idchar(20)''NOT NULL 
workcentreinteger0NOT NULL 
units_reqdouble1NOT NULL 
std_costdouble0NOT NULL 
loc_codechar(5)''NOT NULL 
units_issueddouble0NOT NULL 

Primary key for table '`0_wo_requirements`'

Primary Key NameField Name
PRIMARYid

Indexes for table '`0_wo_requirements`', 1 item

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_workcentres`', 4 fields

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
namechar(40)''NOT NULL 
descriptionchar(50)''NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_workcentres`'

Primary Key NameField Name
Pi

Indexes for table '`0_workcentres`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
nameNoYesname

Table: '`0_workorders`', 13 fields, InnoDB free: 7168 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
wo_refvarchar(60)''NOT NULL 
loc_codevarchar(5)''NOT NULL 
units_reqddouble1NOT NULL 
stock_idvarchar(20)''NOT NULL 
date_date'0000-00-00'NOT NULL 
typetinyint0NOT NULL 
required_bydate'0000-00-00'NOT NULL 
released_datedate'0000-00-00'NOT NULL 
units_issueddouble0NOT NULL 
closedtinyint0NOT NULL 
releasedtinyint0NOT NULL 
additional_costsdouble0NOT NULL 

Primary key for table '`0_workorders`'

Primary Key NameField Name
Pi

Indexes for table '`0_workorders`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
wo_refNoYeswo_ref

Views

Procedures

Procedure NameParameters

Data Types, 52 items

Type nameCodeType and SizeSizeableNullableSearchableAutoincremenalScaleUser Type
bit-71YesYESYESNo No
tinyint-63YesYESYESNo No
tinyint unsigned-63YesYESYESNo No
tinyint auto_increment-63YesNOYESYes No
tinyint unsigned auto_increment-63YesNOYESYes No
bigint-519YesYESYESNo No
bigint unsigned-520YesYESYESNo No
bigint auto_increment-519YesNOYESYes No
bigint unsigned auto_increment-520YesNOYESYes No
long varbinary-416777215YesYESYESNo No
blob-465535YesYESYESNo No
longblob-42147483647YesYESYESNo No
tinyblob-4255YesYESYESNo No
mediumblob-416777215YesYESYESNo No
varbinary-3255YesYESYESNo No
binary-2255YesYESYESNo No
long varchar-116777215YesYESYESNo No
text-165535YesYESYESNo No
mediumtext-116777215YesYESYESNo No
longtext-12147483647YesYESYESNo No
tinytext-1255YesYESYESNo No
char1255YesYESYESNo No
numeric219YesYESYESNo0..19No
decimal319YesYESYESNo0..19No
integer410YesYESYESNo No
integer unsigned410YesYESYESNo No
int410YesYESYESNo No
int unsigned410YesYESYESNo No
mediumint47YesYESYESNo No
mediumint unsigned48YesYESYESNo No
integer auto_increment410YesNOYESYes No
integer unsigned auto_increment410YesNOYESYes No
int auto_increment410YesNOYESYes No
int unsigned auto_increment410YesNOYESYes No
mediumint auto_increment47YesNOYESYes No
mediumint unsigned auto_increment48YesNOYESYes No
smallint55YesYESYESNo No
smallint unsigned55YesYESYESNo No
smallint auto_increment55YesNOYESYes No
smallint unsigned auto_increment55YesNOYESYes No
double615YesYESYESNo0..4No
double auto_increment615YesNOYESYes0..4No
float77YesYESNONo0..2No
float auto_increment77YesNONOYes0..2No
double815YesYESYESNo0..4No
double auto_increment815YesNOYESYes0..4No
date9110YesYESYESNo No
time928YesYESYESNo No
year54YesYESYESNo No
datetime9321NoYESYESNo No
timestamp9314NoNOYESNo No
varchar12255YesYESYESNo No