| Property | Value |
|---|---|
| Report created | 03-Nov-2009 10:48 |
| DBMS and version | MySQL [ 5.0.51b-community-nt ] |
| Server | localhost via TCP/IP |
| Database name | unstable |
| User/Login | root |
| Driver and version | myodbc5.dll [ 05.01.0005 ] |
| DTM Schema Reporter version | Version 1.17.00, (C) 2003-2008 DTM soft. |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| area_code | integer | 0 | NULL | |
| description | varchar(60) | '' | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | a |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | area_code |
| description | No | Yes | description |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer unsigned | 0 | NULL | |
| description | varchar(60) | '' | NOT NULL | |
| type_no | integer | 0 | NOT NULL | |
| trans_no | integer | 0 | NOT NULL | |
| unique_name | varchar(60) | '' | NOT NULL | |
| tran_date | date | '0000-00-00' | NOT NULL | |
| filename | varchar(60) | '' | NOT NULL | |
| filesize | integer | 0 | NOT NULL | |
| filetype | varchar(60) | '' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| type_no | No | No | type_no, trans_no |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| type | smallint unsigned | 0 | NOT NULL | |
| trans_no | integer unsigned | 0 | NOT NULL | |
| user | smallint unsigned | 0 | NOT NULL | |
| stamp | timestamp | NULL | ||
| description | varchar(60) | NULL | ||
| fiscal_year | integer | 0 | NOT NULL | |
| gl_date | date | '0000-00-00' | NOT NULL | |
| gl_seq | integer unsigned | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| fiscal_year | No | No | fiscal_year, gl_seq |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| account_code | varchar(11) | '' | NOT NULL | |
| account_type | smallint | 0 | NOT NULL | |
| bank_account_name | varchar(60) | '' | NOT NULL | |
| bank_account_number | varchar(100) | '' | NOT NULL | |
| bank_name | varchar(60) | '' | NOT NULL | |
| bank_address | text | NULL | ||
| bank_curr_code | char(3) | '' | NOT NULL | |
| dflt_curr_act | tinyint | 0 | NOT NULL | |
| id | smallint | 0 | NULL | |
| last_reconciled_date | timestamp | NOT NULL | ||
| ending_reconcile_balance | double | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| bank_account_name | No | No | bank_account_name |
| bank_account_number | No | No | bank_account_number |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| type | smallint | NULL | ||
| trans_no | integer | NULL | ||
| bank_act | varchar(11) | NULL | ||
| ref | varchar(40) | NULL | ||
| trans_date | date | '0000-00-00' | NOT NULL | |
| bank_trans_type_id | integer unsigned | NULL | ||
| amount | double | NULL | ||
| dimension_id | integer | 0 | NOT NULL | |
| dimension2_id | integer | 0 | NOT NULL | |
| person_type_id | integer | 0 | NOT NULL | |
| person_id | blob | NULL | ||
| reconciled | date | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| bank_act | No | No | bank_act, ref |
| type | No | No | type, trans_no |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| parent | char(20) | '' | NOT NULL | |
| component | char(20) | '' | NOT NULL | |
| workcentre_added | integer | 0 | NOT NULL | |
| loc_code | char(5) | '' | NOT NULL | |
| quantity | double | 1 | NOT NULL |
| Primary Key Name | Field Names |
|---|---|
| PRIMARY | parent, component, workcentre_added, loc_code |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | parent |
| PRIMARY | No | Yes | component |
| PRIMARY | No | Yes | workcentre_added |
| PRIMARY | No | Yes | loc_code |
| component | No | No | component |
| id | No | No | id |
| loc_code | No | No | loc_code |
| parent | No | No | parent, loc_code |
| Parent_2 | No | No | parent |
| workcentre_added | No | No | workcentre_added |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| counter | integer | 0 | NULL | |
| type | smallint | 0 | NOT NULL | |
| type_no | bigint | 1 | NOT NULL | |
| tran_date | date | '0000-00-00' | NOT NULL | |
| account | varchar(11) | '' | NOT NULL | |
| memo_ | text | '' | NOT NULL | |
| amount | double | 0 | NOT NULL | |
| dimension_id | integer | 0 | NULL | |
| dimension2_id | integer | 0 | NULL | |
| person_type_id | integer | NULL | ||
| person_id | blob | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | counter |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | counter |
| Type_and_Number | No | No | type, type_no |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| cid | integer | 0 | NOT NULL | |
| class_name | varchar(60) | '' | NOT NULL | |
| ctype | tinyint | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | cid |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | cid |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| account_code | varchar(11) | '' | NOT NULL | |
| account_code2 | varchar(11) | '' | NULL | |
| account_name | varchar(60) | '' | NOT NULL | |
| account_type | integer | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | account_code |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | account_code |
| account_code | No | No | account_code |
| account_name | No | No | account_name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| name | varchar(60) | '' | NOT NULL | |
| class_id | tinyint | 0 | NOT NULL | |
| parent | integer | -1 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| name | No | No | name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| account_id | integer | 0 | NULL | |
| bank_ref | varchar(11) | '' | NOT NULL | |
| next_reference | varchar(100) | '' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | a |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | account_id |
| bank_ref | No | Yes | bank_ref |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| check_ref | varchar(100) | '' | NOT NULL | |
| bank_trans_id | integer | 0 | NOT NULL | |
| cheque_bank_id | integer | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| cheque_ref | No | Yes | check_ref, cheque_bank_id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| type | integer | 0 | NOT NULL | |
| id | integer | 0 | NOT NULL | |
| date_ | date | '0000-00-00' | NULL | |
| memo_ | text | NULL |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| coy_code | integer | 1 | NOT NULL | |
| coy_name | varchar(60) | '' | NOT NULL | |
| gst_no | varchar(25) | '' | NOT NULL | |
| coy_no | varchar(25) | '0' | NOT NULL | |
| tax_prd | integer | 1 | NOT NULL | |
| tax_last | integer | 1 | NOT NULL | |
| postal_address | text | '' | NOT NULL | |
| phone | varchar(30) | '' | NOT NULL | |
| fax | varchar(30) | '' | NOT NULL | |
| varchar(100) | '' | NOT NULL | ||
| coy_logo | varchar(100) | '' | NOT NULL | |
| domicile | varchar(55) | '' | NOT NULL | |
| curr_default | char(3) | '' | NOT NULL | |
| debtors_act | varchar(11) | '' | NOT NULL | |
| pyt_discount_act | varchar(11) | '' | NOT NULL | |
| creditors_act | varchar(11) | '' | NOT NULL | |
| bank_charge_act | varchar(11) | '' | NOT NULL | |
| exchange_diff_act | varchar(11) | '' | NOT NULL | |
| profit_loss_year_act | varchar(11) | '' | NOT NULL | |
| retained_earnings_act | varchar(11) | '' | NOT NULL | |
| freight_act | varchar(11) | '' | NOT NULL | |
| default_sales_act | varchar(11) | '' | NOT NULL | |
| default_sales_discount_act | varchar(11) | '' | NOT NULL | |
| default_prompt_payment_act | varchar(11) | '' | NOT NULL | |
| default_inventory_act | varchar(11) | '' | NOT NULL | |
| default_cogs_act | varchar(11) | '' | NOT NULL | |
| default_adj_act | varchar(11) | '' | NOT NULL | |
| default_inv_sales_act | varchar(11) | '' | NOT NULL | |
| default_assembly_act | varchar(11) | '' | NOT NULL | |
| payroll_act | varchar(11) | '' | NOT NULL | |
| allow_negative_stock | tinyint | 0 | NOT NULL | |
| po_over_receive | integer | 10 | NOT NULL | |
| po_over_charge | integer | 10 | NOT NULL | |
| default_credit_limit | integer | 1000 | NOT NULL | |
| default_workorder_required | integer | 20 | NOT NULL | |
| default_dim_required | integer | 20 | NOT NULL | |
| past_due_days | integer | 30 | NOT NULL | |
| use_dimension | tinyint | 0 | NULL | |
| f_year | integer | 1 | NOT NULL | |
| no_item_list | tinyint | 0 | NOT NULL | |
| no_customer_list | tinyint | 0 | NOT NULL | |
| no_supplier_list | tinyint | 0 | NOT NULL | |
| base_sales | integer | -1 | NOT NULL | |
| foreign_codes | tinyint | 0 | NOT NULL | |
| accumulate_shipping | tinyint | 0 | NOT NULL | |
| legal_text | text | '' | NOT NULL | |
| default_delivery_required | smallint | 1 | NULL | |
| version_id | varchar(11) | '' | NOT NULL | |
| time_zone | tinyint | 0 | NOT NULL | |
| add_pct | integer | -1 | NOT NULL | |
| round_to | integer | 1 | NOT NULL | |
| login_tout | smallint | 600 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | coy_code |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | coy_code |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| reason_description | char(100) | '' | NOT NULL | |
| dissallow_invoices | tinyint | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| reason_description | No | Yes | reason_description |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| currency | varchar(60) | '' | NOT NULL | |
| curr_abrev | char(3) | '' | NOT NULL | |
| curr_symbol | varchar(10) | '' | NOT NULL | |
| country | varchar(100) | '' | NOT NULL | |
| hundreds_name | varchar(15) | '' | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL | |
| auto_update | tinyint | 1 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | curr_abrev |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | curr_abrev |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| amt | double unsigned | NULL | ||
| date_alloc | date | '0000-00-00' | NOT NULL | |
| trans_no_from | integer | NULL | ||
| trans_type_from | integer | NULL | ||
| trans_no_to | integer | NULL | ||
| trans_type_to | integer | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| branch_code | integer | 0 | NULL | |
| debtor_no | integer | 0 | NOT NULL | |
| br_name | varchar(60) | '' | NOT NULL | |
| br_address | text | '' | NOT NULL | |
| area | integer | NULL | ||
| salesman | integer | 0 | NOT NULL | |
| phone | varchar(30) | '' | NOT NULL | |
| phone2 | varchar(30) | '' | NOT NULL | |
| fax | varchar(30) | '' | NOT NULL | |
| contact_name | varchar(60) | '' | NOT NULL | |
| varchar(100) | '' | NOT NULL | ||
| default_location | varchar(5) | '' | NOT NULL | |
| tax_group_id | integer | NULL | ||
| sales_account | varchar(11) | NULL | ||
| sales_discount_account | varchar(11) | NULL | ||
| receivables_account | varchar(11) | NULL | ||
| payment_discount_account | varchar(11) | NULL | ||
| default_ship_via | integer | 1 | NOT NULL | |
| disable_trans | tinyint | 0 | NOT NULL | |
| br_post_address | text | '' | NOT NULL | |
| group_no | integer | 0 | NOT NULL | |
| notes | text | NULL | ||
| inactive | tinyint | 0 | NOT NULL | |
| branch_ref | varchar(30) | '' | NOT NULL |
| Primary Key Name | Field Names |
|---|---|
| PRIMARY | branch_code, debtor_no |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | branch_code |
| PRIMARY | No | Yes | debtor_no |
| branch_code | No | No | branch_code |
| br_name | No | No | br_name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| trans_no | integer unsigned | 0 | NOT NULL | |
| type | smallint unsigned | 0 | NOT NULL | |
| version | tinyint unsigned | 0 | NOT NULL | |
| debtor_no | integer unsigned | NULL | ||
| branch_code | integer | -1 | NOT NULL | |
| tran_date | date | '0000-00-00' | NOT NULL | |
| due_date | date | '0000-00-00' | NOT NULL | |
| reference | varchar(60) | '' | NOT NULL | |
| tpe | integer | 0 | NOT NULL | |
| order_ | integer | 0 | NOT NULL | |
| ov_amount | double | 0 | NOT NULL | |
| ov_gst | double | 0 | NOT NULL | |
| ov_freight | double | 0 | NOT NULL | |
| ov_freight_tax | double | 0 | NOT NULL | |
| ov_discount | double | 0 | NOT NULL | |
| alloc | double | 0 | NOT NULL | |
| rate | double | 1 | NOT NULL | |
| ship_via | integer | NULL | ||
| trans_link | integer | 0 | NOT NULL | |
| dimension_id | integer | 0 | NOT NULL | |
| dimension2_id | integer | 0 | NOT NULL |
| Primary Key Name | Field Names |
|---|---|
| PRIMARY | trans_no, type |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | trans_no |
| PRIMARY | No | Yes | type |
| debtor_no | No | No | debtor_no, branch_code |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| debtor_trans_no | integer | NULL | ||
| debtor_trans_type | integer | NULL | ||
| stock_id | varchar(20) | '' | NOT NULL | |
| description | text | NULL | ||
| unit_price | double | 0 | NOT NULL | |
| unit_tax | double | 0 | NOT NULL | |
| quantity | double | 0 | NOT NULL | |
| discount_percent | double | 0 | NOT NULL | |
| standard_cost | double | 0 | NOT NULL | |
| qty_done | double | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| debtor_no | integer | 0 | NULL | |
| name | varchar(100) | '' | NOT NULL | |
| address | text | NULL | ||
| varchar(100) | '' | NOT NULL | ||
| tax_id | varchar(55) | '' | NOT NULL | |
| curr_code | char(3) | '' | NOT NULL | |
| sales_type | integer | 1 | NOT NULL | |
| dimension_id | integer | 0 | NOT NULL | |
| dimension2_id | integer | 0 | NOT NULL | |
| credit_status | integer | 0 | NOT NULL | |
| payment_terms | integer | NULL | ||
| discount | double | 0 | NOT NULL | |
| pymt_discount | double | 0 | NOT NULL | |
| credit_limit | float | 1000 | NOT NULL | |
| notes | text | NULL | ||
| inactive | tinyint | 0 | NOT NULL | |
| debtor_ref | varchar(30) | '' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | d |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | debtor_no |
| name | No | Yes | name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| reference | varchar(60) | '' | NOT NULL | |
| name | varchar(60) | '' | NOT NULL | |
| type_ | tinyint | 1 | NOT NULL | |
| closed | tinyint | 0 | NOT NULL | |
| date_ | date | '0000-00-00' | NOT NULL | |
| due_date | date | '0000-00-00' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| reference | No | Yes | reference |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| curr_code | char(3) | '' | NOT NULL | |
| rate_buy | double | 0 | NOT NULL | |
| rate_sell | double | 0 | NOT NULL | |
| date_ | date | '0000-00-00' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| curr_code | No | Yes | curr_code, date_ |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| begin | date | '0000-00-00' | NULL | |
| end | date | '0000-00-00' | NULL | |
| closed | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| counter | integer | 0 | NULL | |
| type | smallint | 0 | NOT NULL | |
| type_no | bigint | 1 | NOT NULL | |
| tran_date | date | '0000-00-00' | NOT NULL | |
| account | varchar(11) | '' | NOT NULL | |
| memo_ | text | '' | NOT NULL | |
| amount | double | 0 | NOT NULL | |
| dimension_id | integer | 0 | NOT NULL | |
| dimension2_id | integer | 0 | NOT NULL | |
| person_type_id | integer | NULL | ||
| person_id | blob | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | counter |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | counter |
| Type_and_Number | No | No | type, type_no |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| supplier_id | integer | 0 | NOT NULL | |
| purch_order_no | integer | NULL | ||
| reference | varchar(60) | '' | NOT NULL | |
| delivery_date | date | '0000-00-00' | NOT NULL | |
| loc_code | varchar(5) | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| grn_batch_id | integer | NULL | ||
| po_detail_item | integer | 0 | NOT NULL | |
| item_code | varchar(20) | '' | NOT NULL | |
| description | text | NULL | ||
| qty_recd | double | 0 | NOT NULL | |
| quantity_inv | double | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | smallint unsigned | 0 | NULL | |
| description | varchar(60) | '' | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| description | No | Yes | description |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer unsigned | 0 | NULL | |
| item_code | varchar(20) | '' | NOT NULL | |
| stock_id | varchar(20) | '' | NOT NULL | |
| description | varchar(200) | '' | NOT NULL | |
| category_id | smallint unsigned | 0 | NOT NULL | |
| quantity | double | 1 | NOT NULL | |
| is_foreign | tinyint | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| stock_id | No | Yes | stock_id, item_code |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| item_tax_type_id | integer | 0 | NOT NULL | |
| tax_type_id | integer | 0 | NOT NULL |
| Primary Key Name | Field Names |
|---|---|
| PRIMARY | item_tax_type_id, tax_type_id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | item_tax_type_id |
| PRIMARY | No | Yes | tax_type_id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| name | varchar(60) | '' | NOT NULL | |
| exempt | tinyint | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| name | No | Yes | name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| abbr | varchar(20) | '' | NOT NULL | |
| name | varchar(40) | '' | NOT NULL | |
| decimals | tinyint | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | a |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | abbr |
| name | No | Yes | name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| loc_code | char(5) | '' | NOT NULL | |
| stock_id | char(20) | '' | NOT NULL | |
| reorder_level | bigint | 0 | NOT NULL |
| Primary Key Name | Field Names |
|---|---|
| PRIMARY | loc_code, stock_id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | loc_code |
| PRIMARY | No | Yes | stock_id |
| stock_id | No | No | stock_id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| loc_code | varchar(5) | '' | NOT NULL | |
| location_name | varchar(60) | '' | NOT NULL | |
| delivery_address | text | '' | NOT NULL | |
| phone | varchar(30) | '' | NOT NULL | |
| phone2 | varchar(30) | '' | NOT NULL | |
| fax | varchar(30) | '' | NOT NULL | |
| varchar(100) | '' | NOT NULL | ||
| contact | varchar(30) | '' | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | loc_code |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | loc_code |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| name | varchar(60) | '' | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| name | No | Yes | name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| terms_indicator | integer | 0 | NULL | |
| terms | char(80) | '' | NOT NULL | |
| days_before_due | smallint | 0 | NOT NULL | |
| day_in_following_month | smallint | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | t |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | terms_indicator |
| terms | No | Yes | terms |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| stock_id | varchar(20) | '' | NOT NULL | |
| sales_type_id | integer | 0 | NOT NULL | |
| curr_abrev | char(3) | '' | NOT NULL | |
| price | double | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| price | No | Yes | stock_id, sales_type_id, curr_abrev |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | smallint unsigned | 0 | NULL | |
| profile | varchar(30) | '' | NOT NULL | |
| report | varchar(5) | NULL | ||
| printer | tinyint unsigned | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| profile | No | Yes | profile, report |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | tinyint unsigned | 0 | NULL | |
| name | varchar(20) | '' | NOT NULL | |
| description | varchar(60) | '' | NOT NULL | |
| queue | varchar(20) | '' | NOT NULL | |
| host | varchar(40) | '' | NOT NULL | |
| port | smallint unsigned | 0 | NOT NULL | |
| timeout | tinyint unsigned | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| name | No | Yes | name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| supplier_id | integer | 0 | NOT NULL | |
| stock_id | char(20) | '' | NOT NULL | |
| price | double | 0 | NOT NULL | |
| suppliers_uom | char(50) | '' | NOT NULL | |
| conversion_factor | double | 1 | NOT NULL | |
| supplier_description | char(50) | '' | NOT NULL |
| Primary Key Name | Field Names |
|---|---|
| PRIMARY | supplier_id, stock_id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | supplier_id |
| PRIMARY | No | Yes | stock_id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| po_detail_item | integer | 0 | NULL | |
| order_no | integer | 0 | NOT NULL | |
| item_code | varchar(20) | '' | NOT NULL | |
| description | text | NULL | ||
| delivery_date | date | '0000-00-00' | NOT NULL | |
| qty_invoiced | double | 0 | NOT NULL | |
| unit_price | double | 0 | NOT NULL | |
| act_price | double | 0 | NOT NULL | |
| std_cost_unit | double | 0 | NOT NULL | |
| quantity_ordered | double | 0 | NOT NULL | |
| quantity_received | double | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | po_detail_item |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | po_detail_item |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| order_no | integer | 0 | NULL | |
| supplier_id | integer | 0 | NOT NULL | |
| comments | text | NULL | ||
| ord_date | date | '0000-00-00' | NOT NULL | |
| reference | text | '' | NOT NULL | |
| requisition_no | text | NULL | ||
| into_stock_location | varchar(5) | '' | NOT NULL | |
| delivery_address | text | '' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | order_no |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | order_no |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | smallint unsigned | 0 | NULL | |
| type | tinyint | 0 | NOT NULL | |
| description | varchar(60) | '' | NOT NULL | |
| base_amount | double | 0 | NOT NULL | |
| base_desc | varchar(60) | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| description | No | No | description |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | smallint unsigned | 0 | NULL | |
| qid | smallint unsigned | 0 | NOT NULL | |
| amount | double | 0 | NULL | |
| action | varchar(2) | '' | NOT NULL | |
| dest_id | varchar(11) | '' | NOT NULL | |
| dimension_id | smallint unsigned | NULL | ||
| dimension2_id | smallint unsigned | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| qid | No | No | qid |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | smallint unsigned | 0 | NULL | |
| description | varchar(60) | '' | NOT NULL | |
| order_no | integer unsigned | 0 | NOT NULL | |
| debtor_no | integer unsigned | NULL | ||
| group_no | smallint unsigned | NULL | ||
| days | integer | 0 | NOT NULL | |
| monthly | integer | 0 | NOT NULL | |
| begin | date | '0000-00-00' | NOT NULL | |
| end | date | '0000-00-00' | NOT NULL | |
| last_sent | date | '0000-00-00' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| description | No | Yes | description |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NOT NULL | |
| type | integer | 0 | NOT NULL | |
| reference | varchar(100) | '' | NOT NULL |
| Primary Key Name | Field Names |
|---|---|
| PRIMARY | id, type |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| PRIMARY | No | Yes | type |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| order_no | integer | 0 | NOT NULL | |
| trans_type | smallint | 30 | NOT NULL | |
| stk_code | varchar(20) | '' | NOT NULL | |
| description | text | NULL | ||
| qty_sent | double | 0 | NOT NULL | |
| unit_price | double | 0 | NOT NULL | |
| quantity | double | 0 | NOT NULL | |
| discount_percent | double | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| order_no | integer | 0 | NOT NULL | |
| trans_type | smallint | 30 | NOT NULL | |
| version | tinyint unsigned | 0 | NOT NULL | |
| type | tinyint | 0 | NOT NULL | |
| debtor_no | integer | 0 | NOT NULL | |
| branch_code | integer | 0 | NOT NULL | |
| reference | varchar(100) | '' | NOT NULL | |
| customer_ref | text | '' | NOT NULL | |
| comments | text | NULL | ||
| ord_date | date | '0000-00-00' | NOT NULL | |
| order_type | integer | 0 | NOT NULL | |
| ship_via | integer | 0 | NOT NULL | |
| delivery_address | text | '' | NOT NULL | |
| contact_phone | varchar(30) | NULL | ||
| contact_email | varchar(100) | NULL | ||
| deliver_to | text | '' | NOT NULL | |
| freight_cost | double | 0 | NOT NULL | |
| from_stk_loc | varchar(5) | '' | NOT NULL | |
| delivery_date | date | '0000-00-00' | NOT NULL |
| Primary Key Name | Field Names |
|---|---|
| PRIMARY | trans_type, order_no |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | trans_type |
| PRIMARY | No | Yes | order_no |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | smallint unsigned | 0 | NULL | |
| pos_name | varchar(30) | '' | NOT NULL | |
| cash_sale | tinyint | 0 | NOT NULL | |
| credit_sale | tinyint | 0 | NOT NULL | |
| pos_location | varchar(5) | '' | NOT NULL | |
| pos_account | smallint unsigned | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| pos_name | No | Yes | pos_name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| sales_type | char(50) | '' | NOT NULL | |
| tax_included | integer | 0 | NOT NULL | |
| factor | double | 1 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| sales_type | No | Yes | sales_type |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| salesman_code | integer | 0 | NULL | |
| salesman_name | char(60) | '' | NOT NULL | |
| salesman_phone | char(30) | '' | NOT NULL | |
| salesman_fax | char(30) | '' | NOT NULL | |
| salesman_email | varchar(100) | '' | NOT NULL | |
| provision | double | 0 | NOT NULL | |
| break_pt | double | 0 | NOT NULL | |
| provision2 | double | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | s |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | salesman_code |
| salesman_name | No | Yes | salesman_name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| role | varchar(30) | '' | NOT NULL | |
| description | varchar(50) | NULL | ||
| sections | text | NULL | ||
| areas | text | NULL | ||
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| role | No | Yes | role |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| shipper_id | integer | 0 | NULL | |
| shipper_name | varchar(60) | '' | NOT NULL | |
| phone | varchar(30) | '' | NOT NULL | |
| phone2 | varchar(30) | '' | NOT NULL | |
| contact | text | '' | NOT NULL | |
| address | text | '' | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | s |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | shipper_id |
| name | No | Yes | shipper_name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer unsigned | 0 | NULL | |
| sql | text | '' | NOT NULL | |
| result | tinyint | 0 | NOT NULL | |
| msg | varchar(255) | '' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| category_id | integer | 0 | NULL | |
| description | varchar(60) | '' | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL | |
| dflt_tax_type | integer | 1 | NOT NULL | |
| dflt_units | varchar(20) | 'each' | NOT NULL | |
| dflt_mb_flag | char(1) | 'B' | NOT NULL | |
| dflt_sales_act | varchar(11) | '' | NOT NULL | |
| dflt_cogs_act | varchar(11) | '' | NOT NULL | |
| dflt_inventory_act | varchar(11) | '' | NOT NULL | |
| dflt_adjustment_act | varchar(11) | '' | NOT NULL | |
| dflt_assembly_act | varchar(11) | '' | NOT NULL | |
| dflt_dim1 | integer | NULL | ||
| dflt_dim2 | integer | NULL | ||
| dflt_no_sale | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | c |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | category_id |
| description | No | Yes | description |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| stock_id | varchar(20) | '' | NOT NULL | |
| category_id | integer | 0 | NOT NULL | |
| tax_type_id | integer | 0 | NOT NULL | |
| description | varchar(200) | '' | NOT NULL | |
| long_description | text | '' | NOT NULL | |
| units | varchar(20) | 'each' | NOT NULL | |
| mb_flag | char(1) | 'B' | NOT NULL | |
| sales_account | varchar(11) | '' | NOT NULL | |
| cogs_account | varchar(11) | '' | NOT NULL | |
| inventory_account | varchar(11) | '' | NOT NULL | |
| adjustment_account | varchar(11) | '' | NOT NULL | |
| assembly_account | varchar(11) | '' | NOT NULL | |
| dimension_id | integer | NULL | ||
| dimension2_id | integer | NULL | ||
| actual_cost | double | 0 | NOT NULL | |
| last_cost | double | 0 | NOT NULL | |
| material_cost | double | 0 | NOT NULL | |
| labour_cost | double | 0 | NOT NULL | |
| overhead_cost | double | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL | |
| no_sale | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | stock_id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | stock_id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| trans_id | integer | 0 | NULL | |
| trans_no | integer | 0 | NOT NULL | |
| stock_id | char(20) | '' | NOT NULL | |
| type | smallint | 0 | NOT NULL | |
| loc_code | char(5) | '' | NOT NULL | |
| tran_date | date | '0000-00-00' | NOT NULL | |
| person_id | integer | NULL | ||
| price | double | 0 | NOT NULL | |
| reference | char(40) | '' | NOT NULL | |
| qty | double | 1 | NOT NULL | |
| discount_percent | double | 0 | NOT NULL | |
| standard_cost | double | 0 | NOT NULL | |
| visible | tinyint | 1 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | trans_id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | trans_id |
| type | No | No | type, trans_no |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| amt | double unsigned | NULL | ||
| date_alloc | date | '0000-00-00' | NOT NULL | |
| trans_no_from | integer | NULL | ||
| trans_type_from | integer | NULL | ||
| trans_no_to | integer | NULL | ||
| trans_type_to | integer | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| supp_trans_no | integer | NULL | ||
| supp_trans_type | integer | NULL | ||
| gl_code | varchar(11) | '0' | NOT NULL | |
| grn_item_id | integer | NULL | ||
| po_detail_item_id | integer | NULL | ||
| stock_id | varchar(20) | '' | NOT NULL | |
| description | text | NULL | ||
| quantity | double | 0 | NOT NULL | |
| unit_price | double | 0 | NOT NULL | |
| unit_tax | double | 0 | NOT NULL | |
| memo_ | text | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| trans_no | integer unsigned | 0 | NOT NULL | |
| type | smallint unsigned | 0 | NOT NULL | |
| supplier_id | integer unsigned | NULL | ||
| reference | text | '' | NOT NULL | |
| supp_reference | varchar(60) | '' | NOT NULL | |
| tran_date | date | '0000-00-00' | NOT NULL | |
| due_date | date | '0000-00-00' | NOT NULL | |
| ov_amount | double | 0 | NOT NULL | |
| ov_discount | double | 0 | NOT NULL | |
| ov_gst | double | 0 | NOT NULL | |
| rate | double | 1 | NOT NULL | |
| alloc | double | 0 | NOT NULL |
| Primary Key Name | Field Names |
|---|---|
| PRIMARY | trans_no, type |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | trans_no |
| PRIMARY | No | Yes | type |
| supplier_id | No | No | supplier_id |
| SupplierID_2 | No | No | supplier_id, supp_reference |
| type | No | No | type |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| supplier_id | integer | 0 | NULL | |
| supp_name | varchar(60) | '' | NOT NULL | |
| address | text | '' | NOT NULL | |
| supp_address | text | '' | NOT NULL | |
| phone | varchar(30) | '' | NOT NULL | |
| phone2 | varchar(30) | '' | NOT NULL | |
| fax | varchar(30) | '' | NOT NULL | |
| gst_no | varchar(25) | '' | NOT NULL | |
| contact | varchar(60) | '' | NOT NULL | |
| supp_account_no | varchar(40) | '' | NOT NULL | |
| varchar(100) | '' | NOT NULL | ||
| website | varchar(100) | '' | NOT NULL | |
| bank_account | varchar(60) | '' | NOT NULL | |
| curr_code | char(3) | NULL | ||
| payment_terms | integer | NULL | ||
| dimension_id | integer | 0 | NULL | |
| dimension2_id | integer | 0 | NULL | |
| tax_group_id | integer | NULL | ||
| credit_limit | double | 0 | NOT NULL | |
| purchase_account | varchar(11) | NULL | ||
| payable_account | varchar(11) | NULL | ||
| payment_discount_account | varchar(11) | NULL | ||
| notes | text | '' | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL | |
| supp_ref | varchar(30) | '' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | supplier_id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | supplier_id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| type_id | smallint | 0 | NOT NULL | |
| type_no | integer | 1 | NOT NULL | |
| next_reference | varchar(100) | '' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | type_id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | type_id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| record_id | varchar(11) | '' | NOT NULL | |
| tag_id | integer | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| type | smallint | 0 | NOT NULL | |
| name | varchar(30) | '' | NOT NULL | |
| description | varchar(60) | NULL | ||
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| type | No | Yes | type, name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| tax_group_id | integer | 0 | NOT NULL | |
| tax_type_id | integer | 0 | NOT NULL | |
| rate | double | 0 | NOT NULL |
| Primary Key Name | Field Names |
|---|---|
| PRIMARY | tax_group_id, tax_type_id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | tax_group_id |
| PRIMARY | No | Yes | tax_type_id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| name | varchar(60) | '' | NOT NULL | |
| tax_shipping | tinyint | 0 | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| name | No | Yes | name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| rate | double | 0 | NOT NULL | |
| sales_gl_code | varchar(11) | '' | NOT NULL | |
| purchasing_gl_code | varchar(11) | '' | NOT NULL | |
| name | varchar(60) | '' | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| name | No | Yes | name, rate |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| trans_type | smallint | NULL | ||
| trans_no | integer | NULL | ||
| tran_date | date | '0000-00-00' | NOT NULL | |
| tax_type_id | integer | 0 | NOT NULL | |
| rate | double | 0 | NOT NULL | |
| ex_rate | double | 1 | NOT NULL | |
| included_in_price | tinyint | 0 | NOT NULL | |
| net_amount | double | 0 | NOT NULL | |
| amount | double | 0 | NOT NULL | |
| memo | text | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| timestamp | integer | 0 | NOT NULL | |
| ip | varchar(40) | '' | NOT NULL | |
| file | varchar(100) | '' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| timestamp | No | No | timestamp |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | smallint | 0 | NULL | |
| user_id | varchar(60) | '' | NOT NULL | |
| password | varchar(100) | '' | NOT NULL | |
| real_name | varchar(100) | '' | NOT NULL | |
| role_id | integer | 1 | NOT NULL | |
| phone | varchar(30) | '' | NOT NULL | |
| varchar(100) | NULL | |||
| language | varchar(20) | NULL | ||
| date_format | tinyint | 0 | NOT NULL | |
| date_sep | tinyint | 0 | NOT NULL | |
| tho_sep | tinyint | 0 | NOT NULL | |
| dec_sep | tinyint | 0 | NOT NULL | |
| theme | varchar(20) | 'default' | NOT NULL | |
| page_size | varchar(20) | 'A4' | NOT NULL | |
| prices_dec | smallint | 2 | NOT NULL | |
| qty_dec | smallint | 2 | NOT NULL | |
| rates_dec | smallint | 4 | NOT NULL | |
| percent_dec | smallint | 1 | NOT NULL | |
| show_gl | tinyint | 1 | NOT NULL | |
| show_codes | tinyint | 0 | NOT NULL | |
| show_hints | tinyint | 0 | NOT NULL | |
| last_visit_date | datetime | NULL | ||
| query_size | tinyint | 10 | NULL | |
| graphic_links | tinyint | 1 | NULL | |
| pos | smallint | 1 | NULL | |
| print_profile | varchar(30) | '1' | NOT NULL | |
| rep_popup | tinyint | 1 | NULL | |
| sticky_doc_date | tinyint | 0 | NULL | |
| startup_tab | varchar(20) | 'orders' | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| user_id | No | Yes | user_id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| type | integer | 0 | NOT NULL | |
| id | integer | 0 | NOT NULL | |
| date_ | date | '0000-00-00' | NOT NULL | |
| memo_ | text | '' | NOT NULL |
| Primary Key Name | Field Names |
|---|---|
| PRIMARY | type, id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| id | No | Yes | type, id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| stock_id | varchar(40) | NULL | ||
| issue_id | integer | NULL | ||
| qty_issued | double | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| issue_no | integer | 0 | NULL | |
| workorder_id | integer | 0 | NOT NULL | |
| reference | varchar(100) | NULL | ||
| issue_date | date | NULL | ||
| loc_code | varchar(5) | NULL | ||
| workcentre_id | integer | NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | issue_no |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | issue_no |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| reference | varchar(100) | NULL | ||
| workorder_id | integer | 0 | NOT NULL | |
| quantity | double | 0 | NOT NULL | |
| date_ | date | '0000-00-00' | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| workorder_id | integer | 0 | NOT NULL | |
| stock_id | char(20) | '' | NOT NULL | |
| workcentre | integer | 0 | NOT NULL | |
| units_req | double | 1 | NOT NULL | |
| std_cost | double | 0 | NOT NULL | |
| loc_code | char(5) | '' | NOT NULL | |
| units_issued | double | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| PRIMARY | id |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| name | char(40) | '' | NOT NULL | |
| description | char(50) | '' | NOT NULL | |
| inactive | tinyint | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| name | No | Yes | name |
| Field Name | Type and Size | Default | Nullable | Description |
|---|---|---|---|---|
| id | integer | 0 | NULL | |
| wo_ref | varchar(60) | '' | NOT NULL | |
| loc_code | varchar(5) | '' | NOT NULL | |
| units_reqd | double | 1 | NOT NULL | |
| stock_id | varchar(20) | '' | NOT NULL | |
| date_ | date | '0000-00-00' | NOT NULL | |
| type | tinyint | 0 | NOT NULL | |
| required_by | date | '0000-00-00' | NOT NULL | |
| released_date | date | '0000-00-00' | NOT NULL | |
| units_issued | double | 0 | NOT NULL | |
| closed | tinyint | 0 | NOT NULL | |
| released | tinyint | 0 | NOT NULL | |
| additional_costs | double | 0 | NOT NULL |
| Primary Key Name | Field Name |
|---|---|
| P | i |
| Index Name | Clustered | Unique | Fields |
|---|---|---|---|
| PRIMARY | No | Yes | id |
| wo_ref | No | Yes | wo_ref |
| Procedure Name | Parameters |
|---|
| Type name | Code | Type and Size | Sizeable | Nullable | Searchable | Autoincremenal | Scale | User Type |
|---|---|---|---|---|---|---|---|---|
| bit | -7 | 1 | Yes | YES | YES | No | No | |
| tinyint | -6 | 3 | Yes | YES | YES | No | No | |
| tinyint unsigned | -6 | 3 | Yes | YES | YES | No | No | |
| tinyint auto_increment | -6 | 3 | Yes | NO | YES | Yes | No | |
| tinyint unsigned auto_increment | -6 | 3 | Yes | NO | YES | Yes | No | |
| bigint | -5 | 19 | Yes | YES | YES | No | No | |
| bigint unsigned | -5 | 20 | Yes | YES | YES | No | No | |
| bigint auto_increment | -5 | 19 | Yes | NO | YES | Yes | No | |
| bigint unsigned auto_increment | -5 | 20 | Yes | NO | YES | Yes | No | |
| long varbinary | -4 | 16777215 | Yes | YES | YES | No | No | |
| blob | -4 | 65535 | Yes | YES | YES | No | No | |
| longblob | -4 | 2147483647 | Yes | YES | YES | No | No | |
| tinyblob | -4 | 255 | Yes | YES | YES | No | No | |
| mediumblob | -4 | 16777215 | Yes | YES | YES | No | No | |
| varbinary | -3 | 255 | Yes | YES | YES | No | No | |
| binary | -2 | 255 | Yes | YES | YES | No | No | |
| long varchar | -1 | 16777215 | Yes | YES | YES | No | No | |
| text | -1 | 65535 | Yes | YES | YES | No | No | |
| mediumtext | -1 | 16777215 | Yes | YES | YES | No | No | |
| longtext | -1 | 2147483647 | Yes | YES | YES | No | No | |
| tinytext | -1 | 255 | Yes | YES | YES | No | No | |
| char | 1 | 255 | Yes | YES | YES | No | No | |
| numeric | 2 | 19 | Yes | YES | YES | No | 0..19 | No |
| decimal | 3 | 19 | Yes | YES | YES | No | 0..19 | No |
| integer | 4 | 10 | Yes | YES | YES | No | No | |
| integer unsigned | 4 | 10 | Yes | YES | YES | No | No | |
| int | 4 | 10 | Yes | YES | YES | No | No | |
| int unsigned | 4 | 10 | Yes | YES | YES | No | No | |
| mediumint | 4 | 7 | Yes | YES | YES | No | No | |
| mediumint unsigned | 4 | 8 | Yes | YES | YES | No | No | |
| integer auto_increment | 4 | 10 | Yes | NO | YES | Yes | No | |
| integer unsigned auto_increment | 4 | 10 | Yes | NO | YES | Yes | No | |
| int auto_increment | 4 | 10 | Yes | NO | YES | Yes | No | |
| int unsigned auto_increment | 4 | 10 | Yes | NO | YES | Yes | No | |
| mediumint auto_increment | 4 | 7 | Yes | NO | YES | Yes | No | |
| mediumint unsigned auto_increment | 4 | 8 | Yes | NO | YES | Yes | No | |
| smallint | 5 | 5 | Yes | YES | YES | No | No | |
| smallint unsigned | 5 | 5 | Yes | YES | YES | No | No | |
| smallint auto_increment | 5 | 5 | Yes | NO | YES | Yes | No | |
| smallint unsigned auto_increment | 5 | 5 | Yes | NO | YES | Yes | No | |
| double | 6 | 15 | Yes | YES | YES | No | 0..4 | No |
| double auto_increment | 6 | 15 | Yes | NO | YES | Yes | 0..4 | No |
| float | 7 | 7 | Yes | YES | NO | No | 0..2 | No |
| float auto_increment | 7 | 7 | Yes | NO | NO | Yes | 0..2 | No |
| double | 8 | 15 | Yes | YES | YES | No | 0..4 | No |
| double auto_increment | 8 | 15 | Yes | NO | YES | Yes | 0..4 | No |
| date | 91 | 10 | Yes | YES | YES | No | No | |
| time | 92 | 8 | Yes | YES | YES | No | No | |
| year | 5 | 4 | Yes | YES | YES | No | No | |
| datetime | 93 | 21 | No | YES | YES | No | No | |
| timestamp | 93 | 14 | No | NO | YES | No | No | |
| varchar | 12 | 255 | Yes | YES | YES | No | No |