Database Schema Report for FrontAccounting 2.3

Table of Contents

Summary

PropertyValue
Report created21-Sep-2010 09:54
DBMS and versionMySQL [ 5.0.51b-community-nt ]
Serverlocalhost via TCP/IP
Database nameaccount24
User/Loginroot
Driver and versionmyodbc5.dll [ 05.01.0006 ]
DTM Schema ReporterVersion 1.20.00, (C) 2003-2009 DTM soft.

Tables, 79 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: 8192 kB

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

Primary key for table '`0_audit_trail`'

Primary Key NameField Name
PRIMARYid

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

Index NameClusteredUniqueFields
PRIMARYNoYesid
SeqNoNofiscal_year, gl_date, gl_seq
Type_and_NumberNoNotype, trans_no

Table: '`0_bank_accounts`', 12 fields

Field NameType and SizeDefaultNullableDescription
account_codevarchar(15)''NOT NULL 
account_typesmallint0NOT NULL 
bank_account_namevarchar(60)''NOT NULL 
bank_account_numbervarchar(100)''NOT NULL 
bank_namevarchar(60)''NOT NULL 
bank_addresstinytext 
bank_curr_codechar(3)''NOT NULL 
dflt_curr_acttinyint.0NOT 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`', 4 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
bank_account_nameNoNobank_account_name
bank_account_numberNoNobank_account_number
account_codeNoNoaccount_code

Table: '`0_bank_trans`', 12 fields, InnoDB free: 8192 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
typesmallint NULL 
trans_nointeger NULL 
bank_actvarchar(15)''NOT NULL 
refvarchar(40) NULL 
trans_datedate'0000-00-00'NOT 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`', 9 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
bank_actNoNobank_act, ref
typeNoNotype, trans_no
bank_act_2NoNobank_act, reconciled
bank_act_3NoNobank_act, trans_date

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`', 10 items

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

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

Field NameType and SizeDefaultNullableDescription
counterinteger0NULL 
typesmallint0NOT NULL 
type_nobigint1NOT NULL 
tran_datedate'0000-00-00'NOT NULL 
accountvarchar(15)''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`', 7 items

Index NameClusteredUniqueFields
PRIMARYNoYescounter
Type_and_NumberNoNotype, type_no
AccountNoNoaccount, tran_date, dimension_id, dimension2_id

Table: '`0_chart_class`', 4 fields

Field NameType and SizeDefaultNullableDescription
cidvarchar(3)''NOT 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(15)''NOT NULL 
account_code2varchar(15)''NOT NULL 
account_namevarchar(60)''NOT NULL 
account_typevarchar(10)'0'NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_chart_master`'

Primary Key NameField Name
PRIMARYaccount_code

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

Index NameClusteredUniqueFields
PRIMARYNoYesaccount_code
account_nameNoNoaccount_name
accounts_by_typeNoNoaccount_type, account_code

Table: '`0_chart_types`', 5 fields

Field NameType and SizeDefaultNullableDescription
idvarchar(10)''NOT NULL 
namevarchar(60)''NOT NULL 
class_idvarchar(3)''NOT NULL 
parentvarchar(10)'-1'NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_chart_types`'

Primary Key NameField Name
PRIMARYid

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

Index NameClusteredUniqueFields
PRIMARYNoYesid
nameNoNoname
class_idNoNoclass_id

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

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

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

Index NameClusteredUniqueFields
type_and_idNoNotype, id

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_crm_categories`', 7 fields, InnoDB free: 8192 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULLpure technical key
typevarchar(20)''NOT NULLcontact type e.g. customer
actionvarchar(20)''NOT NULLdetailed usage e.g. department
namevarchar(30)''NOT NULLfor category selector
descriptiontinytext''NOT NULLusage description
systemtinyint(1)0NOT NULLnonzero for core system usage
inactivetinyint0NOT NULL 

Primary key for table '`0_crm_categories`'

Primary Key NameField Name
Pi

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

Index NameClusteredUniqueFields
PRIMARYNoYesid
typeNoYestype, action
type_2NoYestype, name

Table: '`0_crm_contacts`', 5 fields, InnoDB free: 8192 kB

NULL
Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
person_idinteger0NOT NULLforeign key to crm_contacts
typevarchar(20)''NOT NULLforeign key to crm_categories
actionvarchar(20)''NOT NULLforeign key to crm_categories
entity_idvarchar(11)''entity id in related class table

Primary key for table '`0_crm_contacts`'

Primary Key NameField Name
PRIMARYid

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

Index NameClusteredUniqueFields
PRIMARYNoYesid
typeNoNotype, action

Table: '`0_crm_persons`', 12 fields, InnoDB free: 8192 kB

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
refvarchar(30)''NOT NULL 
namevarchar(60)''NOT NULL 
name2varchar(60) NULL 
addresstext  
phonevarchar(30)NULL 
phone2varchar(30) NULL 
faxvarchar(30) NULL 
emailvarchar(100) NULL 
langchar(5) NULL 
notestext''NOT NULL 
inactivetinyint''NOT NULL 

Primary key for table '`0_crm_persons`'

Primary Key NameField Name
PRIMARYid

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

Index NameClusteredUniqueFields
PRIMARYNoYesid
refNoNoref

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 
auto_updatetinyint1NOT NULL 
inactivetinyint0NOT 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: 8192 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`', 5 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
FromNoNotrans_type_from
FromNoNotrans_no_from
ToNoNotrans_type_to

Table: '`0_cust_branch`', 20 fields

Field NameType and SizeDefaultNullableDescription
branch_codeinteger0NULL 
debtor_nointeger0NOT NULL 
br_namevarchar(60)''NOT NULL 
branch_refvarchar(30)''NOT NULL 
br_addresstext''NOT NULL 
areaintegerNULL 
salesmaninteger0NOT NULL 
contact_namevarchar(60)''NOT NULL 
default_locationvarchar(5)''NOT NULL 
tax_group_idintegerNULL 
sales_accountvarchar(15)''NOT NULL 
sales_discount_accountvarchar(15)''NOT NULL 
receivables_accountvarchar(15)''NOT NULL 
payment_discount_accountvarchar(15)''NOT NULL 
default_ship_viainteger1NOT NULL 
disable_transtinyint0NOT NULL 
br_post_addresstextNOT NULL 
group_nointeger0NOT NULL 
notestext''NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_cust_branch`'

Primary Key NameField Names
PRIMARYbranch_code, debtor_no

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

Index NameClusteredUniqueFields
PRIMARYNoYesbranch_code
PRIMARYNoYesdebtor_no
branch_codeNoNobranch_code
branch_refNoNobranch_ref
group_noNoNogroup_no

Table: '`0_debtor_trans`', 21 fields, InnoDB free: 8192 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 
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 
dimension_idinteger0NOT NULL 
dimension2_idinteger0NOT NULL 
payment_termsintegerNULL 

Primary key for table '`0_debtor_trans`'

Primary Key NameField Names
PRIMARYtype, trans_no

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

Index NameClusteredUniqueFields
PRIMARYNoYestype
PRIMARYNoYestrans_no
debtor_noNoNodebtor_no, branch_code
tran_dateNoNotran_date

Table: '`0_debtor_trans_details`', 12 fields, InnoDB free: 8192 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 
src_idintegerNOT NULL 

Primary key for table '`0_debtor_trans_details`'

Primary Key NameField Name
PRIMARYid

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

Index NameClusteredUniqueFields
PRIMARYNoYesid
TransactionNoNodebtor_trans_type
TransactionNoNodebtor_trans_no
src_idNoNosrc_id

Table: '`0_debtors_master`', 16 fields

Field NameType and SizeDefaultNullableDescription
debtor_nointeger0NULL 
namevarchar(100)''NOT NULL 
debtor_refvarchar(30)''NOT NULL 
addresstext 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''NOT NULL 
inactivetinyint0NOT NULL 

Primary key for table '`0_debtors_master`'

Primary Key NameField Name
Pd

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

Index NameClusteredUniqueFields
PRIMARYNoYesdebtor_no
nameNoYesname
debtor_refNoNodebtor_ref

Table: '`0_dimensions`', 7 fields, InnoDB free: 8192 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`', 5 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
referenceNoYesreference
date_NoNodate_
due_dateNoNodue_date
type_NoNotype_

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: 8192 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
Pi

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

Index NameClusteredUniqueFields
PRIMARYNoYesid
beginNoYesbegin
endNoYesend

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

Field NameType and SizeDefaultNullableDescription
counterinteger0NULL 
typesmallint0NOT NULL 
type_nobigint1NOT NULL 
tran_datedate'0000-00-00'NOT NULL 
accountvarchar(15)''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`', 8 items

Index NameClusteredUniqueFields
PRIMARYNoYescounter
Type_and_NumberNoNotype, type_no
dimension_idNoNodimension_id
dimension2_idNoNodimension2_id
tran_dateNoNotran_date
account_and_tran_dateNoNoaccount, tran_date

Table: '`0_grn_batch`', 6 fields, InnoDB free: 8192 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`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
delivery_dateNoNodelivery_date
purch_order_noNoNopurch_order_no

Table: '`0_grn_items`', 7 fields, InnoDB free: 8192 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`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
grn_batch_idNoNogrn_batch_id

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 
is_foreigntinyint0NOT NULL 

Primary key for table '`0_item_codes`'

Primary Key NameField Name
PRIMARYi

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

Index NameClusteredUniqueFields
PRIMARYNoYesid
stock_idNoYesstock_id, item_code
item_codeNoNoitem_code

Table: '`0_item_tax_type_exemptions`', 2 fields, InnoDB free: 8192 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: 8192 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, units of measure

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: 8192 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: 8192 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`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYespo_detail_item
orderNoNoorder_no
orderNoNopo_detail_item

Table: '`0_purch_orders`', 10 fields, InnoDB free: 8192 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 
totaldouble0NOT NULL 
tax_includedtinyint0NOT NULL 

Primary key for table '`0_purch_orders`'

Primary Key NameField Name
PRIMARYorder_no

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

Index NameClusteredUniqueFields
PRIMARYNoYesorder_no
ord_dateNoNoord_date

Table: '`0_quick_entries`', 6 fields

Field NameType and SizeDefaultNullableDescription
idsmallint unsigned0NULL 
typetinyint0NOT NULL 
descriptionvarchar(60)''NOT NULL 
base_amountdouble0NOT NULL 
base_descvarchar(60) NULL 
bal_typetinyint0NOT 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: 8192 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: 8192 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`', 4 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
PRIMARYNoYestype
Type_and_ReferenceNoNotype, reference

Table: '`0_sales_order_details`', 9 fields, InnoDB free: 8192 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`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
sorderNoNotrans_type, order_no

Table: '`0_sales_orders`', 21 fields, InnoDB free: 8192 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 
payment_termsintegerNULL 
totaldouble0NOT 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 
dflt_tax_typeinteger1NOT NULL 
dflt_unitsvarchar(20)'each'NOT NULL 
dflt_mb_flagchar(1)'B'NOT NULL 
dflt_sales_actvarchar(15)''NOT NULL 
dflt_cogs_actvarchar(15)''NOT NULL 
dflt_inventory_actvarchar(15)''NOT NULL 
dflt_adjustment_actvarchar(15)''NOT NULL 
dflt_assembly_actvarchar(15)''NOT NULL 
dflt_dim1integer NULL 
dflt_dim2integer NULL 
inactivetinyint0NOT 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`', 22 fields, InnoDB free: 8192 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(15)''NOT NULL 
cogs_accountvarchar(15)''NOT NULL 
inventory_accountvarchar(15)''NOT NULL 
adjustment_accountvarchar(15)''NOT NULL 
assembly_accountvarchar(15)''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 
editabletinyint0NOT 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: 8192 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`', 6 items

Index NameClusteredUniqueFields
PRIMARYNoYestrans_id
typeNoNotype, trans_no
MoveNoNostock_id, loc_code, tran_date

Table: '`0_supp_allocations`', 7 fields, InnoDB free: 8192 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`', 5 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
FromNoNotrans_type_from
FromNoNotrans_no_from
ToNoNotrans_type_to

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

Field NameType and SizeDefaultNullableDescription
idinteger0NULL 
supp_trans_nointeger NULL 
supp_trans_typeinteger NULL 
gl_codevarchar(15)''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`', 4 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
TransactionNoNosupp_trans_type
TransactionNoNosupp_trans_no
TransactionNoNostock_id

Table: '`0_supp_trans`', 13 fields, InnoDB free: 8192 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 
tax_includedtinyint0NOT NULL 

Primary key for table '`0_supp_trans`'

Primary Key NameField Names
PRIMARYtype, trans_no

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

Index NameClusteredUniqueFields
PRIMARYNoYestype
PRIMARYNoYestrans_no
supplier_idNoNosupplier_id
SupplierID_2NoNosupplier_id, supp_reference
typeNoNotype
tran_dateNoNotran_date

Table: '`0_suppliers`', 22 fields

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

Primary key for table '`0_suppliers`'

Primary Key NameField Name
PRIMARYsupplier_id

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

Index NameClusteredUniqueFields
PRIMARYNoYessupplier_id
supp_refNoNosupp_ref

Table: '`0_sys_prefs`', 5 fields

Field NameType and SizeDefaultNullableDescription
namevarchar(35)''NOT NULL 
categoryvarchar(30) NULL 
typevarchar(20)''NOT NULL 
lengthsmallint NULL 
valuetext  

Primary key for table '`0_sys_prefs`'

Primary Key NameField Name
PRIMARYname

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

Index NameClusteredUniqueFields
PRIMARYNoYesname
categoryNoNocategory

Table: '`0_sys_types`', 3 fields, InnoDB free: 8192 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`', 2 fields

Field NameType and SizeDefaultNullableDescription
record_idvarchar(15)''NOT NULL 
tag_idinteger0NOT NULL 

Primary key for table '`0_tag_associations`'

Primary Key NameField Names
PRIMARYrecord_id, tag_id

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

Index NameClusteredUniqueFields
record_idNoYesrecord_id, tag_id

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: 8192 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: 8192 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: 8192 kB

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

Primary key for table '`0_tax_types`'

Primary Key NameField Name
PRIMARYid

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

Index NameClusteredUniqueFields
PRIMARYNoYesid

Table: '`0_trans_tax_details`', 11 fields, InnoDB free: 8192 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`', 4 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
Type_and_NumberNoNotrans_type, trans_no
tran_dateNoNotran_date

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`', 3 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
timestampNoNotimestamp
ipNoNoip

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: 8192 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: 8192 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: 8192 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`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesissue_no
workorder_idNoNoworkorder_id

Table: '`0_wo_manufacture`', 5 fields, InnoDB free: 8192 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`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
workorder_idNoNoworkorder_id

Table: '`0_wo_requirements`', 8 fields, InnoDB free: 8192 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`', 2 items

Index NameClusteredUniqueFields
PRIMARYNoYesid
workorder_idNoNoworkorder_id

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: 8192 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