# Database Table Inventory

## `2017_Serialnumbers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Stock_ref | varchar(255) | YES |  |  |  |
| Autocountsn | varchar(255) | YES |  |  |  |
| Textsn | varchar(255) | YES |  |  |  |
| Serialnumber | varchar(100) | NO |  |  |  |
| Datebookedin | varchar(255) | YES |  |  |  |
| Invoicenumber | varchar(100) | YES |  |  |  |
| Ordernumber | varchar(100) | YES |  |  |  |
| Bookedoutby | varchar(100) | YES |  |  |  |
| Bookedinby | varchar(100) | YES |  |  |  |
| Porref | varchar(100) | YES |  |  |  |
| usedescription | varchar(100) | YES |  |  |  |
| returned | varchar(100) | YES |  |  |  |
| batchnumber | varchar(100) | YES |  |  |  |
| batchdate | varchar(100) | YES |  |  |  |
| stocklocation | varchar(100) | NO |  |  |  |
| stocklocation2 | varchar(100) | NO |  |  |  |
| last_counted | varchar(100) | NO |  |  |  |
| Dateout | bigint | NO |  | 0 |  |
| reason | varchar(250) | NO |  |  |  |
| manufacture_date_code | varchar(16) | NO |  |  |  |
| manufacture_use_date | varchar(12) | NO |  |  |  |
| cost_price | varchar(12) | NO |  |  |  |
| total_cost_price | varchar(12) | NO |  |  |  |
| sell_price | varchar(12) | NO |  |  |  |
| modifiedby | varchar(32) | NO |  |  |  |
| inprintq | varchar(64) | NO |  |  |  |
| expiredate | bigint | NO |  | 0 |  |
| errorcheck | varchar(64) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| connotes | varchar(16) | NO |  |  |  |
| gbp_buyprice | float(10,2) | NO |  |  |  |
| gbp_estshipcost | float(10,2) | NO |  |  |  |
| gbp_finalcost | float(10,2) | NO |  |  |  |
| originalenteredsn | varchar(64) | NO |  |  |  |
| goodsinbookid | int | NO |  |  |  |
| producedby | int | NO |  |  |  |

## `2017_Stocktran`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Stock_ref | varchar(16) | NO |  |  |  |
| Warehouse | varchar(4) | NO |  |  |  |
| Trans_type | varchar(10) | NO |  |  |  |
| Date | date | NO |  | 0000-00-00 |  |
| Quantity | int | NO |  | 0 |  |
| Quantity_Moved | int | NO |  | 0 |  |
| Reference | varchar(10) | NO |  |  |  |
| Account | varchar(8) | NO |  |  |  |
| Cost_price | float | NO |  | 0 |  |
| Selling_Value | float | NO |  | 0 |  |
| Time_Stamp | varchar(8) | NO |  |  |  |
| Description | varchar(40) | NO |  |  |  |
| Analysis_code | varchar(8) | NO |  |  |  |
| Catagory | varchar(35) | NO |  |  |  |
| Last_cost | decimal(18,6) | NO |  | 0.000000 |  |
| Sales_Code | varchar(8) | NO |  |  |  |
| universaltime | bigint | NO |  | 0 |  |
| year | decimal(10,0) | NO |  | 0 |  |
| company | varchar(12) | NO |  |  |  |

## `2017_stocklist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| STOCK_REFE | varchar(16) | NO |  |  |  |
| SEARCH_REF | varchar(18) | YES |  |  |  |
| SEARCH_RE1 | varchar(18) | YES |  |  |  |
| DESCRIPTIO | varchar(40) | YES |  |  |  |
| ANALYSIS_C | varchar(8) | YES |  |  |  |
| CATEGORY | varchar(35) | YES |  |  |  |
| SELLING_PR | decimal(10,2) | YES |  |  |  |
| COST_PRICE | decimal(10,2) | YES |  |  |  |
| LAST_COST_ | decimal(10,2) | YES |  |  |  |
| EXTEND_DESC | longtext | YES |  |  |  |
| SALE_PRICE | decimal(10,2) | YES |  |  |  |
| UNIT_WEIGHT | varchar(100) | YES |  |  |  |
| UNIT_VOL | varchar(100) | YES |  |  |  |
| QUANTITY_I | decimal(10,2) | YES |  |  |  |
| SUPERSEDED | varchar(40) | YES |  |  |  |
| MEMO | longtext | YES |  |  |  |
| PROFILE_CO | varchar(40) | YES |  |  |  |
| ONPURCHASEORDER | varchar(10) | YES |  |  |  |
| ONSALEORDER | varchar(10) | YES |  |  |  |
| NLACCOUNT | varchar(8) | NO |  |  |  |
| companyid | varchar(32) | NO |  |  |  |
| hostcompany | int | NO |  |  |  |

## `ATLAS_searchoptions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(24) | NO |  |  |  |
| defaultis | int | NO |  |  |  |
| active | tinyint | NO |  |  |  |
| pagelocation | varchar(128) | NO |  |  |  |
| parametertopass | varchar(100) | NO |  |  |  |
| usersecurity | int | NO |  |  |  |

## `ATLAS_searchoptions_searchhistory`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| searchid | int | NO |  | 0 |  |
| searchedby | int | NO |  | 0 |  |
| searchedon | bigint | NO |  | 0 |  |
| value | varchar(32) | NO |  |   |  |
| saved | tinyint | NO |  |  |  |
| cleanname | varchar(64) | NO |  |  |  |

## `ECG`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| MANUFACTUR | varchar(255) | YES |  |  |  |
| MANUFACTU2 | varchar(255) | YES |  |  |  |
| TECH_MSB_N | varchar(255) | YES |  |  |  |
| PART_NUMBE | varchar(255) | YES |  |  |  |
| OPERA_DESC | varchar(255) | YES |  |  |  |

## `GOLDMINE_Contact1`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ACCOUNTNO | varchar(20) | NO |  |  |  |
| COMPANY | varchar(40) | NO |  |  |  |
| CONTACT | varchar(40) | NO |  |  |  |
| LASTNAME | varchar(15) | NO |  |  |  |
| DEPARTMENT | varchar(35) | NO |  |  |  |
| TITLE | varchar(35) | NO |  |  |  |
| SECR | varchar(20) | NO |  |  |  |
| PHONE1 | varchar(25) | NO |  |  |  |
| PHONE2 | varchar(25) | NO |  |  |  |
| PHONE3 | varchar(25) | NO |  |  |  |
| FAX | varchar(25) | NO |  |  |  |
| EXT1 | varchar(6) | NO |  |  |  |
| EXT2 | varchar(6) | NO |  |  |  |
| EXT3 | varchar(6) | NO |  |  |  |
| EXT4 | varchar(6) | NO |  |  |  |
| ADDRESS1 | varchar(40) | NO |  |  |  |
| ADDRESS2 | varchar(40) | NO |  |  |  |
| ADDRESS3 | varchar(40) | NO |  |  |  |
| CITY | varchar(30) | NO |  |  |  |
| STATE | varchar(20) | NO |  |  |  |
| ZIP | varchar(10) | NO |  |  |  |
| COUNTRY | varchar(20) | NO |  |  |  |
| DEAR | varchar(20) | NO |  |  |  |
| SOURCE | varchar(20) | NO |  |  |  |
| KEY1 | varchar(20) | NO |  |  |  |
| KEY2 | varchar(20) | NO |  |  |  |
| KEY3 | varchar(20) | NO |  |  |  |
| KEY4 | varchar(20) | NO |  |  |  |
| KEY5 | varchar(20) | NO |  |  |  |
| STATUS | varchar(3) | NO |  |  |  |
| MERGECODES | varchar(20) | NO |  |  |  |
| CREATEBY | varchar(8) | NO |  |  |  |
| CREATEON | date | NO |  |  |  |
| CREATEAT | varchar(5) | NO |  |  |  |
| OWNER | varchar(8) | NO |  |  |  |
| LASTUSER | varchar(8) | NO |  |  |  |
| LASTDATE | date | NO |  |  |  |
| LASTTIME | varchar(5) | NO |  |  |  |
| RECID | varchar(15) | NO |  |  |  |

## `GOLDMINE_Contact2`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ACCOUNTNO | varchar(20) | NO |  |  |  |
| CALLBACKON | date | NO |  |  |  |
| CALLBACKAT | varchar(8) | NO |  |  |  |
| CALLBKFREQ | int | NO |  |  |  |
| LASTCONTON | date | NO |  |  |  |
| LASTCONTAT | varchar(8) | NO |  |  |  |
| LASTATMPON | date | NO |  |  |  |
| LASTATMPAT | varchar(8) | NO |  |  |  |
| MEETDATEON | date | NO |  |  |  |
| MEETTIMEAT | varchar(8) | NO |  |  |  |
| COMMENTS | varchar(65) | NO |  |  |  |
| PREVRESULT | varchar(65) | NO |  |  |  |
| NEXTACTION | varchar(65) | NO |  |  |  |
| ACTIONON | date | NO |  |  |  |
| CLOSEDATE | date | NO |  |  |  |
| UALLOWEMAI | varchar(3) | NO |  |  |  |
| UALLOWFAX | varchar(3) | NO |  |  |  |
| UALLOWPHON | varchar(3) | NO |  |  |  |
| UALLOWPOST | varchar(3) | NO |  |  |  |
| UALLOWVISI | varchar(3) | NO |  |  |  |
| UCALENDER | varchar(10) | NO |  |  |  |
| UCOMMETHOD | varchar(5) | NO |  |  |  |
| UDATACALAN | varchar(3) | NO |  |  |  |
| UDATAMAILS | varchar(3) | NO |  |  |  |
| UEMGSRV | varchar(10) | NO |  |  |  |
| UFIRSTCONT | varchar(20) | NO |  |  |  |
| UFIRTS_CON | varchar(20) | NO |  |  |  |
| UJOURNYPLA | varchar(10) | NO |  |  |  |
| UJURNCODE | varchar(10) | NO |  |  |  |
| ULIQCUR | int | NO |  |  |  |
| ULIQIP | int | NO |  |  |  |
| ULIQMUG | varchar(20) | NO |  |  |  |
| ULIQNICK | varchar(20) | NO |  |  |  |
| ULIQNOTE | varchar(10) | NO |  |  |  |
| ULIQPAY | varchar(10) | NO |  |  |  |
| ULIQTYPE | varchar(15) | NO |  |  |  |
| UMAILCODE | varchar(20) | NO |  |  |  |
| UMAILDEPT | varchar(30) | NO |  |  |  |
| UMAILINGLI | varchar(3) | NO |  |  |  |
| UMAILPOS | varchar(20) | NO |  |  |  |
| UMERGE2REC | varchar(10) | NO |  |  |  |
| UNEWPROD | varchar(3) | NO |  |  |  |
| UNHSAMB | varchar(70) | NO |  |  |  |
| UNHSPRIM | varchar(60) | NO |  |  |  |
| UNHSREGION | varchar(22) | NO |  |  |  |
| UNHSTRUSTS | varchar(70) | NO |  |  |  |
| UNHS_HA | varchar(58) | NO |  |  |  |
| UNOTES_MED | varchar(10) | NO |  |  |  |
| UOLDREGION | varchar(5) | NO |  |  |  |
| UPOSITION | varchar(40) | NO |  |  |  |
| UPRIVHOSP | varchar(10) | NO |  |  |  |
| UREGION | varchar(4) | NO |  |  |  |
| URESUS | varchar(10) | NO |  |  |  |
| USERDEF01 | varchar(8) | NO |  |  |  |
| USERDEF02 | varchar(10) | NO |  |  |  |
| USERDEF03 | varchar(10) | NO |  |  |  |
| USERDEF04 | varchar(10) | NO |  |  |  |
| USERDEF05 | varchar(10) | NO |  |  |  |
| USERDEF06 | varchar(10) | NO |  |  |  |
| USERDEF07 | varchar(10) | NO |  |  |  |
| USERDEF08 | varchar(10) | NO |  |  |  |
| USERDEF09 | varchar(10) | NO |  |  |  |
| USERDEF10 | varchar(10) | NO |  |  |  |
| RECID | varchar(15) | NO |  |  |  |

## `ISO_13661`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| alpha2 | varchar(2) | NO |  |  |  |
| countryname | varchar(254) | NO |  |  |  |

## `ISO_13661_GDP`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| iso13661 | varchar(7) | NO |  |  |  |
| year | int | NO |  |  |  |
| percapgdp | float | NO |  |  |  |
| growth | float | NO |  |  |  |
| rawtype | varchar(250) | NO |  |  |  |
| rawcountry | varchar(250) | NO |  |  |  |
| value | bigint | NO |  | 0 |  |
| addedby | varchar(64) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_13661_OPERA`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| iso31661 | varchar(2) | NO |  |  |  |
| operacode | varchar(32) | NO |  |  |  |
| extended_region | varchar(35) | NO |  |  |  |
| operamincode | varchar(4) | NO |  |  |  |

## `ISO_ER_answers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| er_id | int | NO |  |  |  |
| family_id | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | bigint | NO |  | 0 |  |
| notes | longtext | NO |  |  |  |
| applys | int | NO |  |  |  |
| fieldcomplete | bigint | NO |  | 0 |  |
| completeby | int | NO |  |  |  |

## `ISO_ER_standards`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| familyid | int | NO |  |  |  |
| erid | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| standard | int | NO |  |  |  |

## `ISO_HSE_RISK_accidentbook`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| createdby | varchar(64) | NO |  |  |  |
| createdon | varchar(64) | NO |  |  |  |
| who | varchar(64) | NO |  |  |  |
| were | varchar(128) | NO |  |  |  |
| hazard | varchar(128) | NO |  |  |  |
| action | varchar(64) | NO |  |  |  |
| boxitems | longtext | NO |  |  |  |
| accidentnote | longtext | NO |  |  |  |
| riddor | varchar(10) | NO |  |  |  |

## `ISO_HSE_RISK_areaphotos`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| active | varchar(100) | NO |  |  |  |
| areaid | int | NO |  |  |  |
| archive | varchar(100) | NO |  |  |  |
| fileid | varchar(100) | NO |  |  |  |

## `ISO_HSE_RISK_areareports`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| areaid | varchar(100) | NO |  |  |  |
| report | longtext | NO |  |  |  |
| reportedon | varchar(100) | NO |  |  |  |
| reportby | varchar(100) | NO |  |  |  |

## `ISO_HSE_RISK_areas`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| updatedby | varchar(100) | NO |  |  |  |
| updatedon | varchar(100) | NO |  |  |  |
| zoneid | int | NO |  | 0 |  |
| burgleralarmid | varchar(100) | NO |  |  |  |
| firealarmid | varchar(100) | NO |  |  |  |
| location | varchar(100) | NO |  |  |  |
| archive | char(2) | NO |  |  |  |
| description | varchar(250) | NO |  |  |  |
| supervisor | int | NO |  |  |  |
| responsible | int | NO |  |  |  |
| firstaid | int | NO |  |  |  |
| active | varchar(32) | NO |  |  |  |

## `ISO_HSE_RISK_employee_areas`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| userid | int | NO |  |  |  |
| areaid | int | NO |  |  |  |
| lastread | bigint | NO |  | 0 |  |
| active | int | NO |  |  |  |

## `ISO_HSE_RISK_fireext_area`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| fireext | int | NO |  |  |  |
| areaid | int | NO |  |  |  |

## `ISO_HSE_RISK_fireextype`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |

## `ISO_HSE_RISK_hazard_actions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | varchar(100) | NO |  |  |  |
| addedon | varchar(100) | NO |  |  |  |
| hazardid | varchar(20) | NO |  |  |  |
| actionnotes | longtext | NO |  |  |  |
| action | varchar(100) | NO |  |  |  |

## `ISO_HSE_RISK_hazards`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hse | varchar(100) | NO |  |  |  |
| fire | varchar(100) | NO |  |  |  |
| default_risk | varchar(100) | NO |  |  |  |
| updatedby | varchar(100) | NO |  |  |  |
| updatedon | varchar(100) | NO |  |  |  |
| hazard | varchar(100) | NO |  |  |  |
| hazard_description | longtext | NO |  |  |  |

## `ISO_HSE_RISK_links`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| areaid | varchar(100) | NO |  |  |  |
| victimid | varchar(100) | NO |  |  |  |
| hazardid | varchar(100) | NO |  |  |  |
| active | varchar(100) | NO |  |  |  |
| action | varchar(100) | NO |  |  |  |
| risk | varchar(100) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| updatedby | varchar(100) | NO |  |  |  |
| updatedon | varchar(100) | NO |  |  |  |

## `ISO_HSE_RISK_victims`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| updatedby | varchar(100) | NO |  |  |  |
| updatedon | varchar(100) | NO |  |  |  |
| victim | varchar(100) | NO |  |  |  |
| description | varchar(100) | NO |  |  |  |

## `ISO_InterestedParties`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| scope | longtext | NO |  |  |  |
| risks | longtext | NO |  |  |  |

## `ISO_InterestedParties_company`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| partyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_InterestedParties_companylinks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| partyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_InterestedParties_risk_process`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| riskid | int | NO |  |  |  |
| processid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_InterestedParties_risks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| interestedpartyid | int | NO |  |  |  |
| description | varchar(250) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| requirements | longtext | NO |  |  |  |
| longernotes | longtext | NO |  |  |  |

## `ISO_InterestedParties_scopehistory`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| partyid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| scope | longtext | NO |  |  |  |

## `ISO_audit_list`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| audit_id | varchar(100) | NO |  |  |  |
| audit_description | varchar(100) | NO |  |  |  |
| audit_lastdate | varchar(100) | NO |  |  |  |
| audit_due | varchar(100) | NO |  |  |  |

## `ISO_calibrationcertificates`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(16) | NO |  |  |  |
| barcode | int | NO |  |  |  |
| calibratedby | int | NO |  |  |  |
| calibratedon | bigint | NO |  | 0 |  |
| equipment | varchar(12) | NO |  |  |  |
| equipmentbarcode | int | NO |  |  |  |
| calibrationcertificatenumber | bigint | NO |  | 0 |  |

## `ISO_ce_essencial_requirement`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ernumber | int | NO |  |  |  |
| ersubnumber | int | NO |  |  |  |
| requirement | longtext | NO |  |  |  |

## `ISO_ce_family_index`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| family_description | varchar(100) | NO |  |  |  |
| createdby | varchar(100) | NO |  |  |  |
| createdon | varchar(100) | NO |  |  |  |
| lastreviewed | varchar(100) | NO |  |  |  |
| lastreviewedby | varchar(100) | NO |  |  |  |
| active | char(1) | NO |  |  |  |
| familytype | int | NO |  |  |  |
| color | varchar(20) | NO |  |  |  |
| canadareq | varchar(3) | NO |  |  |  |
| Manufacture_Name | varchar(64) | NO |  |  |  |
| Manufacturing_Location | varchar(64) | NO |  |  |  |
| EC_QA_Cert_number | varchar(64) | NO |  |  |  |
| MDD_CLASS | varchar(5) | NO |  |  |  |
| Device_subcatagory | varchar(64) | NO |  |  |  |
| Generic_Device_Group | varchar(64) | NO |  |  |  |
| MDD_CLASSIFICATION_RULE | varchar(32) | NO |  |  |  |
| ANNEX_CONFORMITY_ASSE_ROUTE | varchar(64) | NO |  |  |  |
| bsi_certificate_no | varchar(12) | NO |  |  |  |
| keywords | varchar(250) | NO |  |  |  |
| paperfilecompletedate | bigint | NO |  | 0 |  |
| paperfilecompleteby | varchar(32) | NO |  |  |  |
| nbog | varchar(12) | NO |  |  |  |
| relatedto | int | NO |  |  |  |
| icon_docid | int | NO |  |  |  |
| devicedescription | longtext | NO |  |  |  |
| productline | varchar(250) | NO |  |  |  |
| devicestext | varchar(128) | NO |  |  |  |
| projectid | int | NO |  |  |  |
| doc_support1 | varchar(3) | NO |  |  |  |
| doc_support2 | varchar(3) | NO |  |  |  |
| doc_support3 | varchar(3) | NO |  |  |  |
| doc_support4 | varchar(3) | NO |  |  |  |
| doc_support5 | varchar(3) | NO |  |  |  |
| doc_support6 | varchar(3) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| hostcompany | int | NO |  |  |  |
| includegeneric | int | NO |  |  |  |
| ce_docid | int | NO |  |  |  |

## `ISO_ce_family_links`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| familyid | varchar(100) | NO |  |  |  |
| stock_ref | varchar(100) | NO |  |  |  |
| minorpart | varchar(5) | NO |  |  |  |

## `ISO_ce_family_oemobl_pn`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| familyid | int | NO |  |  |  |
| stock_ref | varchar(12) | NO |  |  |  |
| oempn | varchar(36) | NO |  |  |  |
| oemaccount | varchar(12) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_ce_family_requirements`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| familytype | int | NO |  |  |  |
| headerid | int | NO |  |  |  |
| status | varchar(3) | NO |  |  |  |
| checkedby | varchar(32) | NO |  |  |  |
| checkedon | bigint | NO |  | 0 |  |

## `ISO_ce_family_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| color | text | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |
| requiresreview | varchar(5) | NO |  |  |  |
| requiresrisk | varchar(1) | NO |  |  |  |
| hostcompany | int | NO |  |  |  |

## `ISO_ce_headers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ord | int | NO |  | 0 |  |
| ce_section | varchar(40) | NO |  |  |  |
| ce_header | varchar(254) | NO |  |  |  |
| ce_header_notes | longtext | NO |  |  |  |
| mdd_ref | varchar(100) | NO |  |  |  |
| flag_compulsory | varchar(100) | NO |  |  |  |
| createdby | varchar(100) | NO |  |  |  |
| createdon | varchar(100) | NO |  |  |  |
| modifiedby | varchar(100) | NO |  |  |  |
| modifiedon | varchar(100) | NO |  |  |  |
| flag_company_based | varchar(100) | NO |  |  |  |
| flag_olb | char(3) | NO |  |  |  |
| flag_bsi | char(3) | NO |  |  |  |
| flag_ttf | char(3) | NO |  |  |  |
| flag_tf | char(3) | NO |  |  |  |
| flag_risk | varchar(3) | NO |  |  |  |

## `ISO_ce_index`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| familyid | int | NO |  |  |  |
| headerid | int | NO |  |  |  |
| fileid | varchar(100) | NO |  |  |  |
| oldfamily | int | NO |  | 0 |  |
| oldheader | int | NO |  | 0 |  |

## `ISO_ce_region_standard`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| regionstandard | varchar(8) | NO |  |  |  |
| description | varchar(250) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_ce_region_standard_extras`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| headerid | int | NO |  |  |  |
| regionid | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |

## `ISO_ce_review_dates`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| instructchanges | longtext | NO |  |  |  |
| instructchangerisks | longtext | NO |  |  |  |
| familyid | int | NO |  |  |  |
| reviewdate | bigint | NO |  | 0 |  |
| reviewby | varchar(64) | NO |  |  |  |
| designchanges | longtext | NO |  |  |  |
| designchangerisks | longtext | NO |  |  |  |
| stockreferences | longtext | NO |  |  |  |
| salesinformation | longtext | NO |  |  |  |
| salescountrys | longtext | NO |  |  |  |
| salescountrysrisks | longtext | NO |  |  |  |
| stockreturns | longtext | NO |  |  |  |
| stockreturnsrisks | longtext | NO |  |  |  |
| issuechanges | longtext | NO |  |  |  |
| issuechangerisks | longtext | NO |  |  |  |
| supplierrisks | longtext | NO |  |  |  |
| docchangerisks | longtext | NO |  |  |  |
| docchanges | longtext | NO |  |  |  |
| clinicalrisksearch | varchar(5) | NO |  |  |  |
| clinicaloutdatesearch | varchar(5) | NO |  |  |  |
| clinicalresults | longtext | NO |  |  |  |
| fdarisksearch | varchar(5) | NO |  |  |  |
| fdaoutdatesearch | varchar(5) | NO |  |  |  |
| fdaresults | longtext | NO |  |  |  |
| labelchangerisks | longtext | NO |  |  |  |
| labelchanges | longtext | NO |  |  |  |

## `ISO_ce_risk_answers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| familyid | int | NO |  |  |  |
| sectionid | int | NO |  |  |  |
| questionid | int | NO |  |  |  |
| applicable | varchar(5) | NO |  |  |  |
| reasoning | longtext | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| riskrating | int | NO |  |  |  |
| riskprobability | int | NO |  |  |  |
| overalrisk | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| closed | int | NO |  |  |  |
| preriskrating | int | NO |  |  |  |
| preriskprobability | int | NO |  |  |  |

## `ISO_ce_risk_answers_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| familyid | int | NO |  |  |  |
| sectionid | int | NO |  |  |  |
| questionid | int | NO |  |  |  |
| applicable | varchar(5) | NO |  |  |  |
| reasoning | longtext | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| riskrating | int | NO |  |  |  |
| riskprobability | int | NO |  |  |  |
| overalrisk | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| closed | int | NO |  |  |  |
| preriskrating | int | NO |  |  |  |
| preriskprobability | int | NO |  |  |  |
| answerid | int | NO |  |  |  |

## `ISO_ce_risk_files`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| familyid | int | NO |  |  |  |
| headerid | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | varchar(32) | NO |  |  |  |

## `ISO_ce_risk_headers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| sectionid | int | NO |  |  |  |
| section | varchar(250) | NO |  |  |  |
| question | longtext | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| familyid | int | NO |  |  |  |

## `ISO_ce_risk_probabilitys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| familyid | int | NO |  |  |  |
| level | int | NO |  |  |  |
| description | varchar(75) | NO |  |  |  |
| shortdesc | varchar(16) | NO |  |  |  |
| repairsection | int | NO |  |  |  |

## `ISO_ce_risk_sections`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| sectioncode | varchar(12) | NO |  |  |  |
| sectiontext | varchar(250) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_ce_risk_tech`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| sectionid | int | NO |  |  |  |
| familyid | int | NO |  |  |  |
| applys | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_ce_standards`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| familyid | int | NO |  |  |  |

## `ISO_ce_xref_manuals`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| qmid | int | NO |  |  |  |
| familyid | int | NO |  |  |  |
| applicable | varchar(6) | NO |  |  |  |
| status | varchar(4) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| updated_by | varchar(32) | NO |  |  |  |
| updated_on | bigint | NO |  | 0 |  |
| proof | varchar(128) | NO |  |  |  |

## `ISO_ce_xref_manuals_filelinks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| qmid | int | NO |  |  |  |
| familyid | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | varchar(32) | NO |  |  |  |

## `ISO_document_path`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  | 0 |  |
| Stock_ref | varchar(100) | NO |  |  |  |
| Action_type | varchar(100) | NO |  |  |  |
| updated_by | varchar(100) | NO |  |  |  |
| updated_on | bigint | NO |  | 0 |  |
| status | varchar(100) | NO |  |  |  |
| show_order | int | NO |  | 0 |  |
| iso_code | varchar(100) | NO |  |  |  |
| document_description | varchar(100) | NO |  |  |  |
| document_type | varchar(100) | NO |  |  |  |
| document_format | varchar(100) | NO |  |  |  |
| document_filename | varchar(100) | NO |  |  |  |
| document_path | varchar(100) | NO |  |  |  |

## `ISO_employee_product_training`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| trainee | int | NO |  |  |  |
| stock_ref | varchar(16) | NO |  |  |  |
| type | varchar(16) | NO |  |  |  |
| trainedby | int | NO |  |  |  |
| trainedon | bigint | NO |  | 0 |  |
| signoffby | int | NO |  |  |  |
| signoffon | bigint | NO |  | 0 |  |
| hostcompanyid | int | NO |  |  |  |

## `ISO_employee_training`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| empid | varchar(100) | NO |  |  |  |
| qualification | varchar(100) | NO |  |  |  |
| duration | varchar(100) | NO |  |  |  |
| location | varchar(100) | NO |  |  |  |
| method | varchar(100) | NO |  |  |  |
| date_complete | bigint | NO |  | 0 |  |
| trained_by | varchar(100) | NO |  |  |  |
| valid_until | varchar(100) | NO |  |  |  |
| courseid | int | NO |  |  |  |
| signedoffby | int | NO |  |  |  |
| signedoffon | bigint | NO |  |  |  |
| issueid | int | NO |  |  |  |
| certid | int | NO |  |  |  |
| certaddedon | bigint | NO |  |  |  |
| certaddedby | int | NO |  |  |  |

## `ISO_job_base_process`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(250) | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| process_title_supervisorid | int | NO |  |  |  |
| trainingcourseid | int | NO |  |  |  |
| taskid | int | NO |  |  |  |
| auditid | int | NO |  |  |  |
| reviewed | bigint | NO |  | 0 |  |
| reviewedby | int | NO |  |  |  |
| inputs | longtext | NO |  |  |  |
| outputs | longtext | NO |  |  |  |
| risk | longtext | NO |  |  |  |
| riskby | int | NO |  |  |  |
| riskon | bigint | NO |  | 0 |  |
| agendaid | int | NO |  |  |  |
| interestedparty | int | NO |  |  |  |
| revisioncode | varchar(40) | NO |  |  |  |
| responsibilityonly | tinyint | NO |  |  |  |
| softwarevalidation | tinyint | NO |  |  |  |
| archivedon | tinyint | NO |  |  |  |
| archivedby | int | NO |  |  |  |
| intrastatsmenun | int | NO |  |  |  |

## `ISO_job_base_process_backup`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(250) | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| process_title_supervisorid | int | NO |  |  |  |
| trainingcourseid | int | NO |  |  |  |
| taskid | int | NO |  |  |  |
| auditid | int | NO |  |  |  |
| reviewed | bigint | NO |  | 0 |  |
| reviewedby | int | NO |  |  |  |
| inputs | longtext | NO |  |  |  |
| outputs | longtext | NO |  |  |  |
| risk | longtext | NO |  |  |  |
| riskby | int | NO |  |  |  |
| riskon | int | NO |  |  |  |
| agendaid | int | NO |  |  |  |
| interestedparty | int | NO |  |  |  |
| revisioncode | varchar(40) | NO |  |  |  |
| responsibilityonly | tinyint | NO |  |  |  |

## `ISO_job_base_process_companyid`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| processid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_job_base_process_effective_review`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| reviewedon | bigint | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| processid | int | NO |  |  |  |

## `ISO_job_base_process_equipment`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| titleid | int | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_job_base_process_files`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| processid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| referenced | tinyint | NO |  |  |  |

## `ISO_job_base_process_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(250) | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| process_title_supervisorid | int | NO |  |  |  |
| trainingcourseid | int | NO |  |  |  |
| taskid | int | NO |  |  |  |
| auditid | int | NO |  |  |  |
| reviewed | bigint | NO |  | 0 |  |
| reviewedby | int | NO |  |  |  |
| inputs | longtext | NO |  |  |  |
| outputs | longtext | NO |  |  |  |
| risk | longtext | NO |  |  |  |
| riskby | int | NO |  |  |  |
| riskon | int | NO |  |  |  |
| agendaid | int | NO |  |  |  |
| interestedparty | int | NO |  |  |  |
| revisioncode | varchar(40) | NO |  |  |  |
| processid | int | NO |  |  |  |

## `ISO_job_base_process_interestedpartys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| processid | int | NO |  |  |  |
| interestedparty | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_job_base_process_title`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| processid | int | NO |  |  |  |
| titleid | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| revisioncode | varchar(64) | NO |  |  |  |

## `ISO_job_risks_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(150) | NO |  |  |  |
| auditorder | int | NO |  |  |  |

## `ISO_job_titles`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(100) | NO |  |  |  |
| supervisorid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| heightofrole | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| agendaid | int | NO |  |  |  |
| defaultmeeting | int | NO |  |  |  |

## `ISO_job_titles_employeeid`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| titleid | int | NO |  |  |  |
| employid | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `ISO_job_titles_hide_host`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| titleid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |

## `ISO_job_titles_risks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| jobid | int | NO |  |  |  |
| typeid | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| reviewedby | int | NO |  |  |  |
| reviewedon | bigint | NO |  |  |  |

## `ISO_quality_manual`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| filter | varchar(100) | NO |  |  |  |
| ord | int | NO |  | 0 |  |
| iso_section | varchar(100) | NO |  |  |  |
| iso_section_header | varchar(100) | NO |  |  |  |
| updated_by | varchar(100) | NO |  |  |  |
| updated_on | varchar(100) | NO |  |  |  |
| long_text | longtext | NO |  |  |  |
| official_doc_page | int | NO |  |  |  |
| hideoptions | varchar(3) | NO |  |  |  |
| signedoffby | int | NO |  |  |  |
| signedoffon | bigint | NO |  | 0 |  |
| bsisignedoff | bigint | NO |  |  |  |
| bsisignedoffby | int | NO |  |  |  |
| guidance | longtext | NO |  |  |  |
| exclusion | longtext | NO |  |  |  |
| updatauditguide | longtext | NO |  |  |  |

## `ISO_quality_manual_file_packs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| packname | varchar(128) | NO |  |  |  |
| packowner | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| security | int | NO |  |  |  |

## `ISO_quality_manual_filelinks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| qmid | varchar(100) | NO |  |  |  |
| fileid | varchar(100) | NO |  |  |  |
| archived | char(1) | NO |  |  |  |
| ceid | varchar(100) | NO |  |  |  |
| date | varchar(100) | NO |  |  |  |
| linkedby | varchar(64) | NO |  |  |  |

## `ISO_quality_manual_files`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | varchar(100) | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| docid | int | NO |  |  |  |
| docname | varchar(100) | NO |  |  |  |
| description | varchar(254) | NO |  |  |  |
| type | varchar(100) | NO |  |  |  |
| security | varchar(100) | NO |  |  |  |
| oldid | varchar(100) | NO |  |  |  |
| archived | varchar(100) | NO |  |  |  |
| update_reason | longtext | NO |  |  |  |
| filename | varchar(100) | NO |  |  |  |
| removedby | varchar(64) | NO |  |  |  |
| removedon | varchar(64) | NO |  |  |  |
| exp_date | bigint | NO |  | 0 |  |
| reviewed_date | bigint | NO |  | 0 |  |
| reviewed_by | varchar(64) | NO |  |  |  |
| thumb_nail | varchar(24) | NO |  |  |  |
| pages | int | NO |  | 0 |  |
| link_code | varchar(12) | NO |  |  |  |
| companyid | varchar(32) | NO |  |  |  |
| review_timer | bigint | NO |  |  |  |
| md5hash | varchar(255) | NO |  |  |  |
| isostandard | varchar(1) | NO |  |  |  |
| downloadname | varchar(124) | NO |  |  |  |
| pdftext | longtext | NO |  |  |  |
| serialbarcode | int | NO |  |  |  |
| srsnumber | varchar(16) | NO |  |  |  |
| srnnumber | varchar(16) | NO |  |  |  |
| exp_date_ignore | int | NO |  |  |  |
| searchextra | longtext | NO |  |  |  |
| hostcompany | int | NO |  |  |  |
| documentexplain | longtext | NO |  |  |  |
| draftdocument | int | NO |  |  |  |
| draftupdatetodocid | int | NO |  |  |  |
| draftrevision | int | NO |  |  |  |
| sornumber | int | NO |  |  |  |
| interestedparty | int | NO |  |  |  |
| qualitymanual | int | NO |  |  |  |
| qualitymanualprimaryid | int | NO |  |  |  |
| primaryaudit | varchar(3) | NO |  |  |  |
| primarycop | int | NO |  |  |  |
| revisionconrtol | varchar(64) | NO |  |  |  |
| essencialreq | tinyint | NO |  |  |  |
| porref | varchar(24) | NO |  |  |  |
| salesorderid | int | NO |  |  |  |
| purchaseorderid | int | NO |  |  |  |
| pricelistcode | varchar(12) | NO |  |  |  |
| riskassesmentdocid | int | NO |  |  |  |
| alarmexpire | int | NO |  |  |  |
| alarmexpireuser | int | NO |  |  |  |
| alarmdate | bigint | NO |  |  |  |
| scope | longtext | NO |  |  |  |
| hsearealink | int | NO |  |  |  |
| employeeid | int | NO |  |  |  |
| external_revision_ref | varchar(128) | NO |  |  |  |
| contactdontchase | tinyint | NO |  |  |  |
| contactdontchaseby | int | NO |  |  |  |
| contactdontchaseon | bigint | NO |  |  |  |
| downloadcount | int | NO |  |  |  |
| AI_reviewedon | bigint | NO |  |  |  |
| AI_raw | longtext | NO |  |  |  |
| AI_status | int | NO |  |  |  |
| AI_conversationid | int | YES |  | NULL |  |
| AI_fileid | int | YES |  | NULL |  |
| AI_summary | longtext | NO |  |  |  |
| AI_summary_status | int | NO |  | 0 |  |
| returnboxid | int | NO |  |  |  |

## `ISO_quality_manual_files_referenced_docids`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| refdocid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_quality_manual_files_related_recur_issues`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| recurissueid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_quality_manual_files_reviews`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| reviewedon | bigint | NO |  | 0 |  |

## `ISO_quality_manual_files_riskreview`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| notesonchanges | longtext | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| summary | longtext | NO |  |  |  |
| processid | int | NO |  |  |  |

## `ISO_quality_manual_files_riskreview_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| questionid | varchar(32) | NO |  |  |  |
| questiontext | longtext | NO |  |  |  |
| affectedby | int | NO |  |  |  |
| noteslimiting | longtext | NO |  |  |  |
| frequency | int | NO |  |  |  |
| severity | int | NO |  |  |  |
| rating | int | NO |  |  |  |
| furtheractionissue | int | NO |  |  |  |
| linkcode | varchar(32) | NO |  |  |  |
| processid | int | NO |  |  |  |

## `ISO_quality_manual_files_security`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |

## `ISO_quality_manual_files_standards`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| standardid | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| memo | longtext | NO |  |  |  |

## `ISO_quality_manual_files_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| type | varchar(100) | NO |  |  |  |
| description | varchar(100) | NO |  |  |  |
| archive | int | NO |  |  |  |
| newtype | int | NO |  |  |  |
| parenttype | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| offerrevision | tinyint | NO |  |  |  |
| supplierreviewrequired | int | NO |  |  |  |

## `ISO_quality_manual_files_types_links`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| typeid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| archive | int | NO |  |  |  |

## `ISO_quality_manual_filter_groups`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| filter | varchar(24) | NO |  |  |  |
| description | varchar(150) | NO |  |  |  |
| docid | int | NO |  |  |  |
| active | int | NO |  |  |  |
| symleft | varchar(1) | NO |  |  |  |
| symright | varchar(1) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `ISO_quality_manual_filter_groups_signedoff`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| qm | int | NO |  |  |  |
| signedoffon | bigint | NO |  | 0 |  |
| signedoffby | int | NO |  |  |  |
| version | varchar(64) | NO |  |  |  |

## `ISO_quality_manual_filter_groups_stock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| packid | int | NO |  |  |  |
| stockreference | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `ISO_quality_manual_group_revisions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| qm | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| updatedby | int | NO |  |  |  |
| signedoffby | int | NO |  |  |  |
| signedoffon | bigint | NO |  | 0 |  |
| revisioncode | varchar(40) | NO |  |  |  |

## `ISO_quality_manual_interestedpartys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| interestedparty | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | mediumint | NO |  |  |  |

## `ISO_quality_manual_links_tech_iso`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| qmid | int | NO |  |  |  |
| filter | varchar(12) | NO |  |  |  |
| linkto_qmid | int | NO |  |  |  |
| linkto_CEid | int | NO |  |  |  |
| linkedby | varchar(32) | NO |  |  |  |
| linkedon | bigint | NO |  | 0 |  |

## `ISO_quality_manual_objectives`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| meetingid | int | NO |  |  |  |
| agendaid | int | NO |  |  |  |
| objective | longtext | NO |  |  |  |
| sourcedata | varchar(250) | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | int | NO |  |  |  |

## `ISO_quality_manual_objectives_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| objectiveid | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `ISO_quality_manual_process_qmid`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| qmid | int | NO |  |  |  |
| processid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_quality_manual_processes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| qmid | int | NO |  |  |  |
| processid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_quality_manual_sted`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stedid | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `ISO_quality_manual_sted_headers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| active | int | NO |  |  |  |

## `ISO_quality_manual_stock_links`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| type | varchar(16) | NO |  |  |  |
| technicalfile_family | int | NO |  |  |  |
| stock_ref | varchar(16) | NO |  |  |  |
| linkedby | varchar(32) | NO |  |  |  |
| linkedon | bigint | NO |  | 0 |  |
| linkedonweb | int | NO |  |  |  |

## `ISO_quality_manual_user_groups`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| groupid | int | NO |  |  |  |

## `ISO_quality_manual_user_read`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| userid | int | NO |  |  |  |
| last_read | bigint | NO |  | 0 |  |

## `ISO_quality_manual_user_read_archive`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| userid | int | NO |  |  |  |
| last_read | bigint | NO |  | 0 |  |

## `ISO_standards`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mainheader | varchar(250) | NO |  |  |  |
| description | longtext | NO |  |  |  |
| docid | int | NO |  |  |  |
| equivalent | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| replacedby | int | NO |  |  |  |
| replacedon | int | NO |  |  |  |
| replaceid | int | NO |  |  |  |

## `ISO_standards_refers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| standardid | int | NO |  |  |  |
| refersto | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `ISO_standards_stock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| standardid | int | NO |  |  |  |
| stock_ref | varchar(12) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| hideme | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| signedoff | bigint | NO |  | 0 |  |
| signedoffby | int | NO |  |  |  |

## `ISO_supplier`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| supplyaddedinfo | varchar(100) | NO |  |  |  |
| opera_account | varchar(100) | NO |  |  |  |
| name | varchar(100) | NO |  |  |  |
| type | varchar(100) | NO |  |  |  |
| track | varchar(100) | NO |  |  |  |
| ce_cert | varchar(100) | NO |  |  |  |
| ce_cert_pdf | varchar(100) | NO |  |  |  |
| ce_cert_due | varchar(100) | NO |  |  |  |
| fda_cert | varchar(100) | NO |  |  |  |
| fda_cert_pdf | varchar(100) | NO |  |  |  |
| fda_cert_due | varchar(100) | NO |  |  |  |
| iso_cert | varchar(100) | NO |  |  |  |
| iso_cert_pdf | varchar(100) | NO |  |  |  |
| iso_cert_due | varchar(100) | NO |  |  |  |
| product_liability_insurance | varchar(100) | NO |  |  |  |
| p_l_i_date | varchar(100) | NO |  |  |  |
| product_traceability | varchar(100) | NO |  |  |  |
| product_trace_date | varchar(100) | NO |  |  |  |
| rating | char(1) | NO |  |  |  |
| nextduedate | bigint | NO |  | 0 |  |
| updated_by | varchar(100) | NO |  |  |  |
| Viamed_grade | varchar(12) | NO |  |  |  |
| scope | longtext | NO |  |  |  |
| gradeby | int | NO |  |  |  |
| gradeon | bigint | NO |  | 0 |  |
| stocksignedoffon | bigint | NO |  | 0 |  |
| stocksignedoffby | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |

## `ISO_supplier_files`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| filename | varchar(64) | NO |  |  |  |
| opera_account | varchar(12) | NO |  |  |  |
| addedby | varchar(24) | NO |  |  |  |
| addedon | varchar(16) | NO |  |  |  |

## `ISO_supplier_logfile`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| tracked | varchar(100) | NO |  |  |  |
| opera_account | varchar(100) | NO |  |  |  |
| standard_id | int | NO |  | 0 |  |
| temp_id | int | NO |  | 0 |  |
| valid_date | varchar(100) | NO |  |  |  |
| file | varchar(100) | NO |  |  |  |

## `ISO_supplier_reviews`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| cid | int | NO |  |  |  |
| started | bigint | NO |  | 0 |  |
| updatedon | bigint | NO |  | 0 |  |
| updatedby | int | NO |  |  |  |
| completedby | int | NO |  |  |  |
| completedon | bigint | NO |  | 0 |  |

## `ISO_supplier_reviews_answers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| cid | int | NO |  |  |  |
| qid | int | NO |  |  |  |
| reviewid | int | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| notes | longtext | NO |  |  |  |

## `ISO_supplier_reviews_headers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(250) | NO |  |  |  |

## `ISO_supplier_standards`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| document_name | varchar(100) | NO |  |  |  |

## `ISO_training_course`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| coursename | varchar(64) | NO |  |  |  |
| coursetypeid | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| updatedby | varchar(32) | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| reviewmonths | int | NO |  |  |  |
| projectid | int | NO |  |  |  |
| active | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| feedbackissue | int | NO |  |  |  |

## `ISO_training_docs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| courseid | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_training_people`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| courseid | int | NO |  |  |  |
| employeeid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| trainingmethod | varchar(48) | NO |  |  |  |
| trainedby | varchar(36) | NO |  |  |  |
| trainedon | bigint | NO |  | 0 |  |
| signedoffby | varchar(36) | NO |  |  |  |
| signedoffon | bigint | NO |  | 0 |  |
| feedback | tinyint | NO |  |  |  |
| feedbackissue | int | NO |  |  |  |

## `ISO_training_processes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| processid | int | NO |  |  |  |
| employeeid | int | NO |  |  |  |
| trainedby | int | NO |  |  |  |
| trainedon | bigint | NO |  | 0 |  |
| signedoffby | int | NO |  |  |  |
| signedoffon | bigint | NO |  | 0 |  |

## `ISO_training_stock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| courseid | int | NO |  |  |  |
| stockref | varchar(12) | NO |  |  |  |
| addedby | varchar(36) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ISO_training_tasks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| courseid | int | NO |  |  |  |
| processid | int | NO |  |  |  |
| employeetrained | int | NO |  |  |  |
| trainedby | int | NO |  |  |  |
| trainedon | bigint | NO |  | 0 |  |
| signedby | int | NO |  |  |  |
| signedon | bigint | NO |  | 0 |  |

## `ISO_training_type`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| typename | varchar(48) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `Ldriveignore`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| md5code | varchar(64) | NO |  |  |  |
| ignoreby | int | NO |  |  |  |
| ignoreon | bigint | NO |  | 0 |  |

## `MYSQLH`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ASSEMBLY_I | varchar(255) | YES |  |  |  |
| COMPONENT_ | varchar(255) | YES |  |  |  |
| COMPONENT1 | varchar(255) | YES |  |  |  |
| SEQUENCE | varchar(255) | YES |  |  |  |
| SUB_SEQUEN | varchar(255) | YES |  |  |  |
| REFERENCE | varchar(255) | YES |  |  |  |
| SUB_ASSEMB | varchar(255) | YES |  |  |  |
| PHANTOM | varchar(255) | YES |  |  |  |
| DESCRIPTIO | varchar(255) | YES |  |  |  |
| STOCK_REFE | varchar(255) | YES |  |  |  |
| DESCRIPTI1 | varchar(255) | YES |  |  |  |

## `NHSSUPPLYCHAINProducts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ID | int | NO | PRI |  | auto_increment |
| NPC | varchar(255) | YES |  |  |  |
| BaseDescription | text | YES |  |  |  |
| SecondaryDescription | text | YES |  |  |  |
| Brand | varchar(255) | YES |  |  |  |
| MPC | varchar(255) | YES |  |  |  |
| EAN | varchar(255) | YES |  |  |  |
| MinimumIssue | int | YES |  |  |  |
| LeadTime | int | YES |  |  |  |
| EClass | varchar(255) | YES |  |  |  |
| DUNS | varchar(255) | YES |  |  |  |
| ContractReference | varchar(255) | YES |  |  |  |
| VatRate | decimal(5,2) | YES |  |  |  |
| B1_Qty | int | YES |  |  |  |
| B1_Price | decimal(10,2) | YES |  |  |  |
| B2_Qty | int | YES |  |  |  |
| B2_Price | decimal(10,2) | YES |  |  |  |
| B3_Qty | int | YES |  |  |  |
| B3_Price | decimal(10,2) | YES |  |  |  |
| B4_Qty | int | YES |  |  |  |
| B4_Price | decimal(10,2) | YES |  |  |  |
| B5_Qty | int | YES |  |  |  |
| B5_Price | decimal(10,2) | YES |  |  |  |
| GTIN | varchar(255) | YES |  |  |  |
| UNSPSC | varchar(255) | YES |  |  |  |
| UOP | varchar(255) | YES |  |  |  |
| UOPUnits | int | YES |  |  |  |
| SupplierName | varchar(255) | YES |  |  |  |
| ContractTitle | varchar(255) | YES |  |  |  |
| ContractId | varchar(255) | YES |  |  |  |
| MinOrdQty | int | YES |  |  |  |
| MinOrdValue | decimal(10,2) | YES |  |  |  |
| CarriageCharges | decimal(10,2) | YES |  |  |  |
| ContractStartDate | datetime | YES |  |  |  |
| ContractEndDate | datetime | YES |  |  |  |
| SettlementDiscountDays | int | YES |  |  |  |
| DeliveryChargeThreshold | decimal(10,2) | YES |  |  |  |
| DeliveryChargeAmount | decimal(10,2) | YES |  |  |  |
| PaymentTerms | varchar(255) | YES |  |  |  |
| BuyerName | varchar(255) | YES |  |  |  |
| BuyerEmail | varchar(255) | YES |  |  |  |

## `NOMACCOUNTS`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ACCOUNT | varchar(255) | YES |  |  |  |
| COST_CENTR | varchar(255) | YES |  |  |  |
| TYPE | varchar(255) | YES |  |  |  |
| SUBTYPE | varchar(255) | YES |  |  |  |
| DESCRIPTIO | varchar(255) | YES |  |  |  |

## `NOMACCOUNTS_centers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| costcentre | varchar(4) | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |

## `NOMACCOUNTS_hide`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(6) | NO |  |  |  |
| hide | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ORDERSR`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| DOCUMENT | varchar(255) | YES |  |  |  |
| STOCK_REFE | varchar(255) | YES |  |  |  |
| DESCRIPTIO | varchar(255) | YES |  |  |  |
| LINE_QTY | varchar(100) | NO |  |  |  |
| LINE_VAL | varchar(12) | NO |  |  |  |
| STATUS | varchar(255) | YES |  |  |  |
| RECNO | varchar(100) | YES |  |  |  |
| PRIORITY | int | YES |  |  |  |
| DUE_DATE | varchar(100) | NO |  |  |  |
| QUANTITY_P | int | YES |  |  |  |
| DATE_PICKE | datetime | YES |  |  |  |
| QUANTITY_D | int | YES |  |  |  |
| DATE_DELIV | datetime | YES |  |  |  |
| DELIVERY_N | varchar(255) | YES |  |  |  |
| QUANTITY_I | int | YES |  |  |  |
| DATE_INVOI | bigint | NO |  | 0 |  |
| INVOICE_NU | varchar(255) | YES |  |  |  |
| RAISE_P_O_ | varchar(255) | YES |  |  |  |
| ORDER_DATE | datetime | YES |  |  |  |
| PROFORMA | varchar(12) | NO |  |  |  |
| QUOTATION | varchar(12) | NO |  |  |  |
| DELIVERY | varchar(12) | NO |  |  |  |
| SALES_ORDE | varchar(255) | YES |  |  |  |
| ORDER_PRIORITY | int | NO |  |  |  |
| ACCOUNT | varchar(255) | YES |  |  |  |
| NAME | varchar(255) | YES |  |  |  |
| CUSTREF | varchar(32) | NO |  |  |  |
| companyid | varchar(16) | NO |  |  |  |
| hostcompany | int | NO |  |  |  |

## `REPMAIN`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| SRN | int | YES |  |  |  |
| WARRANTY | varchar(255) | YES |  |  |  |
| ORDER_NO_6 | varchar(255) | YES |  |  |  |
| PRN_NO_7 | varchar(255) | YES |  |  |  |
| EQUIPMENT | varchar(255) | YES |  |  |  |
| SERIAL_NUM | varchar(255) | YES |  |  |  |
| FILE | int | YES |  |  |  |
| FAULT_CODE | varchar(255) | YES |  |  |  |
| REPAIR_COD | varchar(255) | YES |  |  |  |
| DATE_RECIE | datetime | YES |  |  |  |
| DATE_COMPL | datetime | YES |  |  |  |
| ENG | varchar(255) | YES |  |  |  |
| TIME | int | YES |  |  |  |
| CONDITION | varchar(255) | YES |  |  |  |
| INITIAL_IN | varchar(255) | YES |  |  |  |
| INITIAL_OU | varchar(255) | YES |  |  |  |
| UNIQU | double | YES |  |  |  |
| NOTES | longtext | YES |  |  |  |
| TESTED_BY | varchar(255) | YES |  |  |  |
| TESTED_ON_ | varchar(255) | YES |  |  |  |
| TESTED_ON2 | varchar(255) | YES |  |  |  |
| EPIC_UK_WA | varchar(255) | YES |  |  |  |
| DATE_SOLD | datetime | YES |  |  |  |
| PHANTOM_97 | int | YES |  |  |  |
| PREVIOUS_R | int | YES |  |  |  |
| PREVIOUS_2 | varchar(255) | YES |  |  |  |
| LAST_MODIF | datetime | YES |  |  |  |
| ORIGINATOR | varchar(255) | YES |  |  |  |
| BOOKINGTM9 | varchar(255) | YES |  |  |  |
| BOOKIN2TM9 | varchar(255) | YES |  |  |  |
| QA_TIMETM9 | varchar(255) | YES |  |  |  |
| QA_TIM2TM9 | varchar(255) | YES |  |  |  |
| TEMP_TITM9 | varchar(255) | YES |  |  |  |
| DEPARTMENT | varchar(255) | YES |  |  |  |
| CONTACT_NA | varchar(255) | YES |  |  |  |
| CABLE_TYPE | varchar(255) | YES |  |  |  |
| VIAMED_EQU | varchar(255) | YES |  |  |  |
| FAULT_NUMB | double | YES |  |  |  |
| REPAIR_WAR | datetime | YES |  |  |  |
| __PIECE_OR | varchar(255) | YES |  |  |  |
| _ND_PIECE_ | varchar(255) | YES |  |  |  |
| CLONE | varchar(255) | YES |  |  |  |
| REP_NOTES | longtext | YES |  |  |  |
| OLD_DEPT | varchar(255) | YES |  |  |  |
| ORIGINAL_M | varchar(255) | YES |  |  |  |
| ORIGINAL_P | varchar(255) | YES |  |  |  |

## `SPO2001`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| VIAMED_NO | varchar(255) | YES |  |  |  |
| MANUFACTUR | varchar(255) | YES |  |  |  |
| MFR_PT_NO_ | varchar(255) | YES |  |  |  |
| PRODUCT_TY | varchar(255) | YES |  |  |  |
| MODEL1 | varchar(255) | YES |  |  |  |
| OEM | varchar(255) | YES |  |  |  |
| MOD_DATE | datetime | YES |  |  |  |
| VERIFIED_B | varchar(255) | YES |  |  |  |
| VERIFICATI | varchar(255) | YES |  |  |  |
| MCI_98 | varchar(255) | YES |  |  |  |
| CONNECTOR | varchar(255) | YES |  |  |  |
| EPIC_NO | varchar(255) | YES |  |  |  |
| MME_NO | varchar(255) | YES |  |  |  |
| ENVITEC_NO | varchar(255) | YES |  |  |  |
| AMC_N0 | varchar(255) | YES |  |  |  |
| AMC_CONNEC | int | YES |  |  |  |
| STOCK_REF | varchar(255) | YES |  |  |  |

## `SUPPN`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| SUPPLIER_A | varchar(255) | YES |  |  |  |
| STOCK_REF_ | varchar(255) | YES |  |  |  |
| SUPPLIER_S | varchar(255) | YES |  |  |  |
| DESCRIPTIO | varchar(255) | YES |  |  |  |

## `Serialnumber_value_status`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| valuechange | float(10,2) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| hostcompanyid | int | NO |  |  |  |

## `Serialnumbers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Stock_ref | varchar(255) | YES |  |  |  |
| Autocountsn | varchar(255) | YES |  |  |  |
| Textsn | varchar(255) | YES |  |  |  |
| Serialnumber | varchar(100) | NO |  |  |  |
| Datebookedin | varchar(255) | YES |  |  |  |
| Invoicenumber | varchar(100) | YES |  |  |  |
| Ordernumber | varchar(100) | YES |  |  |  |
| Bookedoutby | varchar(100) | YES |  |  |  |
| Bookedinby | varchar(100) | YES |  |  |  |
| Porref | varchar(100) | YES |  |  |  |
| usedescription | varchar(100) | YES |  |  |  |
| returned | varchar(100) | YES |  |  |  |
| batchnumber | varchar(100) | YES |  |  |  |
| batchdate | varchar(100) | YES |  |  |  |
| stocklocation | varchar(100) | NO |  |  |  |
| stocklocation2 | varchar(100) | NO |  |  |  |
| last_counted | varchar(100) | NO |  |  |  |
| Dateout | bigint | YES |  |  |  |
| reason | varchar(250) | NO |  |  |  |
| manufacture_date_code | varchar(16) | NO |  |  |  |
| manufacture_use_date | varchar(12) | NO |  |  |  |
| cost_price | varchar(12) | NO |  |  |  |
| total_cost_price | varchar(12) | NO |  |  |  |
| sell_price | varchar(12) | NO |  |  |  |
| modifiedby | varchar(32) | NO |  |  |  |
| inprintq | varchar(64) | NO |  |  |  |
| expiredate | bigint | NO |  | 0 |  |
| errorcheck | varchar(64) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| connotes | varchar(16) | NO |  |  |  |
| gbp_buyprice | float(10,2) | NO |  |  |  |
| gbp_estshipcost | float(10,2) | NO |  |  |  |
| gbp_finalcost | float(10,2) | NO |  |  |  |
| originalenteredsn | varchar(64) | NO |  |  |  |
| goodsinbookid | int | NO |  |  |  |
| producedby | int | NO |  |  |  |
| shortmemo | varchar(250) | NO |  |  |  |
| calculatedexpdate | bigint | NO |  |  |  |
| crm_companyid | int | NO |  |  |  |
| Deliverynumber | int | NO |  |  |  |
| srsnumber | varchar(24) | NO |  |  |  |
| srsscanedtoby | varchar(24) | NO |  |  |  |
| srsscanedtoon | bigint | NO |  | 0 |  |
| valuestatus | int | NO |  |  |  |
| valuestatusby | int | NO |  |  |  |
| valuestatuson | bigint | NO |  | 0 |  |
| allocationid | int | NO |  |  |  |
| po_lineid | int | NO |  |  |  |
| serviceexchange | int | NO |  |  |  |
| serviceexchangememo | longtext | NO |  |  |  |

## `Serialnumbers_expire_issue`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(20) | NO |  |  |  |
| advanceref | bigint | NO |  | 0 |  |
| issueid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `Serialnumbers_failedentry`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Stock_ref | varchar(255) | YES |  |  |  |
| Autocountsn | varchar(255) | YES |  |  |  |
| Textsn | varchar(255) | YES |  |  |  |
| Serialnumber | varchar(100) | NO |  |  |  |
| Datebookedin | varchar(255) | YES |  |  |  |
| Invoicenumber | varchar(100) | YES |  |  |  |
| Ordernumber | varchar(100) | YES |  |  |  |
| Bookedoutby | varchar(100) | YES |  |  |  |
| Bookedinby | varchar(100) | YES |  |  |  |
| Porref | varchar(100) | YES |  |  |  |
| usedescription | varchar(100) | YES |  |  |  |
| returned | varchar(100) | YES |  |  |  |
| batchnumber | varchar(100) | YES |  |  |  |
| batchdate | varchar(100) | YES |  |  |  |
| stocklocation | varchar(100) | NO |  |  |  |
| stocklocation2 | varchar(100) | NO |  |  |  |
| last_counted | varchar(100) | NO |  |  |  |
| Dateout | int | YES |  |  |  |
| reason | varchar(250) | NO |  |  |  |
| manufacture_date_code | varchar(16) | NO |  |  |  |
| manufacture_use_date | varchar(12) | NO |  |  |  |
| cost_price | varchar(12) | NO |  |  |  |
| total_cost_price | varchar(12) | NO |  |  |  |
| sell_price | varchar(12) | NO |  |  |  |
| modifiedby | varchar(32) | NO |  |  |  |
| inprintq | varchar(64) | NO |  |  |  |
| expiredate | int | NO |  |  |  |
| errorcheck | varchar(64) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| connotes | varchar(16) | NO |  |  |  |
| gbp_buyprice | float(10,2) | NO |  |  |  |
| gbp_estshipcost | float(10,2) | NO |  |  |  |
| gbp_finalcost | float(10,2) | NO |  |  |  |
| originalenteredsn | varchar(64) | NO |  |  |  |
| goodsinbookid | int | NO |  |  |  |
| producedby | int | NO |  |  |  |
| shortmemo | varchar(250) | NO |  |  |  |
| calculatedexpdate | int | NO |  |  |  |
| crm_companyid | int | NO |  |  |  |
| Deliverynumber | int | NO |  |  |  |
| srsnumber | varchar(24) | NO |  |  |  |
| srsscanedtoby | varchar(24) | NO |  |  |  |
| srsscanedtoon | int | NO |  |  |  |
| valuestatus | int | NO |  |  |  |
| valuestatusby | int | NO |  |  |  |
| valuestatuson | int | NO |  |  |  |
| allocationid | int | NO |  |  |  |

## `Serialnumbers_printq`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| userid | int | NO |  |  |  |
| barcode | int | NO |  |  |  |
| savedq | bigint | NO |  | 0 |  |
| savedqdescription | varchar(64) | NO |  |  |  |

## `Serialnumbers_removedfromservice`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| barcode | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| reasontype | varchar(24) | NO |  |  |  |

## `Supp`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ACCOUNT | varchar(255) | YES |  |  |  |
| NAME | varchar(255) | YES |  |  |  |
| ADDRESS_LI | varchar(255) | YES |  |  |  |
| ADDRESS_L1 | varchar(255) | YES |  |  |  |
| ADDRESS_L2 | varchar(255) | YES |  |  |  |
| ADDRESS_L3 | varchar(255) | YES |  |  |  |
| POST_CODE | varchar(255) | YES |  |  |  |
| TELEPHONE_ | varchar(255) | YES |  |  |  |
| FAX_NUMBER | varchar(255) | YES |  |  |  |
| CONTACT | varchar(255) | YES |  |  |  |
| SECOND_CON | varchar(255) | YES |  |  |  |
| SUPP_TYPE | varchar(255) | YES |  |  |  |
| SUPPLY_COD | varchar(255) | YES |  |  |  |
| company | varchar(16) | NO |  |  |  |

## `VAND_Supp`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ACCOUNT | varchar(255) | YES |  |  |  |
| NAME | varchar(255) | YES |  |  |  |
| ADDRESS_LI | varchar(255) | YES |  |  |  |
| ADDRESS_L1 | varchar(255) | YES |  |  |  |
| ADDRESS_L2 | varchar(255) | YES |  |  |  |
| ADDRESS_L3 | varchar(255) | YES |  |  |  |
| POST_CODE | varchar(255) | YES |  |  |  |
| TELEPHONE_ | varchar(255) | YES |  |  |  |
| FAX_NUMBER | varchar(255) | YES |  |  |  |
| CONTACT | varchar(255) | YES |  |  |  |
| SECOND_CON | varchar(255) | YES |  |  |  |
| SUPP_TYPE | varchar(255) | YES |  |  |  |
| SUPPLY_COD | varchar(255) | YES |  |  |  |

## `VQT_final_answers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| headerid | int | NO |  |  |  |
| short_description | varchar(250) | NO |  |  |  |
| long_description | longtext | NO |  |  |  |

## `VQT_headers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| short_description | varchar(250) | NO |  |  |  |
| long_description | longtext | NO |  |  |  |

## `VQT_possible_answers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| headerid | int | NO |  |  |  |
| questionid | int | NO |  |  |  |
| answerid | int | NO |  |  |  |
| answer_type | int | NO |  |  |  |
| short_description | varchar(250) | NO |  |  |  |
| long_description | longtext | NO |  |  |  |

## `VQT_questions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| headerid | int | NO |  |  |  |
| short_description | varchar(250) | NO |  |  |  |
| long_description | longtext | NO |  |  |  |
| levelid | int | NO |  |  |  |

## `VST_NOMACCOUNTS`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ACCOUNT | varchar(255) | YES |  |  |  |
| COST_CENTR | varchar(255) | YES |  |  |  |
| TYPE | varchar(255) | YES |  |  |  |
| SUBTYPE | varchar(255) | YES |  |  |  |
| DESCRIPTIO | varchar(255) | YES |  |  |  |

## `VST_Supp`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ACCOUNT | varchar(255) | YES |  |  |  |
| NAME | varchar(255) | YES |  |  |  |
| ADDRESS_LI | varchar(255) | YES |  |  |  |
| ADDRESS_L1 | varchar(255) | YES |  |  |  |
| ADDRESS_L2 | varchar(255) | YES |  |  |  |
| ADDRESS_L3 | varchar(255) | YES |  |  |  |
| POST_CODE | varchar(255) | YES |  |  |  |
| TELEPHONE_ | varchar(255) | YES |  |  |  |
| FAX_NUMBER | varchar(255) | YES |  |  |  |
| CONTACT | varchar(255) | YES |  |  |  |
| SECOND_CON | varchar(255) | YES |  |  |  |
| SUPP_TYPE | varchar(255) | YES |  |  |  |
| SUPPLY_COD | varchar(255) | YES |  |  |  |

## `VST_invoices`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Account | varchar(16) | NO |  |  |  |
| Date | varchar(12) | NO |  | 0000-00-00 |  |
| Reference | varchar(16) | NO |  |  |  |
| Customer_r | varchar(10) | NO |  |  |  |
| Type | varchar(10) | NO |  |  |  |
| Value | float(9,2) | NO |  | 0.00 |  |
| Vat_Value | float(9,2) | NO |  | 0.00 |  |
| Paid_Indic | varchar(10) | NO |  |  |  |
| Paid_Flag | varchar(8) | NO |  |  |  |
| F_Currency | char(3) | NO |  |  |  |
| F_Exch_Ra | float(7,6) | NO |  | 0.000000 |  |
| F_Decimal_ | float | NO |  | 0 |  |
| Foreign_VA | varchar(12) | NO |  |  |  |
| Sales_regi | char(3) | NO |  |  |  |
| Sales_Terr | char(3) | NO |  |  |  |
| Sales_type | char(3) | NO |  |  |  |
| Account1 | varchar(8) | NO |  |  |  |
| Name | varchar(30) | NO |  |  |  |
| Cust_analy | varchar(6) | NO |  |  |  |
| Customers_ | varchar(40) | NO |  |  |  |
| Customers1 | varchar(40) | NO |  |  |  |
| universaltime | bigint | NO |  | 0 |  |
| year | int | NO |  |  |  |
| iredata | varchar(5) | NO |  |  |  |
| x | varchar(1) | NO |  |  |  |
| matchid | bigint | NO |  | 0 |  |
| orderid | int | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |

## `VST_mysqli`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Stock_ref | varchar(12) | NO |  |  |  |
| Invoicenumber | varchar(12) | NO |  |  |  |
| notes | varchar(255) | NO |  |  |  |

## `VST_nom`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ACCOUNT | varchar(255) | YES |  |  |  |
| COSTCENT | varchar(32) | NO |  |  |  |
| TYPE | varchar(255) | YES |  |  |  |
| SUBTYPE | varchar(255) | YES |  |  |  |
| JOURNAL_NU | int | YES |  |  |  |
| REFERENCE | varchar(255) | YES |  |  |  |
| TRANS_TYPE | varchar(255) | YES |  |  |  |
| TRANS__REF | varchar(255) | YES |  |  |  |
| ENTRY_DATE | datetime | YES |  |  |  |
| VALUE | double | YES |  |  |  |
| YEAR | int | YES |  |  |  |
| PERIOD | int | YES |  |  |  |
| CURRENCY | varchar(255) | YES |  |  |  |
| FOREIGN_VA | varchar(255) | YES |  |  |  |
| EXCHANGE_R | double | YES |  |  |  |
| SOURCECO | varchar(32) | NO |  |  |  |
| ITEM_DESCR | varchar(255) | YES |  |  |  |
| ID | int | NO | PRI |  | auto_increment |
| universaltime | bigint | NO |  | 0 |  |

## `VST_nom_vat_return`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| nom_account | varchar(8) | NO |  |  |  |

## `VST_purchaseledger`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Account | varchar(12) | NO |  |  |  |
| Datestamp | varchar(10) | NO |  |  |  |
| Reference | varchar(16) | NO |  |  |  |
| Type | varchar(12) | NO |  |  |  |
| Value | varchar(32) | NO |  |  |  |
| VAT_Value | varchar(32) | NO |  |  |  |
| Paid | varchar(10) | NO |  |  |  |
| Paid_flag | varchar(12) | NO |  |  |  |
| Fcurrency | varchar(5) | NO |  |  |  |
| Fexrate | varchar(12) | NO |  |  |  |
| Fdp | char(2) | NO |  |  |  |
| uniqueid | varchar(12) | NO |  |  |  |
| suppcode | varchar(8) | NO |  |  |  |
| universaltime | varchar(32) | NO |  |  |  |
| datepaid | int | NO |  | 0 |  |

## `WARE`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Min_Stock | varchar(100) | NO |  |  |  |
| Re_Order_Qty | varchar(100) | NO |  |  |  |
| Re_Order_Lvl | varchar(100) | NO |  |  |  |
| WAREHOUSE_ | varchar(255) | YES |  |  |  |
| STOCK_REFE | varchar(255) | YES |  |  |  |
| QUANTITY_I | int | YES |  |  |  |

## `XERO_BankStatementImportTemplate`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Date | varchar(100) | YES |  |  |  |
| Amount | varchar(100) | YES |  |  |  |
| Payee | varchar(100) | YES |  |  |  |
| Description | varchar(100) | YES |  |  |  |
| Reference | varchar(100) | YES |  |  |  |
| Cheque Number | varchar(100) | YES |  |  |  |
| Transaction Type | varchar(100) | YES |  |  |  |
| Analysis code | varchar(100) | YES |  |  |  |

## `XERO_BillTemplate`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ContactName | varchar(100) | YES |  |  |  |
| EmailAddress | varchar(100) | YES |  |  |  |
| POAddressLine1 | varchar(100) | YES |  |  |  |
| POAddressLine2 | varchar(100) | YES |  |  |  |
| POAddressLine3 | varchar(100) | YES |  |  |  |
| POAddressLine4 | varchar(100) | YES |  |  |  |
| POCity | varchar(100) | YES |  |  |  |
| PORegion | varchar(100) | YES |  |  |  |
| POPostalCode | varchar(100) | YES |  |  |  |
| POCountry | varchar(100) | YES |  |  |  |
| InvoiceNumber | varchar(100) | YES |  |  |  |
| InvoiceDate | varchar(100) | YES |  |  |  |
| DueDate | varchar(100) | YES |  |  |  |
| Total | varchar(100) | YES |  |  |  |
| InventoryItemCode | varchar(100) | YES |  |  |  |
| Description | varchar(100) | YES |  |  |  |
| Quantity | varchar(100) | YES |  |  |  |
| UnitAmount | varchar(100) | YES |  |  |  |
| AccountCode | varchar(100) | YES |  |  |  |
| TaxType | varchar(100) | YES |  |  |  |
| TaxAmount | varchar(100) | YES |  |  |  |
| TrackingName1 | varchar(100) | YES |  |  |  |
| TrackingOption1 | varchar(100) | YES |  |  |  |
| TrackingName2 | varchar(100) | YES |  |  |  |
| TrackingOption2 | varchar(100) | YES |  |  |  |
| Currency | varchar(100) | YES |  |  |  |

## `XERO_Contacts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ContactName | varchar(100) | YES |  |  |  |
| AccountNumber | varchar(100) | YES |  |  |  |
| EmailAddress | varchar(100) | YES |  |  |  |
| FirstName | varchar(100) | YES |  |  |  |
| LastName | varchar(100) | YES |  |  |  |
| POAttentionTo | varchar(100) | YES |  |  |  |
| POAddressLine1 | varchar(100) | YES |  |  |  |
| POAddressLine2 | varchar(100) | YES |  |  |  |
| POAddressLine3 | varchar(100) | YES |  |  |  |
| POAddressLine4 | varchar(100) | YES |  |  |  |
| POCity | varchar(100) | YES |  |  |  |
| PORegion | varchar(100) | YES |  |  |  |
| POPostalCode | varchar(100) | YES |  |  |  |
| POCountry | varchar(100) | YES |  |  |  |
| SAAttentionTo | varchar(100) | YES |  |  |  |
| SAAddressLine1 | varchar(100) | YES |  |  |  |
| SAAddressLine2 | varchar(100) | YES |  |  |  |
| SAAddressLine3 | varchar(100) | YES |  |  |  |
| SAAddressLine4 | varchar(100) | YES |  |  |  |
| SACity | varchar(100) | YES |  |  |  |
| SARegion | varchar(100) | YES |  |  |  |
| SAPostalCode | varchar(100) | YES |  |  |  |
| SACountry | varchar(100) | YES |  |  |  |
| PhoneNumber | varchar(100) | YES |  |  |  |
| FaxNumber | varchar(100) | YES |  |  |  |
| MobileNumber | varchar(100) | YES |  |  |  |
| DDINumber | varchar(100) | YES |  |  |  |
| SkypeName | varchar(100) | YES |  |  |  |
| BankAccountName | varchar(100) | YES |  |  |  |
| BankAccountNumber | varchar(100) | YES |  |  |  |
| BankAccountParticulars | varchar(100) | YES |  |  |  |
| TaxNumber | varchar(100) | YES |  |  |  |
| AccountsReceivableTaxCodeName | varchar(100) | YES |  |  |  |
| AccountsPayableTaxCodeName | varchar(100) | YES |  |  |  |
| Website | varchar(100) | YES |  |  |  |
| LegalName | varchar(100) | YES |  |  |  |
| Discount | varchar(100) | YES |  |  |  |
| CompanyNumber | varchar(100) | YES |  |  |  |
| DueDateBillDay | varchar(100) | YES |  |  |  |
| DueDateBillTerm | varchar(100) | YES |  |  |  |
| DueDateSalesDay | varchar(100) | YES |  |  |  |
| DueDateSalesTerm | varchar(100) | YES |  |  |  |
| SalesAccount | varchar(100) | YES |  |  |  |
| PurchasesAccount | varchar(100) | YES |  |  |  |
| TrackingName1 | varchar(100) | YES |  |  |  |
| SalesTrackingOption1 | varchar(100) | YES |  |  |  |
| PurchasesTrackingOption1 | varchar(100) | YES |  |  |  |
| TrackingName2 | varchar(100) | YES |  |  |  |
| SalesTrackingOption2 | varchar(100) | YES |  |  |  |
| PurchasesTrackingOption2 | varchar(100) | YES |  |  |  |
| BrandingTheme | varchar(100) | YES |  |  |  |
| DefaultTaxBills | varchar(100) | YES |  |  |  |
| DefaultTaxSales | varchar(100) | YES |  |  |  |
| Person1FirstName | varchar(100) | YES |  |  |  |
| Person1LastName | varchar(100) | YES |  |  |  |
| Person1Email | varchar(100) | YES |  |  |  |
| Person1IncludeInEmail | varchar(100) | YES |  |  |  |
| Person2FirstName | varchar(100) | YES |  |  |  |
| Person2LastName | varchar(100) | YES |  |  |  |
| Person2Email | varchar(100) | YES |  |  |  |
| Person2IncludeInEmail | varchar(100) | YES |  |  |  |
| Person3FirstName | varchar(100) | YES |  |  |  |
| Person3LastName | varchar(100) | YES |  |  |  |
| Person3Email | varchar(100) | YES |  |  |  |
| Person3IncludeInEmail | varchar(100) | YES |  |  |  |
| Person4FirstName | varchar(100) | YES |  |  |  |
| Person4LastName | varchar(100) | YES |  |  |  |
| Person4Email | varchar(100) | YES |  |  |  |
| Person4IncludeInEmail | varchar(100) | YES |  |  |  |
| Person5FirstName | varchar(100) | YES |  |  |  |
| Person5LastName | varchar(100) | YES |  |  |  |
| Person5Email | varchar(100) | YES |  |  |  |
| Person5IncludeInEmail | varchar(100) | YES |  |  |  |

## `XERO_Contacts_key`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| AccountNumber | varchar(100) | YES |  |  |  |

## `XERO_CurrentStatus_SalesInvoice`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ContactName | varchar(100) | NO |  |  |  |
| EmailAddress | varchar(100) | NO |  |  |  |
| POAddressLine1 | varchar(100) | NO |  |  |  |
| POAddressLine2 | varchar(100) | NO |  |  |  |
| POAddressLine3 | varchar(100) | NO |  |  |  |
| POAddressLine4 | varchar(100) | NO |  |  |  |
| POCity | varchar(100) | NO |  |  |  |
| PORegion | varchar(100) | NO |  |  |  |
| POPostalCode | varchar(100) | NO |  |  |  |
| POCountry | varchar(100) | NO |  |  |  |
| SAAddressLine1 | varchar(100) | NO |  |  |  |
| SAAddressLine2 | varchar(100) | NO |  |  |  |
| SAAddressLine3 | varchar(100) | NO |  |  |  |
| SAAddressLine4 | varchar(100) | NO |  |  |  |
| SACity | varchar(100) | NO |  |  |  |
| SARegion | varchar(100) | NO |  |  |  |
| SAPostalCode | varchar(100) | NO |  |  |  |
| SACountry | varchar(100) | NO |  |  |  |
| InvoiceNumber | varchar(100) | NO |  |  |  |
| Reference | varchar(100) | NO |  |  |  |
| InvoiceDate | varchar(100) | NO |  |  |  |
| DueDate | varchar(100) | NO |  |  |  |
| PlannedDate | varchar(100) | NO |  |  |  |
| Total | varchar(100) | NO |  |  |  |
| TaxTotal | varchar(100) | NO |  |  |  |
| InvoiceAmountPaid | varchar(100) | NO |  |  |  |
| InvoiceAmountDue | varchar(100) | NO |  |  |  |
| InventoryItemCode | varchar(100) | NO |  |  |  |
| Description | varchar(100) | NO |  |  |  |
| Quantity | varchar(100) | NO |  |  |  |
| UnitAmount | varchar(100) | NO |  |  |  |
| Discount | varchar(100) | NO |  |  |  |
| LineAmount | varchar(100) | NO |  |  |  |
| AccountCode | varchar(100) | NO |  |  |  |
| TaxType | varchar(100) | NO |  |  |  |
| TaxAmount | varchar(100) | NO |  |  |  |
| TrackingName1 | varchar(100) | NO |  |  |  |
| TrackingOption1 | varchar(100) | NO |  |  |  |
| TrackingName2 | varchar(100) | NO |  |  |  |
| TrackingOption2 | varchar(100) | NO |  |  |  |
| Currency | varchar(100) | NO |  |  |  |
| Type | varchar(100) | NO |  |  |  |
| Sent | varchar(100) | NO |  |  |  |
| Status | varchar(100) | NO |  |  |  |

## `XERO_Customer_Invoices_Details_Imported`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| InvoiceDate | varchar(12) | NO |  |  |  |
| Source | varchar(64) | NO |  |  |  |
| Reference | varchar(200) | NO |  |  |  |
| ItemCode | varchar(24) | NO |  |  |  |
| Description | varchar(200) | NO |  |  |  |
| Quantity | float(11,4) | NO |  |  |  |
| ApprovedBy | varchar(24) | NO |  |  |  |
| UnitPrice | float(11,4) | NO |  |  |  |
| Discount | float(11,2) | NO |  |  |  |
| VAT | float(11,4) | NO |  |  |  |
| Gross | float(11,4) | NO |  |  |  |
| InvoiceTotal | float(11,4) | NO |  |  |  |
| Contact | float(11,4) | NO |  |  |  |
| ContactGroup | varchar(128) | NO |  |  |  |
| DueDate | varchar(12) | NO |  |  |  |
| ExpectedDate | varchar(12) | NO |  |  |  |
| CreatedDate | varchar(12) | NO |  |  |  |
| OriginalCurrency | varchar(4) | NO |  |  |  |
| CurrencyRate | float(11,4) | NO |  |  |  |
| Net | float(11,4) | NO |  |  |  |
| Balance | float(11,4) | NO |  |  |  |
| Status | varchar(24) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| importdate | bigint | NO |  | 0 |  |
| hashkey | varchar(128) | NO |  |  |  |
| Invoicenumber | varchar(24) | NO |  |  |  |

## `XERO_Customer_Invoices_Imported`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| InvoiceNumber | varchar(24) | NO |  |  |  |
| Contact | varchar(250) | NO |  |  |  |
| ContactGroup | varchar(250) | NO |  |  |  |
| InvoiceDate | varchar(12) | NO |  |  |  |
| ExpectedDate | varchar(12) | NO |  |  |  |
| CreatedDate | varchar(12) | NO |  |  |  |
| ApprovedBy | varchar(24) | NO |  |  |  |
| Reference | varchar(32) | NO |  |  |  |
| OriginalCurrency | varchar(4) | NO |  |  |  |
| CurrencyRate | float(11,5) | NO |  |  |  |
| Net | float(11,2) | NO |  |  |  |
| Gross | float(11,2) | NO |  |  |  |
| VAT | float(11,2) | NO |  |  |  |
| Payments_Credits | float(11,2) | NO |  |  |  |
| Balance | float(11,2) | NO |  |  |  |
| Status | varchar(32) | NO |  |  |  |
| Source | varchar(32) | NO |  |  |  |
| InvoiceSent | varchar(32) | NO |  |  |  |
| importdate | bigint | NO |  | 0 |  |
| hostcompanyid | int | NO |  |  |  |
| hashkey | varchar(128) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| invdate | bigint | NO |  | 0 |  |

## `XERO_Customer_Invoices_raw`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| InvoiceNumber | varchar(24) | NO |  |  |  |
| Contact | varchar(250) | NO |  |  |  |
| ContactGroup | varchar(250) | NO |  |  |  |
| InvoiceDate | varchar(12) | NO |  |  |  |
| ExpectedDate | varchar(12) | NO |  |  |  |
| CreatedDate | varchar(12) | NO |  |  |  |
| ApprovedBy | varchar(24) | NO |  |  |  |
| Reference | varchar(32) | NO |  |  |  |
| OriginalCurrency | varchar(4) | NO |  |  |  |
| CurrencyRate | float(11,5) | NO |  |  |  |
| Net | float(11,2) | NO |  |  |  |
| Gross | float(11,2) | NO |  |  |  |
| VAT | float(11,2) | NO |  |  |  |
| Payments_Credits | float(11,2) | NO |  |  |  |
| Balance | float(11,2) | NO |  |  |  |
| Status | varchar(32) | NO |  |  |  |
| Source | varchar(32) | NO |  |  |  |
| InvoiceSent | varchar(32) | NO |  |  |  |
| importdate | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| hashkey | varchar(128) | NO |  |  |  |

## `XERO_DOWNLOADED_SalesInvoiceTemplate`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ContactName | varchar(100) | YES |  |  |  |
| EmailAddress | varchar(100) | YES |  |  |  |
| POAddressLine1 | varchar(100) | YES |  |  |  |
| POAddressLine2 | varchar(100) | YES |  |  |  |
| POAddressLine3 | varchar(100) | YES |  |  |  |
| POAddressLine4 | varchar(100) | YES |  |  |  |
| POCity | varchar(100) | YES |  |  |  |
| PORegion | varchar(100) | YES |  |  |  |
| POPostalCode | varchar(100) | YES |  |  |  |
| POCountry | varchar(100) | YES |  |  |  |
| SAAddressLine1 | varchar(100) | YES |  |  |  |
| SAAddressLine2 | varchar(100) | YES |  |  |  |
| SAAddressLine3 | varchar(100) | YES |  |  |  |
| SAAddressLine4 | varchar(100) | YES |  |  |  |
| SACity | varchar(100) | YES |  |  |  |
| SARegion | varchar(100) | YES |  |  |  |
| SAPostalCode | varchar(100) | YES |  |  |  |
| SACountry | varchar(100) | YES |  |  |  |
| InvoiceNumber | varchar(100) | YES |  |  |  |
| Reference | varchar(100) | YES |  |  |  |
| InvoiceDate | int | YES |  |  |  |
| DueDate | int | YES |  |  |  |
| PlannedDate | int | YES |  |  |  |
| Total | float(10,2) | YES |  |  |  |
| TaxTotal | float(10,2) | YES |  |  |  |
| InvoiceAmountPaid | float(10,2) | YES |  |  |  |
| InvoiceAmountDue | float(10,2) | YES |  |  |  |
| InventoryItemCode | varchar(100) | YES |  |  |  |
| Description | varchar(100) | YES |  |  |  |
| Quantity | float(10,2) | YES |  |  |  |
| UnitAmount | float(10,2) | YES |  |  |  |
| Discount | float(10,2) | YES |  |  |  |
| LineAmount | float(10,2) | YES |  |  |  |
| AccountCode | varchar(100) | YES |  |  |  |
| TaxType | varchar(100) | YES |  |  |  |
| TaxAmount | float(10,2) | YES |  |  |  |
| TrackingName1 | varchar(100) | YES |  |  |  |
| TrackingOption1 | varchar(100) | YES |  |  |  |
| TrackingName2 | varchar(100) | YES |  |  |  |
| TrackingOption2 | varchar(100) | YES |  |  |  |
| Currency | varchar(100) | YES |  |  |  |
| Type | varchar(100) | YES |  |  |  |
| Sent | varchar(100) | YES |  |  |  |
| Status | varchar(100) | YES |  |  |  |
| downloadedby | int | YES |  |  |  |
| downloadedon | int | YES |  |  |  |

## `XERO_InventoryItems`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ItemCode | varchar(100) | YES |  |  |  |
| ItemName | varchar(100) | YES |  |  |  |
| PurchasesDescription | varchar(100) | YES |  |  |  |
| PurchasesUnitPrice | varchar(100) | YES |  |  |  |
| PurchasesAccount | varchar(100) | YES |  |  |  |
| PurchasesTaxRate | varchar(100) | YES |  |  |  |
| SalesDescription | varchar(100) | YES |  |  |  |
| SalesUnitPrice | varchar(100) | YES |  |  |  |
| SalesAccount | varchar(100) | YES |  |  |  |
| SalesTaxRate | varchar(100) | YES |  |  |  |
| InventoryAssetAccount | varchar(100) | YES |  |  |  |
| CostOfGoodsSoldAccount | varchar(100) | YES |  |  |  |

## `XERO_Invoices_Paid`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ContactName | varchar(100) | YES |  |  |  |
| EmailAddress | varchar(100) | YES |  |  |  |
| POAddressLine1 | varchar(100) | YES |  |  |  |
| POAddressLine2 | varchar(100) | YES |  |  |  |
| POAddressLine3 | varchar(100) | YES |  |  |  |
| POAddressLine4 | varchar(100) | YES |  |  |  |
| POCity | varchar(100) | YES |  |  |  |
| PORegion | varchar(100) | YES |  |  |  |
| POPostalCode | varchar(100) | YES |  |  |  |
| POCountry | varchar(100) | YES |  |  |  |
| SAAddressLine1 | varchar(100) | YES |  |  |  |
| SAAddressLine2 | varchar(100) | YES |  |  |  |
| SAAddressLine3 | varchar(100) | YES |  |  |  |
| SAAddressLine4 | varchar(100) | YES |  |  |  |
| SACity | varchar(100) | YES |  |  |  |
| SARegion | varchar(100) | YES |  |  |  |
| SAPostalCode | varchar(100) | YES |  |  |  |
| SACountry | varchar(100) | YES |  |  |  |
| InvoiceNumber | varchar(100) | YES |  |  |  |
| Reference | varchar(100) | YES |  |  |  |
| InvoiceDate | varchar(100) | YES |  |  |  |
| DueDate | varchar(100) | YES |  |  |  |
| PlannedDate | varchar(100) | YES |  |  |  |
| Total | varchar(100) | YES |  |  |  |
| TaxTotal | varchar(100) | YES |  |  |  |
| InvoiceAmountPaid | varchar(100) | YES |  |  |  |
| InvoiceAmountDue | varchar(100) | YES |  |  |  |
| InventoryItemCode | varchar(100) | YES |  |  |  |
| Description | varchar(100) | YES |  |  |  |
| Quantity | varchar(100) | YES |  |  |  |
| UnitAmount | varchar(100) | YES |  |  |  |
| Discount | varchar(100) | YES |  |  |  |
| LineAmount | varchar(100) | YES |  |  |  |
| AccountCode | varchar(100) | YES |  |  |  |
| TaxType | varchar(100) | YES |  |  |  |
| TaxAmount | varchar(100) | YES |  |  |  |
| TrackingName1 | varchar(100) | YES |  |  |  |
| TrackingOption1 | varchar(100) | YES |  |  |  |
| TrackingName2 | varchar(100) | YES |  |  |  |
| TrackingOption2 | varchar(100) | YES |  |  |  |
| Currency | varchar(100) | YES |  |  |  |
| Type | varchar(100) | YES |  |  |  |
| Sent | varchar(100) | YES |  |  |  |
| Status | varchar(100) | YES |  |  |  |

## `XERO_Reciepts_to_matchid`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| matchid | bigint | NO |  | 0 |  |
| receiptid | int | NO |  |  |  |
| invoiceref | varchar(24) | NO |  |  |  |
| orderid | int | NO |  |  |  |
| amountmatched | float(10,2) | NO |  |  |  |
| vui | int | NO |  |  |  |
| matchedon | bigint | NO |  | 0 |  |
| matchedby | int | NO |  |  |  |

## `XERO_SalesInvoiceTemplate`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ContactName | varchar(100) | YES |  |  |  |
| EmailAddress | varchar(100) | YES |  |  |  |
| POAddressLine1 | varchar(100) | YES |  |  |  |
| POAddressLine2 | varchar(100) | YES |  |  |  |
| POAddressLine3 | varchar(100) | YES |  |  |  |
| POAddressLine4 | varchar(100) | YES |  |  |  |
| POCity | varchar(100) | YES |  |  |  |
| PORegion | varchar(100) | YES |  |  |  |
| POPostalCode | varchar(100) | YES |  |  |  |
| POCountry | varchar(100) | YES |  |  |  |
| InvoiceNumber | varchar(100) | YES |  |  |  |
| Reference | varchar(100) | YES |  |  |  |
| InvoiceDate | varchar(100) | YES |  |  |  |
| DueDate | varchar(100) | YES |  |  |  |
| Total | varchar(100) | YES |  |  |  |
| InventoryItemCode | varchar(100) | YES |  |  |  |
| Description | varchar(100) | YES |  |  |  |
| Quantity | varchar(100) | YES |  |  |  |
| UnitAmount | varchar(100) | YES |  |  |  |
| Discount | varchar(100) | YES |  |  |  |
| AccountCode | varchar(100) | YES |  |  |  |
| TaxType | varchar(100) | YES |  |  |  |
| TaxAmount | varchar(100) | YES |  |  |  |
| TrackingName1 | varchar(100) | YES |  |  |  |
| TrackingOption1 | varchar(100) | YES |  |  |  |
| TrackingName2 | varchar(100) | YES |  |  |  |
| TrackingOption2 | varchar(100) | YES |  |  |  |
| Currency | varchar(100) | YES |  |  |  |
| BrandingTheme | varchar(100) | YES |  |  |  |

## `XERO_SalesInvoicesReciepts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ContactName | varchar(100) | YES |  |  |  |
| EmailAddress | varchar(100) | YES |  |  |  |
| POAddressLine1 | varchar(100) | YES |  |  |  |
| POAddressLine2 | varchar(100) | YES |  |  |  |
| POAddressLine3 | varchar(100) | YES |  |  |  |
| POAddressLine4 | varchar(100) | YES |  |  |  |
| POCity | varchar(100) | YES |  |  |  |
| PORegion | varchar(100) | YES |  |  |  |
| POPostalCode | varchar(100) | YES |  |  |  |
| POCountry | varchar(100) | YES |  |  |  |
| SAAddressLine1 | varchar(100) | YES |  |  |  |
| SAAddressLine2 | varchar(100) | YES |  |  |  |
| SAAddressLine3 | varchar(100) | YES |  |  |  |
| SAAddressLine4 | varchar(100) | YES |  |  |  |
| SACity | varchar(100) | YES |  |  |  |
| SARegion | varchar(100) | YES |  |  |  |
| SAPostalCode | varchar(100) | YES |  |  |  |
| SACountry | varchar(100) | YES |  |  |  |
| InvoiceNumber | varchar(100) | YES |  |  |  |
| Reference | varchar(100) | YES |  |  |  |
| InvoiceDate | varchar(100) | YES |  |  |  |
| DueDate | varchar(100) | YES |  |  |  |
| PlannedDate | varchar(100) | YES |  |  |  |
| Total | varchar(100) | YES |  |  |  |
| TaxTotal | varchar(100) | YES |  |  |  |
| InvoiceAmountPaid | varchar(100) | YES |  |  |  |
| InvoiceAmountDue | varchar(100) | YES |  |  |  |
| InventoryItemCode | varchar(100) | YES |  |  |  |
| Description | varchar(100) | YES |  |  |  |
| Quantity | varchar(100) | YES |  |  |  |
| UnitAmount | varchar(100) | YES |  |  |  |
| Discount | varchar(100) | YES |  |  |  |
| LineAmount | varchar(100) | YES |  |  |  |
| AccountCode | varchar(100) | YES |  |  |  |
| TaxType | varchar(100) | YES |  |  |  |
| TaxAmount | varchar(100) | YES |  |  |  |
| TrackingName1 | varchar(100) | YES |  |  |  |
| TrackingOption1 | varchar(100) | YES |  |  |  |
| TrackingName2 | varchar(100) | YES |  |  |  |
| TrackingOption2 | varchar(100) | YES |  |  |  |
| Currency | varchar(100) | YES |  |  |  |
| Type | varchar(100) | YES |  |  |  |
| Sent | varchar(100) | YES |  |  |  |
| Status | varchar(100) | YES |  |  |  |
| syncedfromxeroon | bigint | NO |  | 0 |  |
| syncedfromxeroby | int | NO |  |  |  |
| syncedstatus | bigint | NO |  | 0 |  |

## `XERO_Supplier_Invoice_Report`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Reference | varchar(128) | NO |  |  |  |
| Type | varchar(12) | NO |  |  |  |
| CompanyName | varchar(128) | NO |  |  |  |
| Addedon | text | NO |  |  |  |
| DueDate | text | NO |  |  |  |
| PlannedDate | text | NO |  |  |  |
| PaidDate | text | NO |  |  |  |
| InvoiceTotalText | text | NO |  |  |  |
| PaidText | text | NO |  |  |  |
| DueText | text | NO |  |  |  |
| Status | varchar(32) | NO |  |  |  |
| importdate | bigint | NO |  | 0 |  |
| hostcompanyid | int | NO |  |  |  |
| hashkey | varchar(200) | NO |  |  |  |
| currency | varchar(12) | NO |  |  |  |

## `XERO_Supplier_Invoices_Details_Imported`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| invoicedate | varchar(12) | NO |  |  |  |
| source | varchar(64) | NO |  |  |  |
| reference | varchar(64) | NO |  |  |  |
| itemcode | varchar(24) | NO |  |  |  |
| description | varchar(250) | NO |  |  |  |
| quantity | float(12,4) | NO |  |  |  |
| unitprice | float(12,4) | NO |  |  |  |
| vat | float(12,4) | NO |  |  |  |
| gross | float(12,4) | NO |  |  |  |
| invtotal | float(12,4) | NO |  |  |  |
| duedate | varchar(12) | NO |  |  |  |
| originalcurrency | varchar(6) | NO |  |  |  |
| currencyrate | float(10,5) | NO |  |  |  |
| status | varchar(16) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| importdate | bigint | NO |  | 0 |  |
| hashkey | varchar(128) | NO |  |  |  |

## `XERO_Supplier_Invoices_Details_Raw`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| invoicedate | int | NO |  |  |  |
| source | varchar(64) | NO |  |  |  |
| reference | varchar(64) | NO |  |  |  |
| itemcode | varchar(24) | NO |  |  |  |
| description | varchar(250) | NO |  |  |  |
| quantity | float(12,4) | NO |  |  |  |
| unitprice | float(12,4) | NO |  |  |  |
| vat | float(12,4) | NO |  |  |  |
| gross | float(12,4) | NO |  |  |  |
| invtotal | float(12,4) | NO |  |  |  |
| duedate | varchar(12) | NO |  |  |  |
| originalcurrency | varchar(6) | NO |  |  |  |
| currencyrate | float(10,5) | NO |  |  |  |
| status | varchar(16) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| importdate | int | NO |  |  |  |
| hashkey | varchar(128) | NO |  |  |  |

## `XERO_Supplier_Invoices_Imported`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| invoice_date | varchar(16) | NO |  |  |  |
| xero_contact | varchar(250) | NO |  |  |  |
| source | varchar(32) | NO |  |  |  |
| reference | varchar(32) | NO |  |  |  |
| duedate | varchar(16) | NO |  |  |  |
| planneddate | varchar(16) | NO |  |  |  |
| createddate | varchar(16) | NO |  |  |  |
| originalcurrency | varchar(4) | NO |  |  |  |
| currencyrate | float(6,5) | NO |  |  |  |
| netvalue | float(11,3) | NO |  |  |  |
| grossvalue | float(11,3) | NO |  |  |  |
| paymentsdebits | float(11,3) | NO |  |  |  |
| balance | float(11,3) | NO |  |  |  |
| status | varchar(24) | NO |  |  |  |
| importdate | varchar(16) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| hashkey | varchar(200) | NO |  |  |  |
| company_id | int | NO |  |  |  |
| invdate | bigint | NO |  | 0 |  |

## `XERO_Supplier_Invoices_raw`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| invoice_date | varchar(16) | NO |  |  |  |
| xero_contact | varchar(250) | NO |  |  |  |
| source | varchar(32) | NO |  |  |  |
| reference | varchar(32) | NO |  |  |  |
| duedate | varchar(16) | NO |  |  |  |
| planneddate | varchar(16) | NO |  |  |  |
| createddate | varchar(16) | NO |  |  |  |
| originalcurrency | varchar(4) | NO |  |  |  |
| currencyrate | float(6,5) | NO |  |  |  |
| netvalue | float(11,3) | NO |  |  |  |
| grossvalue | float(11,3) | NO |  |  |  |
| paymentsdebits | float(11,3) | NO |  |  |  |
| balance | float(11,3) | NO |  |  |  |
| status | varchar(24) | NO |  |  |  |
| importdate | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| hashkey | varchar(200) | NO |  |  |  |

## `XERO_UPLOADED_BillTemplate`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ContactName | varchar(100) | YES |  |  |  |
| EmailAddress | varchar(100) | YES |  |  |  |
| POAddressLine1 | varchar(100) | YES |  |  |  |
| POAddressLine2 | varchar(100) | YES |  |  |  |
| POAddressLine3 | varchar(100) | YES |  |  |  |
| POAddressLine4 | varchar(100) | YES |  |  |  |
| POCity | varchar(100) | YES |  |  |  |
| PORegion | varchar(100) | YES |  |  |  |
| POPostalCode | varchar(100) | YES |  |  |  |
| POCountry | varchar(100) | YES |  |  |  |
| InvoiceNumber | varchar(100) | YES |  |  |  |
| InvoiceDate | varchar(100) | YES |  |  |  |
| DueDate | varchar(100) | YES |  |  |  |
| Total | varchar(100) | YES |  |  |  |
| InventoryItemCode | varchar(100) | YES |  |  |  |
| Description | varchar(100) | YES |  |  |  |
| Quantity | varchar(100) | YES |  |  |  |
| UnitAmount | varchar(100) | YES |  |  |  |
| AccountCode | varchar(100) | YES |  |  |  |
| TaxType | varchar(100) | YES |  |  |  |
| TaxAmount | varchar(100) | YES |  |  |  |
| TrackingName1 | varchar(100) | YES |  |  |  |
| TrackingOption1 | varchar(100) | YES |  |  |  |
| TrackingName2 | varchar(100) | YES |  |  |  |
| TrackingOption2 | varchar(100) | YES |  |  |  |
| Currency | varchar(100) | YES |  |  |  |
| signedasdoneby | int | NO |  |  |  |
| signedasdoneon | int | NO |  |  |  |

## `XERO_UPLOADED_Contacts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ContactName | varchar(100) | YES |  |  |  |
| AccountNumber | varchar(100) | YES |  |  |  |
| EmailAddress | varchar(100) | YES |  |  |  |
| FirstName | varchar(100) | YES |  |  |  |
| LastName | varchar(100) | YES |  |  |  |
| POAttentionTo | varchar(100) | YES |  |  |  |
| POAddressLine1 | varchar(100) | YES |  |  |  |
| POAddressLine2 | varchar(100) | YES |  |  |  |
| POAddressLine3 | varchar(100) | YES |  |  |  |
| POAddressLine4 | varchar(100) | YES |  |  |  |
| POCity | varchar(100) | YES |  |  |  |
| PORegion | varchar(100) | YES |  |  |  |
| POPostalCode | varchar(100) | YES |  |  |  |
| POCountry | varchar(100) | YES |  |  |  |
| SAAttentionTo | varchar(100) | YES |  |  |  |
| SAAddressLine1 | varchar(100) | YES |  |  |  |
| SAAddressLine2 | varchar(100) | YES |  |  |  |
| SAAddressLine3 | varchar(100) | YES |  |  |  |
| SAAddressLine4 | varchar(100) | YES |  |  |  |
| SACity | varchar(100) | YES |  |  |  |
| SARegion | varchar(100) | YES |  |  |  |
| SAPostalCode | varchar(100) | YES |  |  |  |
| SACountry | varchar(100) | YES |  |  |  |
| PhoneNumber | varchar(100) | YES |  |  |  |
| FaxNumber | varchar(100) | YES |  |  |  |
| MobileNumber | varchar(100) | YES |  |  |  |
| DDINumber | varchar(100) | YES |  |  |  |
| SkypeName | varchar(100) | YES |  |  |  |
| BankAccountName | varchar(100) | YES |  |  |  |
| BankAccountNumber | varchar(100) | YES |  |  |  |
| BankAccountParticulars | varchar(100) | YES |  |  |  |
| TaxNumber | varchar(100) | YES |  |  |  |
| AccountsReceivableTaxCodeName | varchar(100) | YES |  |  |  |
| AccountsPayableTaxCodeName | varchar(100) | YES |  |  |  |
| Website | varchar(100) | YES |  |  |  |
| LegalName | varchar(100) | YES |  |  |  |
| Discount | varchar(100) | YES |  |  |  |
| CompanyNumber | varchar(100) | YES |  |  |  |
| DueDateBillDay | varchar(100) | YES |  |  |  |
| DueDateBillTerm | varchar(100) | YES |  |  |  |
| DueDateSalesDay | varchar(100) | YES |  |  |  |
| DueDateSalesTerm | varchar(100) | YES |  |  |  |
| SalesAccount | varchar(100) | YES |  |  |  |
| PurchasesAccount | varchar(100) | YES |  |  |  |
| TrackingName1 | varchar(100) | YES |  |  |  |
| SalesTrackingOption1 | varchar(100) | YES |  |  |  |
| PurchasesTrackingOption1 | varchar(100) | YES |  |  |  |
| TrackingName2 | varchar(100) | YES |  |  |  |
| SalesTrackingOption2 | varchar(100) | YES |  |  |  |
| PurchasesTrackingOption2 | varchar(100) | YES |  |  |  |
| BrandingTheme | varchar(100) | YES |  |  |  |
| DefaultTaxBills | varchar(100) | YES |  |  |  |
| DefaultTaxSales | varchar(100) | YES |  |  |  |
| Person1FirstName | varchar(100) | YES |  |  |  |
| Person1LastName | varchar(100) | YES |  |  |  |
| Person1Email | varchar(100) | YES |  |  |  |
| Person1IncludeInEmail | varchar(100) | YES |  |  |  |
| Person2FirstName | varchar(100) | YES |  |  |  |
| Person2LastName | varchar(100) | YES |  |  |  |
| Person2Email | varchar(100) | YES |  |  |  |
| Person2IncludeInEmail | varchar(100) | YES |  |  |  |
| Person3FirstName | varchar(100) | YES |  |  |  |
| Person3LastName | varchar(100) | YES |  |  |  |
| Person3Email | varchar(100) | YES |  |  |  |
| Person3IncludeInEmail | varchar(100) | YES |  |  |  |
| Person4FirstName | varchar(100) | YES |  |  |  |
| Person4LastName | varchar(100) | YES |  |  |  |
| Person4Email | varchar(100) | YES |  |  |  |
| Person4IncludeInEmail | varchar(100) | YES |  |  |  |
| Person5FirstName | varchar(100) | YES |  |  |  |
| Person5LastName | varchar(100) | YES |  |  |  |
| Person5Email | varchar(100) | YES |  |  |  |
| Person5IncludeInEmail | varchar(100) | YES |  |  |  |
| signedasdoneby | int | NO |  |  |  |
| signedasdoneon | int | NO |  |  |  |

## `XERO_UPLOADED_InventoryItems`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ItemCode | varchar(100) | YES |  |  |  |
| ItemName | varchar(100) | YES |  |  |  |
| PurchasesDescription | varchar(100) | YES |  |  |  |
| PurchasesUnitPrice | varchar(100) | YES |  |  |  |
| PurchasesAccount | varchar(100) | YES |  |  |  |
| PurchasesTaxRate | varchar(100) | YES |  |  |  |
| SalesDescription | varchar(100) | YES |  |  |  |
| SalesUnitPrice | varchar(100) | YES |  |  |  |
| SalesAccount | varchar(100) | YES |  |  |  |
| SalesTaxRate | varchar(100) | YES |  |  |  |
| InventoryAssetAccount | varchar(100) | YES |  |  |  |
| CostOfGoodsSoldAccount | varchar(100) | YES |  |  |  |
| signedasdoneby | int | NO |  |  |  |
| signedasdoneon | int | NO |  |  |  |

## `XERO_UPLOADED_Invoices_Paid`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ContactName | varchar(100) | YES |  |  |  |
| EmailAddress | varchar(100) | YES |  |  |  |
| POAddressLine1 | varchar(100) | YES |  |  |  |
| POAddressLine2 | varchar(100) | YES |  |  |  |
| POAddressLine3 | varchar(100) | YES |  |  |  |
| POAddressLine4 | varchar(100) | YES |  |  |  |
| POCity | varchar(100) | YES |  |  |  |
| PORegion | varchar(100) | YES |  |  |  |
| POPostalCode | varchar(100) | YES |  |  |  |
| POCountry | varchar(100) | YES |  |  |  |
| SAAddressLine1 | varchar(100) | YES |  |  |  |
| SAAddressLine2 | varchar(100) | YES |  |  |  |
| SAAddressLine3 | varchar(100) | YES |  |  |  |
| SAAddressLine4 | varchar(100) | YES |  |  |  |
| SACity | varchar(100) | YES |  |  |  |
| SARegion | varchar(100) | YES |  |  |  |
| SAPostalCode | varchar(100) | YES |  |  |  |
| SACountry | varchar(100) | YES |  |  |  |
| InvoiceNumber | varchar(100) | YES |  |  |  |
| Reference | varchar(100) | YES |  |  |  |
| InvoiceDate | varchar(100) | YES |  |  |  |
| DueDate | varchar(100) | YES |  |  |  |
| PlannedDate | varchar(100) | YES |  |  |  |
| Total | varchar(100) | YES |  |  |  |
| TaxTotal | varchar(100) | YES |  |  |  |
| InvoiceAmountPaid | varchar(100) | YES |  |  |  |
| InvoiceAmountDue | varchar(100) | YES |  |  |  |
| InventoryItemCode | varchar(100) | YES |  |  |  |
| Description | varchar(100) | YES |  |  |  |
| Quantity | varchar(100) | YES |  |  |  |
| UnitAmount | varchar(100) | YES |  |  |  |
| Discount | varchar(100) | YES |  |  |  |
| LineAmount | varchar(100) | YES |  |  |  |
| AccountCode | varchar(100) | YES |  |  |  |
| TaxType | varchar(100) | YES |  |  |  |
| TaxAmount | varchar(100) | YES |  |  |  |
| TrackingName1 | varchar(100) | YES |  |  |  |
| TrackingOption1 | varchar(100) | YES |  |  |  |
| TrackingName2 | varchar(100) | YES |  |  |  |
| TrackingOption2 | varchar(100) | YES |  |  |  |
| Currency | varchar(100) | YES |  |  |  |
| Type | varchar(100) | YES |  |  |  |
| Sent | varchar(100) | YES |  |  |  |
| Status | varchar(100) | YES |  |  |  |

## `XERO_UPLOADED_SalesInvoiceTemplate`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ContactName | varchar(100) | YES |  |  |  |
| EmailAddress | varchar(100) | YES |  |  |  |
| POAddressLine1 | varchar(100) | YES |  |  |  |
| POAddressLine2 | varchar(100) | YES |  |  |  |
| POAddressLine3 | varchar(100) | YES |  |  |  |
| POAddressLine4 | varchar(100) | YES |  |  |  |
| POCity | varchar(100) | YES |  |  |  |
| PORegion | varchar(100) | YES |  |  |  |
| POPostalCode | varchar(100) | YES |  |  |  |
| POCountry | varchar(100) | YES |  |  |  |
| InvoiceNumber | varchar(100) | YES |  |  |  |
| Reference | varchar(100) | YES |  |  |  |
| InvoiceDate | varchar(100) | YES |  |  |  |
| DueDate | varchar(100) | YES |  |  |  |
| Total | varchar(100) | YES |  |  |  |
| InventoryItemCode | varchar(100) | YES |  |  |  |
| Description | varchar(100) | YES |  |  |  |
| Quantity | int | YES |  |  |  |
| UnitAmount | varchar(100) | YES |  |  |  |
| Discount | varchar(100) | YES |  |  |  |
| AccountCode | varchar(100) | YES |  |  |  |
| TaxType | varchar(100) | YES |  |  |  |
| TaxAmount | varchar(100) | YES |  |  |  |
| TrackingName1 | varchar(100) | YES |  |  |  |
| TrackingOption1 | varchar(100) | YES |  |  |  |
| TrackingName2 | varchar(100) | YES |  |  |  |
| TrackingOption2 | varchar(100) | YES |  |  |  |
| Currency | varchar(100) | YES |  |  |  |
| BrandingTheme | varchar(100) | YES |  |  |  |
| signedasdoneby | int | NO |  |  |  |
| signedasdoneon | bigint | NO |  | 0 |  |
| hostcompanyid | int | NO |  |  |  |

## `XERO_UPLOADED_stockopening`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Item Code | varchar(100) | YES |  |  |  |
| Item Name | varchar(100) | YES |  |  |  |
| Inventory Asset Account | varchar(100) | YES |  |  |  |
| Quantity on Hand | varchar(100) | YES |  |  |  |
| Total Value on Hand | varchar(100) | YES |  |  |  |
| Adjustment Account | varchar(100) | YES |  |  |  |
| signedasdoneby | int | NO |  |  |  |
| signedasdoneon | bigint | NO |  | 0 |  |

## `XERO_stockopening`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Item Code | varchar(100) | YES |  |  |  |
| Item Name | varchar(100) | YES |  |  |  |
| Inventory Asset Account | varchar(100) | YES |  |  |  |
| Quantity on Hand | varchar(100) | YES |  |  |  |
| Total Value on Hand | varchar(100) | YES |  |  |  |
| Adjustment Account | varchar(100) | YES |  |  |  |

## `Xero_to_Intrastats`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| csvfilename | varchar(32) | NO |  |  |  |
| csvfield | varchar(64) | NO |  |  |  |
| csvfieldorder | int | NO |  |  |  |
| isdatabase | varchar(128) | NO |  |  |  |
| isfieldname | varchar(128) | NO |  |  |  |
| isfieldkey | varchar(80) | NO |  |  |  |
| linkedby | int | NO |  |  |  |
| linkedon | int | NO |  |  |  |
| note | longtext | NO |  |  |  |
| primeisdatabase | varchar(90) | NO |  |  |  |
| seconddb | varchar(128) | NO |  |  |  |
| primelink | varchar(120) | NO |  |  |  |
| slavelink | varchar(120) | NO |  |  |  |
| setquery | varchar(250) | NO |  |  |  |
| primeisfield | varchar(80) | NO |  |  |  |
| filtersql | varchar(250) | NO |  |  |  |
| followonpage | varchar(20) | NO |  |  |  |

## `aws_ip`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ip | varchar(64) | NO |  |  |  |

## `b_cdetl`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| CD_CODE | varchar(255) | YES |  |  |  |
| CD_REF | varchar(255) | YES |  |  |  |
| CD_DESC | varchar(255) | YES |  |  |  |
| CD_SELL | int | YES |  |  |  |
| CD_SDATE1 | datetime | YES |  |  |  |
| CD_SDATE2 | datetime | YES |  |  |  |
| CD_SSELL | int | YES |  |  |  |
| CD_NSELL | int | YES |  |  |  |
| CD_NDATE | datetime | YES |  |  |  |
| CD_SETT | tinyint | YES |  |  |  |
| CD_LINE | tinyint | YES |  |  |  |
| CD_OVER | tinyint | YES |  |  |  |
| CD_QUAN1 | int | YES |  |  |  |
| CD_QUAN2 | int | YES |  |  |  |
| CD_QUAN3 | int | YES |  |  |  |
| CD_QUAN4 | int | YES |  |  |  |
| CD_QUAN5 | int | YES |  |  |  |
| CD_QUAN6 | int | YES |  |  |  |
| CD_QUAN7 | int | YES |  |  |  |
| CD_QUAN8 | int | YES |  |  |  |
| CD_QUAN9 | int | YES |  |  |  |
| CD_QUAN10 | int | YES |  |  |  |
| CD_SELL1 | int | YES |  |  |  |
| CD_SELL2 | int | YES |  |  |  |
| CD_SELL3 | int | YES |  |  |  |
| CD_SELL4 | int | YES |  |  |  |
| CD_SELL5 | int | YES |  |  |  |
| CD_SELL6 | int | YES |  |  |  |
| CD_SELL7 | int | YES |  |  |  |
| CD_SELL8 | int | YES |  |  |  |
| CD_SELL9 | int | YES |  |  |  |
| CD_SELL10 | int | YES |  |  |  |
| CD_SSELL1 | int | YES |  |  |  |
| CD_SSELL2 | int | YES |  |  |  |
| CD_SSELL3 | int | YES |  |  |  |
| CD_SSELL4 | int | YES |  |  |  |
| CD_SSELL5 | int | YES |  |  |  |
| CD_SSELL6 | int | YES |  |  |  |
| CD_SSELL7 | int | YES |  |  |  |
| CD_SSELL8 | int | YES |  |  |  |
| CD_SSELL9 | int | YES |  |  |  |
| CD_SSELL10 | int | YES |  |  |  |
| CD_NSELL1 | int | YES |  |  |  |
| CD_NSELL2 | int | YES |  |  |  |
| CD_NSELL3 | int | YES |  |  |  |
| CD_NSELL4 | int | YES |  |  |  |
| CD_NSELL5 | int | YES |  |  |  |
| CD_NSELL6 | int | YES |  |  |  |
| CD_NSELL7 | int | YES |  |  |  |
| CD_NSELL8 | int | YES |  |  |  |
| CD_NSELL9 | int | YES |  |  |  |
| CD_NSELL10 | int | YES |  |  |  |
| CD_STATUS | varchar(255) | YES |  |  |  |
| CD_CURR | varchar(255) | YES |  |  |  |
| CD_FUNDEC | int | YES |  |  |  |
| CD_DATE | datetime | YES |  |  |  |
| CD_TIME | varchar(255) | YES |  |  |  |
| CD_OLDPL | varchar(255) | YES |  |  |  |

## `backorder2amending`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ord | varchar(12) | NO |  |  |  |
| amendingby | varchar(32) | NO |  |  |  |
| amendingon | int | NO |  |  |  |
| amendingcomplete | int | NO |  |  |  |

## `backorderflag`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ord | varchar(12) | NO |  |  |  |
| flagged | int | NO |  |  |  |
| flaggedby | varchar(32) | NO |  |  |  |
| status | varchar(32) | NO |  |  |  |
| vui | int | NO |  |  |  |
| usergroupid | int | NO |  |  |  |

## `backorderflaghistory`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ord | varchar(12) | NO |  |  |  |
| flagged | bigint | NO |  |  |  |
| flaggedby | varchar(32) | NO |  |  |  |
| status | varchar(32) | NO |  |  |  |
| vui | int | NO |  |  |  |
| onoff | varchar(5) | NO |  |  |  |
| usergroupid | int | NO |  |  |  |

## `backorders`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| STOCK_REFE | varchar(255) | YES |  |  |  |
| DESCRIPTIO | varchar(255) | YES |  |  |  |
| LINE_QUANT | int | YES |  |  |  |
| ITEM_PRICE | double | YES |  |  |  |
| VAT_CODE | varchar(255) | YES |  |  |  |
| STATUS | varchar(255) | YES |  |  |  |
| DATE_DELIV | datetime | YES |  |  |  |
| DATE_INVOI | datetime | YES |  |  |  |
| INVOICE_NU | varchar(255) | YES |  |  |  |
| ACCOUNT | varchar(255) | YES |  |  |  |
| NAME | varchar(255) | YES |  |  |  |
| CUSTOMER_R | varchar(255) | YES |  |  |  |

## `backorders2`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Order_number | varchar(100) | NO |  |  |  |
| Account | varchar(100) | NO |  |  |  |
| Stock_ref | varchar(100) | NO |  |  |  |
| Description | varchar(100) | NO |  |  |  |
| Qty | varchar(100) | NO |  |  |  |
| Qty_Invoiced | varchar(100) | NO |  |  |  |
| Cust_ref | varchar(100) | NO |  |  |  |
| Priority | varchar(100) | NO |  |  |  |
| Due | varchar(100) | NO |  |  |  |
| Item_Price | float | NO |  |  |  |
| Customername | varchar(128) | NO |  |  |  |
| Customerref | varchar(128) | NO |  |  |  |
| Order_priority | int | NO |  |  |  |
| Forward_Order | int | NO |  |  |  |
| Quotenum | varchar(16) | NO |  |  |  |
| companyid | varchar(16) | NO |  |  |  |
| importedate | bigint | NO |  |  |  |
| amending | int | NO |  |  |  |
| linevalue | varchar(32) | NO |  |  |  |
| coll | varchar(7) | NO |  |  |  |
| hostcompany | int | NO |  |  |  |
| errorcode | int | NO |  |  |  |
| orderid | int | NO |  |  |  |
| orderlineid | int | NO |  |  |  |

## `backorders2_exclusions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(16) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `balances`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| gbp | decimal(10,2) | NO |  | 0.00 |  |
| usd | decimal(10,2) | NO |  | 0.00 |  |
| usd_xrate | decimal(6,5) | NO |  | 0.00000 |  |
| euro | decimal(10,2) | NO |  | 0.00 |  |
| euro_xrate | decimal(6,5) | NO |  | 0.00000 |  |
| timestamp | decimal(12,0) | NO |  | 0 |  |
| backorders | varchar(100) | NO |  |  |  |
| creditors | varchar(100) | NO |  |  |  |
| debtors | varchar(100) | NO |  |  |  |
| type | varchar(6) | NO |  |  |  |
| forwardorders | int | NO |  |  |  |
| vandagraph_loan | int | NO |  |  |  |
| ggl_jsl_loan | int | NO |  |  |  |
| sn_loan | int | NO |  |  |  |
| dl_loan | int | NO |  |  |  |
| stock | int | NO |  |  |  |
| bankloan | int | NO |  |  |  |
| vststerling | decimal(10,2) | NO |  |  |  |
| vandsterling | decimal(10,2) | NO |  |  |  |
| stksell | int | NO |  |  |  |
| stkusell | int | NO |  |  |  |
| stkval | int | NO |  |  |  |
| viaturn | decimal(10,2) | NO |  |  |  |
| vstturn | decimal(10,2) | NO |  |  |  |
| vanturn | decimal(10,2) | NO |  |  |  |
| viaturndate | bigint | NO |  | 0 |  |
| vstturndate | bigint | NO |  | 0 |  |
| vanturndate | bigint | NO |  | 0 |  |
| addedby | varchar(32) | NO |  |  |  |
| vstdebtor | int | NO |  |  |  |
| vstcred | int | NO |  |  |  |
| vstbackord | int | NO |  |  |  |
| vstforord | int | NO |  |  |  |
| vandebtor | int | NO |  |  |  |
| vancred | int | NO |  |  |  |
| vanord | int | NO |  |  |  |
| vanforord | int | NO |  |  |  |
| ign | varchar(1) | NO |  |  |  |
| vststk | int | NO |  |  |  |
| vanstk | int | NO |  |  |  |
| vstloan | int | NO |  |  |  |
| viamedpropertiesloan | int | NO |  |  |  |

## `bank`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| GRUP | varchar(255) | YES |  |  |  |
| ACC_ID | varchar(255) | YES |  |  |  |
| ACCOUNT_NO | varchar(255) | YES |  |  |  |
| TYPE | varchar(255) | YES |  |  |  |
| BANK_CODE | varchar(255) | YES |  |  |  |
| CURR | varchar(255) | YES |  |  |  |
| ENTRY_DATE | varchar(255) | YES |  |  |  |
| AS_AT | varchar(255) | YES |  |  |  |
| AMOUNT | varchar(255) | YES |  |  |  |
| TLA_CODE | varchar(255) | YES |  |  |  |
| CHEQUE_NO | varchar(255) | YES |  |  |  |
| STATUS | varchar(255) | YES |  |  |  |
| DESCRIPTION | varchar(255) | YES |  |  |  |

## `barclays_bank`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| GRUP | varchar(255) | YES |  |  |  |
| ACC_ID | varchar(255) | YES |  |  |  |
| ACCOUNT_NO | varchar(255) | YES |  |  |  |
| TYPE | varchar(255) | YES |  |  |  |
| BANK_CODE | varchar(255) | YES |  |  |  |
| CURR | varchar(255) | YES |  |  |  |
| ENTRY_DATE | varchar(255) | YES |  |  |  |
| AS_AT | varchar(255) | YES |  |  |  |
| AMOUNT | float(11,2) | YES |  |  |  |
| TLA_CODE | varchar(255) | YES |  |  |  |
| CHEQUE_NO | varchar(255) | YES |  |  |  |
| STATUS | varchar(255) | YES |  |  |  |
| DESCRIPTION | varchar(255) | YES |  |  |  |
| entry_date_epoch | bigint | NO |  |  |  |
| uploadedby | int | NO |  |  |  |
| uploadedon | bigint | NO |  |  |  |
| paidflag | varchar(10) | NO |  |  |  |
| account | varchar(12) | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| nominalcode | varchar(12) | NO |  |  |  |
| JOURNAL_NU | varchar(16) | NO |  |  |  |
| tagged | bigint | NO |  | 0 |  |
| usermemo | longtext | NO |  |  |  |
| usermemoby | int | NO |  |  |  |
| usermemoon | bigint | NO |  |  |  |
| companyid | int | NO |  |  |  |
| orderid | int | NO |  |  |  |

## `barclays_bank_accounts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(12) | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |
| showorder | int | NO |  |  |  |

## `blc`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| trit | decimal(8,2) | NO |  | 0.00 |  |
| pyer | decimal(8,2) | NO |  | 0.00 |  |
| mex | decimal(8,2) | NO |  | 0.00 |  |
| iso | decimal(8,2) | NO |  | 0.00 |  |
| noc | decimal(8,2) | NO |  | 0.00 |  |
| zyd | decimal(8,2) | NO |  | 0.00 |  |
| meg | decimal(8,2) | NO |  | 0.00 |  |
| mor | decimal(8,2) | NO |  | 0.00 |  |
| vel | decimal(8,2) | NO |  | 0.00 |  |
| sco | decimal(8,2) | NO |  | 0.00 |  |
| pyr | decimal(8,2) | NO |  | 0.00 |  |
| pla | decimal(8,2) | NO |  | 0.00 |  |
| omb | decimal(8,2) | NO |  | 0.00 |  |
| ker | decimal(8,2) | NO |  | 0.00 |  |
| jas | decimal(8,2) | NO |  | 0.00 |  |
| hem | decimal(8,2) | NO |  | 0.00 |  |
| hed | decimal(8,2) | NO |  | 0.00 |  |
| gne | decimal(8,2) | NO |  | 0.00 |  |
| dar | decimal(8,2) | NO |  | 0.00 |  |
| cro | decimal(8,2) | NO |  | 0.00 |  |
| spo | decimal(8,2) | NO |  | 0.00 |  |
| bis | decimal(8,2) | NO |  | 0.00 |  |
| ark | decimal(8,2) | NO |  | 0.00 |  |
| mec | decimal(8,2) | NO |  | 0.00 |  |
| week | int | NO |  | 0 |  |
| station | varchar(8) | NO |  |  |  |
| type | varchar(8) | NO |  |  |  |

## `bomdetails`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| sortorder | int | NO |  | 0 |  |
| bomid | int | NO |  | 0 |  |
| part_number | varchar(56) | NO |  |  |  |
| description | varchar(254) | NO |  |  |  |
| qty | varchar(8) | NO |  |  |  |
| pdf | varchar(254) | NO |  |  |  |
| manufacturer | varchar(254) | NO |  |  |  |
| supplier | varchar(254) | NO |  |  |  |
| operacode | varchar(100) | NO |  |  |  |
| ordercode | varchar(50) | NO |  |  |  |
| rohs | varchar(100) | NO |  |  |  |
| cost | varchar(50) | NO |  |  |  |
| updated | bigint | NO |  | 0 |  |

## `bomheader`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| bom_version | varchar(12) | NO |  |  |  |
| creation_date | bigint | NO |  | 0 |  |
| author | varchar(24) | NO |  |  |  |
| product | varchar(48) | NO |  |  |  |
| variant | varchar(24) | NO |  |  |  |
| mdrn | varchar(12) | NO |  |  |  |
| aprn | varchar(12) | NO |  |  |  |
| locked | varchar(100) | NO |  |  |  |
| assbom | varchar(180) | NO |  |  |  |
| cdrn | varchar(64) | NO |  |  |  |

## `bomtemplinks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| fileid | int | NO |  | 0 |  |
| bomid | int | NO |  | 0 |  |
| originalid | int | NO |  | 0 |  |

## `brain`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| type | varchar(30) | YES |  |  |  |
| subject | varchar(30) | YES |  |  |  |
| notes | varchar(250) | YES |  |  |  |
| status | varchar(40) | YES |  |  |  |

## `building_temperatures`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| locationid | int | NO |  |  |  |
| temperature | float(10,2) | NO |  |  |  |
| humidity | float(10,2) | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| pressure | float(10,2) | NO |  |  |  |

## `chart`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| lable | varchar(64) | NO |  |  |  |
| value | varchar(100) | NO |  |  |  |
| units | varchar(50) | NO |  |  |  |
| title | varchar(100) | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| ip | varchar(20) | YES |  |  |  |

## `chart_paper_temp`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| partnum | varchar(100) | NO |  |  |  |
| oem | varchar(100) | NO |  |  |  |
| supcode | varchar(100) | NO |  |  |  |
| description | varchar(100) | NO |  |  |  |
| packed | varchar(100) | NO |  |  |  |
| image | varchar(100) | NO |  |  |  |
| opera_code | varchar(100) | NO |  |  |  |

## `commision_codes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| commision_code | varchar(12) | NO |  |  |  |
| description | varchar(12) | NO |  |  |  |

## `computers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| pcid | int | YES |  | 0 |  |
| code | varchar(30) | NO |  |  |  |
| sn | varchar(60) | NO |  |  |  |
| date | date | NO |  | 0000-00-00 |  |
| initial | varchar(40) | NO |  |  |  |
| type | varchar(60) | NO |  |  |  |
| reused | varchar(16) | NO |  |  |  |

## `comrep`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| rep | varchar(100) | NO |  |  |  |
| region | varchar(100) | NO |  |  |  |

## `descriptioncodes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| codetype | int | NO |  |  |  |
| code | varchar(16) | NO |  |  |  |
| description | varchar(250) | NO |  |  |  |
| source | varchar(200) | NO |  |  |  |

## `descriptioncodestypes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| code | varchar(16) | NO |  |  |  |
| description | varchar(250) | NO |  |  |  |

## `development`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| project_code_name | varchar(64) | NO |  |  |  |
| serial_number | varchar(24) | NO |  |  |  |
| bom_number | varchar(4) | NO |  |  |  |
| hardware_production_date | int | NO |  | 0 |  |
| assembled_by | varchar(24) | NO |  |  |  |
| software_number | varchar(8) | NO |  |  |  |
| software_revision | varchar(8) | NO |  |  |  |
| software_installation_date | int | NO |  | 0 |  |
| software_installed_by | varchar(24) | NO |  |  |  |
| test_date | int | NO |  | 0 |  |
| test_by | varchar(24) | NO |  |  |  |
| calibration_certificate_number | varchar(24) | NO |  |  |  |
| firmware | varchar(12) | NO |  |  |  |
| firmware_revision | varchar(12) | NO |  |  |  |
| type | varchar(16) | NO |  |  |  |
| project_code | varchar(12) | NO |  |  |  |
| comments | longtext | NO |  |  |  |
| hidden | char(2) | NO |  |  |  |

## `distributerindex`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| country | varchar(100) | NO |  |  |  |
| stockgroup | varchar(100) | NO |  |  |  |
| account | varchar(100) | NO |  |  |  |
| name | varchar(100) | NO |  |  |  |
| year | varchar(100) | NO |  |  |  |

## `envitec_freestock_bom`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| endproduct | varchar(12) | NO |  |  |  |
| qty | int | NO |  |  |  |
| component | varchar(12) | NO |  |  |  |
| stock_level | int | NO |  |  |  |
| dateupdated | bigint | NO |  |  |  |
| level1 | int | NO |  |  |  |
| level2 | int | NO |  |  |  |

## `envitec_freestock_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| endproduct | varchar(12) | NO |  |  |  |
| qty | int | NO |  |  |  |
| component | varchar(12) | NO |  |  |  |
| stock_level | int | NO |  |  |  |
| dateupdated | bigint | NO |  |  |  |
| level1 | int | NO |  |  |  |
| level2 | int | NO |  |  |  |
| updatedby | varchar(36) | NO |  |  |  |

## `estimates`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| opera_account | varchar(100) | NO |  |  |  |
| stock_ref | varchar(20) | NO |  |  |  |
| m1 | varchar(100) | NO |  |  |  |
| m2 | varchar(100) | NO |  |  |  |
| m3 | varchar(100) | NO |  |  |  |
| m4 | varchar(100) | NO |  |  |  |
| m5 | varchar(100) | NO |  |  |  |
| m6 | varchar(100) | NO |  |  |  |
| m7 | varchar(100) | NO |  |  |  |
| m8 | varchar(100) | NO |  |  |  |
| m9 | varchar(100) | NO |  |  |  |
| m10 | varchar(100) | NO |  |  |  |
| m11 | varchar(100) | NO |  |  |  |
| m12 | varchar(100) | NO |  |  |  |
| total | varchar(100) | NO |  |  |  |

## `exported_contacts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ACCOUNTNO | varchar(255) | YES |  |  |  |
| CONTACT | varchar(255) | YES |  |  |  |
| DEPARTMENT | varchar(255) | YES |  |  |  |
| INETADDR | varchar(255) | YES |  |  |  |
| DEAR | varchar(255) | YES |  |  |  |
| UPOSITION | varchar(255) | YES |  |  |  |
| UMAILDEPT | varchar(255) | YES |  |  |  |
| UMAILPOS | varchar(255) | YES |  |  |  |
| KEY5 | varchar(255) | YES |  |  |  |
| COMPANY | varchar(255) | YES |  |  |  |
| ULIQIP | int | YES |  | 0 |  |
| UDATAMAILS | varchar(100) | YES |  |  |  |
| UNHSREGION | varchar(100) | YES |  |  |  |
| UNHSTRUSTS | varchar(100) | YES |  |  |  |
| CITY | varchar(100) | YES |  |  |  |
| COUNTRY | varchar(100) | YES |  |  |  |
| PHONE1 | varchar(100) | YES |  |  |  |
| PHONE2 | varchar(100) | YES |  |  |  |

## `externalwebdata`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| site | varchar(100) | NO |  |  |  |
| datelog | bigint | NO |  | 0 |  |
| partnumber | varchar(250) | NO |  |  |  |
| qty | int | NO |  |  |  |
| price | varchar(56) | NO |  |  |  |
| stock_ref | varchar(120) | NO |  |  |  |
| daydate | varchar(12) | NO |  |  |  |

## `feedbacksurveymonkey`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(64) | NO |  |  |  |
| questionid | int | NO |  |  |  |
| questiontext | varchar(200) | NO |  |  |  |
| answer | varchar(200) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| ignore_baddata | tinyint | NO |  |  |  |

## `global_companys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| name | varchar(64) | NO |  |  |  |
| fullname | varchar(64) | NO |  |  |  |
| add1 | varchar(64) | NO |  |  |  |
| add2 | varchar(64) | NO |  |  |  |
| add3 | varchar(64) | NO |  |  |  |
| add4 | varchar(64) | NO |  |  |  |
| postcode | varchar(64) | NO |  |  |  |
| country | varchar(128) | NO |  |  |  |
| tel | varchar(64) | NO |  |  |  |
| fax | varchar(64) | NO |  |  |  |
| email | varchar(64) | NO |  |  |  |
| stockcountdate | bigint | NO |  | 0 |  |
| operadocs | varchar(250) | NO |  |  |  |
| isodocs | varchar(250) | NO |  |  |  |
| isodocthumbs | varchar(250) | NO |  |  |  |
| privacymode | int | NO |  |  |  |
| docidlogo | int | NO |  |  |  |
| website | varchar(250) | NO |  |  |  |
| commrate | float(10,2) | NO |  |  |  |
| shippcharge | float(10,2) | NO |  |  |  |
| fixedcharge | float(10,2) | NO |  |  |  |
| vatrate | float(10,2) | NO |  |  |  |
| debtorsdone | int | NO |  |  |  |
| vatcode | varchar(16) | NO |  |  |  |
| bankaccountnumber | varchar(24) | NO |  |  |  |
| active | int | NO |  |  |  |
| termsandconditionslocation | varchar(200) | NO |  |  |  |
| bankname | varchar(64) | NO |  |  |  |
| banksortcode | varchar(12) | NO |  |  |  |
| bankaccount | varchar(24) | NO |  |  |  |
| bankiban | varchar(64) | NO |  |  |  |
| bankbic | varchar(32) | NO |  |  |  |
| templatecode | varchar(16) | NO |  |  |  |
| prefix | varchar(4) | NO |  |  |  |
| sendinvoicefromemail | varchar(100) | NO |  |  |  |
| companyregistrationnumber | varchar(128) | NO |  |  |  |
| accountsemail | varchar(128) | NO |  |  |  |
| accountsnameforinvoiceemail | varchar(64) | NO |  |  |  |
| feedbacklink | varchar(128) | NO |  |  |  |
| eori | varchar(36) | NO |  |  |  |
| insurancetrigger | int | NO |  |  |  |
| UTR | varchar(20) | NO |  |  |  |
| website_files | varchar(250) | NO |  |  |  |
| govgatewayid | varchar(16) | NO |  |  |  |
| govgatewaypw | varchar(32) | NO |  |  |  |
| gmaillogin | varchar(128) | NO |  |  |  |
| gmailcode_encrypted | varbinary(255) | YES |  |  |  |

## `global_companys_bankaccounts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| companyid | int | NO |  |  |  |
| currency | varchar(12) | NO |  |  |  |
| bankname | varchar(48) | NO |  |  |  |
| banksortcode | varchar(12) | NO |  |  |  |
| bankaccount | varchar(24) | NO |  |  |  |
| bankiban | varchar(64) | NO |  |  |  |
| bankbic | varchar(64) | NO |  |  |  |
| pricelist | varchar(8) | NO |  |  |  |
| bankcurrsymbol | varchar(12) | NO |  |  |  |
| PDFsymbol | varchar(8) | NO |  |  |  |
| termstext | longtext | NO |  |  |  |
| proformaterms | longtext | NO |  |  |  |
| currency_id | int | NO |  |  |  |
| shopifyaccount | int | NO |  |  |  |
| insurancerules | longtext | NO |  |  |  |
| insurancerisk | float(10,2) | NO |  |  |  |
| insurancepercent | float(10,2) | NO |  |  |  |

## `global_companys_buildings`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(75) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `global_companys_buildings_rooms`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| building_id | int | NO |  |  |  |
| hostcompany_id | int | NO |  |  |  |
| description | varchar(75) | NO |  |  |  |

## `global_companys_currencys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| currency | varchar(24) | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |

## `global_companys_decision_rules`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| filter | varchar(32) | NO |  |  |  |
| pulldowntext | varchar(128) | NO |  |  |  |
| issue_agenda_id | int | NO |  |  |  |
| user_instructions | longtext | NO |  |  |  |
| issue_subject | varchar(128) | NO |  |  |  |
| issue_prenotes | longtext | NO |  |  |  |
| sendissue | tinyint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| active | tinyint | NO |  |  |  |
| isenabled | tinyint | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  |  |  |

## `global_companys_departments`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(48) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |

## `gmail_link`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| key1 | varchar(32) | NO |  |  |  |
| key_number | int | NO |  | 0 |  |
| status | varchar(32) | NO |  | 0 |  |
| gmail_account | varchar(100) | NO |  | 0 |  |
| date_sent | int | NO |  | 0 |  |
| sentfrom | varchar(100) | NO |  | 0 |  |
| sentto | varchar(100) | NO |  | 0 |  |
| subject | varchar(128) | NO |  | 0 |  |
| message | longtext | NO |  |  |  |

## `goldmine_contacts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ACCOUNTNO | varchar(128) | NO |  |  |  |
| ACTIONON | varchar(128) | NO |  |  |  |
| ADDRESS1 | varchar(128) | NO |  |  |  |
| ADDRESS2 | varchar(128) | NO |  |  |  |
| ADDRESS3 | varchar(128) | NO |  |  |  |
| CALLBACKAT | varchar(128) | NO |  |  |  |
| CALLBACKON | varchar(128) | NO |  |  |  |
| CALLBKFREQ | varchar(128) | NO |  |  |  |
| CITY | varchar(128) | NO |  |  |  |
| CLOSEDATE | varchar(128) | NO |  |  |  |
| COMMENTS | varchar(128) | NO |  |  |  |
| COMPANY | varchar(128) | NO |  |  |  |
| CONTACT | varchar(128) | NO |  |  |  |
| COUNTRY | varchar(128) | NO |  |  |  |
| CREATEAT | varchar(128) | NO |  |  |  |
| CREATEBY | varchar(128) | NO |  |  |  |
| CREATEON | varchar(128) | NO |  |  |  |
| DEAR | varchar(128) | NO |  |  |  |
| DEPARTMENT | varchar(128) | NO |  |  |  |
| EMailAddress | varchar(128) | NO |  |  |  |
| EXT1 | varchar(128) | NO |  |  |  |
| EXT2 | varchar(128) | NO |  |  |  |
| EXT3 | varchar(128) | NO |  |  |  |
| EXT4 | varchar(128) | NO |  |  |  |
| FAX | varchar(128) | NO |  |  |  |
| KEY1 | varchar(128) | NO |  |  |  |
| KEY2 | varchar(128) | NO |  |  |  |
| KEY3 | varchar(128) | NO |  |  |  |
| KEY4 | varchar(128) | NO |  |  |  |
| KEY5 | varchar(128) | NO |  |  |  |
| LASTATMPAT | varchar(128) | NO |  |  |  |
| LASTATMPON | varchar(128) | NO |  |  |  |
| LASTCONTAT | varchar(128) | NO |  |  |  |
| LASTCONTON | varchar(128) | NO |  |  |  |
| LASTDATE | varchar(128) | NO |  |  |  |
| LASTNAME | varchar(128) | NO |  |  |  |
| LASTTIME | varchar(128) | NO |  |  |  |
| LASTUSER | varchar(128) | NO |  |  |  |
| MEETDATEON | varchar(128) | NO |  |  |  |
| MEETTIMEAT | varchar(128) | NO |  |  |  |
| MERGECODES | varchar(128) | NO |  |  |  |
| NEXTACTION | varchar(128) | NO |  |  |  |
| NOTES | varchar(128) | NO |  |  |  |
| OWNER | varchar(128) | NO |  |  |  |
| PHONE1 | varchar(128) | NO |  |  |  |
| PHONE2 | varchar(128) | NO |  |  |  |
| PHONE3 | varchar(128) | NO |  |  |  |
| PREVRESULT | varchar(128) | NO |  |  |  |
| RECID | varchar(128) | NO |  |  |  |
| SECR | varchar(128) | NO |  |  |  |
| SOURCE | varchar(128) | NO |  |  |  |
| STATE | varchar(128) | NO |  |  |  |
| STATUS | varchar(128) | NO |  |  |  |
| TITLE | varchar(128) | NO |  |  |  |
| UALLOWEMAI | varchar(128) | NO |  |  |  |
| UALLOWFAX | varchar(128) | NO |  |  |  |
| UALLOWPHON | varchar(128) | NO |  |  |  |
| UALLOWPOST | varchar(128) | NO |  |  |  |
| UALLOWVISI | varchar(128) | NO |  |  |  |
| UCALENDER | varchar(128) | NO |  |  |  |
| UCOMMETHOD | varchar(128) | NO |  |  |  |
| UDATACALAN | varchar(128) | NO |  |  |  |
| UDATAMAILS | varchar(128) | NO |  |  |  |
| UEMGSRV | varchar(255) | NO |  |  |  |
| UFIRSTCONT | varchar(128) | NO |  |  |  |
| UFIRTS_CON | varchar(128) | NO |  |  |  |
| UJOURNYPLA | varchar(128) | NO |  |  |  |
| UJURNCODE | varchar(128) | NO |  |  |  |
| ULIQCUR | varchar(128) | NO |  |  |  |
| ULIQIP | varchar(128) | NO |  |  |  |
| ULIQMUG | varchar(128) | NO |  |  |  |
| ULIQNICK | varchar(128) | NO |  |  |  |
| ULIQNOTE | varchar(128) | NO |  |  |  |
| ULIQPAY | varchar(128) | NO |  |  |  |
| ULIQTYPE | varchar(128) | NO |  |  |  |
| UMAILCODE | varchar(128) | NO |  |  |  |
| UMAILDEPT | varchar(128) | NO |  |  |  |
| UMAILINGLI | varchar(128) | NO |  |  |  |
| UMAILPOS | varchar(128) | NO |  |  |  |
| UMERGE2REC | varchar(128) | NO |  |  |  |
| UNEWPROD | varchar(128) | NO |  |  |  |
| UNHS_HA | varchar(128) | NO |  |  |  |
| UNHSAMB | varchar(128) | NO |  |  |  |
| UNHSPRIM | varchar(128) | NO |  |  |  |
| UNHSREGION | varchar(128) | NO |  |  |  |
| UNHSTRUSTS | varchar(128) | NO |  |  |  |
| UNOTES_MED | varchar(128) | NO |  |  |  |
| UOLDREGION | varchar(128) | NO |  |  |  |
| UPOSITION | varchar(128) | NO |  |  |  |
| UPRIVHOSP | varchar(128) | NO |  |  |  |
| UREGION | varchar(128) | NO |  |  |  |
| URESUS | varchar(128) | NO |  |  |  |
| USERDEF01 | varchar(128) | NO |  |  |  |
| USERDEF02 | varchar(128) | NO |  |  |  |
| USERDEF03 | varchar(128) | NO |  |  |  |
| USERDEF04 | varchar(128) | NO |  |  |  |
| USERDEF05 | varchar(128) | NO |  |  |  |
| USERDEF06 | varchar(128) | NO |  |  |  |
| USERDEF07 | varchar(128) | NO |  |  |  |
| USERDEF08 | varchar(128) | NO |  |  |  |
| USERDEF09 | varchar(128) | NO |  |  |  |
| USERDEF10 | varchar(128) | NO |  |  |  |
| WebSite | varchar(128) | NO |  |  |  |
| ZIP | varchar(128) | NO |  |  |  |
| sugarcrmid | varchar(255) | NO |  |  |  |

## `goldmine_contgrps`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| USERID | varchar(15) | NO |  |  |  |
| CODE | varchar(8) | NO |  |  |  |
| ACCOUNTNO | varchar(20) | NO |  |  |  |
| REF | varchar(24) | NO |  |  |  |
| RECID | varchar(15) | NO |  |  |  |

## `goldmine_lookup`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| FIELDNAME | varchar(24) | NO |  |  |  |
| LOOKUPSUPP | varchar(24) | NO |  |  |  |
| ENTRY | varchar(200) | NO |  |  |  |
| RECID | varchar(64) | NO |  |  |  |

## `hnhukhosp`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Name | varchar(255) | YES |  |  |  |
| Address_1 | varchar(255) | YES |  |  |  |
| Address_2 | varchar(255) | YES |  |  |  |
| Address_3 | varchar(255) | YES |  |  |  |
| Address_4 | varchar(255) | YES |  |  |  |
| Address_5 | varchar(255) | YES |  |  |  |
| City | varchar(255) | YES |  |  |  |
| Postcode | varchar(255) | YES |  |  |  |
| REGION | varchar(255) | YES |  |  |  |
| Account_Contact | varchar(255) | YES |  |  |  |
| Sales_person | varchar(255) | YES |  |  |  |
| opera_account | varchar(12) | NO |  |  |  |
| id | varchar(4) | NO |  |  |  |

## `hol_tempdata`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| adminuserid | int | NO |  |  |  |
| adminref | bigint | NO |  |  |  |
| userid | int | NO |  |  |  |
| datetimetobook | bigint | NO |  |  |  |
| secondstobook | int | NO |  |  |  |
| typebooking | varchar(64) | NO |  |  |  |
| effectionholiday | int | NO |  |  |  |
| status | int | NO |  |  |  |
| fullday | bigint | NO |  |  |  |
| timetype | int | NO |  |  |  |
| halfam | int | NO |  |  |  |
| halfpm | int | NO |  |  |  |

## `holvmemphollog_new`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| adminuserid | int | NO |  |  |  |
| adminref | bigint | NO |  |  |  |
| userid | int | NO |  |  |  |
| datetimetobook | bigint | NO |  |  |  |
| secondstobook | int | NO |  |  |  |
| typebooking | varchar(64) | NO |  |  |  |
| effectonholiday | int | NO |  |  |  |
| status | int | NO |  |  |  |
| fullday | int | NO |  |  |  |
| authorisedstate | varchar(32) | NO |  |  |  |
| authorisedby | int | NO |  |  |  |
| authorisedon | bigint | NO |  |  |  |
| oldid | int | NO |  |  |  |
| holyear | int | NO |  |  |  |
| userinformed | bigint | NO |  |  |  |
| monthpaid | bigint | NO |  |  |  |
| monthpaidby | int | NO |  |  |  |
| ampm | varchar(3) | NO |  |  |  |

## `hwz_postcodes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| outcode | varchar(5) | NO | PRI |  |  |
| x | int | NO | MUL | 0 |  |
| y | int | NO |  | 0 |  |
| latitude | int | NO |  | 0 |  |
| longitude | int | NO |  | 0 |  |
| country | varchar(4) | NO |  |  |  |

## `intrastat_access`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| userid | int | NO |  | 0 |  |
| menuid | int | NO |  | 0 |  |
| allowed | char(1) | NO |  |  |  |
| date | varchar(100) | NO |  |  |  |
| fav | int | NO |  |  |  |
| headerid | int | NO |  |  |  |

## `intrastat_access_failed`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| name | varchar(128) | NO |  |  |  |
| passentered | varchar(34) | NO |  |  |  |
| ip | varchar(22) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| reviewed | tinyint | NO |  |  |  |
| reviewedby | int | NO |  |  |  |

## `intrastat_daily`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| rundate | bigint | NO |  |  |  |
| runby | int | NO |  |  |  |
| runfinished | int | NO |  |  |  |
| log | longtext | YES |  |  |  |
| datecode | varchar(8) | YES |  |  |  |
| issuedatecode | varchar(12) | YES |  |  |  |

## `intrastat_page_data_reviewed`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| reviewedon | int | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| pageid | int | NO |  |  |  |

## `intrastatmenu`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| mph | char(1) | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| idcat | int | NO |  | 0 |  |
| idsubcat | int | NO |  | 0 |  |
| catagory | varchar(100) | NO |  |  |  |
| sub_catagory | varchar(100) | NO |  |  |  |
| description | varchar(100) | NO |  |  |  |
| location | varchar(100) | NO |  |  |  |
| newpage | char(1) | NO |  |  |  |
| Alt_text | varchar(100) | NO |  |  |  |
| image | varchar(100) | NO |  |  |  |
| p | varchar(100) | NO |  |  |  |
| link | varchar(150) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| sub_sub_catagory | varchar(64) | NO |  |  |  |
| archived | int | NO |  |  |  |
| hitcount | int | NO |  |  |  |
| weekcount | int | NO |  |  |  |
| monthcount | int | NO |  |  |  |
| yearcount | int | NO |  |  |  |
| lastaction | bigint | NO |  | 0 |  |
| docid | int | NO |  |  |  |
| sensative | int | NO |  |  |  |
| atlascatagory | varchar(128) | YES |  |  |  |
| atlassubcatagory | varchar(128) | NO |  |  |  |
| atlasactive | tinyint | NO |  |  |  |
| atlasdescription | varchar(128) | NO |  |  |  |
| atlassub2catagory | varchar(128) | NO |  |  |  |

## `intrastatmenu_InterestedPartys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| interestedparty | int | NO |  |  |  |
| menuid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `intrastatmenu_header`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| docid | int | NO |  |  |  |

## `intrastats_bugs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| route | longtext | NO |  |  |  |
| location | longtext | NO |  |  |  |
| arguments | longtext | NO |  |  |  |
| issue | longtext | NO |  |  |  |
| createdon | bigint | NO |  | 0 |  |
| createdby | varchar(64) | NO |  |  |  |
| duplicatefaultid | int | NO |  |  |  |
| status | varchar(5) | NO |  |  |  |
| pageid | int | NO |  |  |  |

## `intrastats_faq`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mainsection | int | NO |  |  |  |
| subsection | int | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |
| answer | longtext | NO |  |  |  |
| docid | int | NO |  |  |  |
| processid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| status | int | NO |  |  |  |

## `intrastats_field_updates`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| data_table | varchar(250) | NO |  |  |  |
| data_field | varchar(250) | NO |  |  |  |
| oldanswer | varchar(250) | NO |  |  |  |
| newanswer | varchar(250) | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| updatedby | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| bankid | int | NO |  |  |  |

## `intrastats_table_fields`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| tablename | varchar(200) | NO |  |  |  |
| fieldname | varchar(200) | NO |  |  |  |
| fieldtype | varchar(200) | NO |  |  |  |
| fieldmemo | longtext | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| stockref | int | NO |  |  |  |
| reviewedon | bigint | NO |  |  |  |

## `intrastats_validation_ignore`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| reference | varchar(24) | NO |  |  |  |
| addedby | bigint | NO |  | 0 |  |
| addedon | int | NO |  |  |  |

## `intrastatsmenu_trained`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| employeeid | int | NO |  |  |  |
| menuid | int | NO |  |  |  |
| signedoffon | bigint | NO |  | 0 |  |
| signedoffby | int | NO |  |  |  |
| requestedon | bigint | NO |  | 0 |  |

## `invoices`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Account | varchar(16) | NO |  |  |  |
| Date | varchar(12) | NO |  | 0000-00-00 |  |
| Reference | varchar(24) | NO |  |  |  |
| Customer_r | varchar(10) | NO |  |  |  |
| Type | varchar(10) | NO |  |  |  |
| Value | float(9,2) | NO |  | 0.00 |  |
| Vat_Value | float(9,2) | NO |  | 0.00 |  |
| Paid_Indic | varchar(10) | NO |  |  |  |
| Paid_Flag | varchar(8) | NO |  |  |  |
| F_Currency | char(3) | NO |  |  |  |
| F_Exch_Ra | float(7,6) | NO |  | 0.000000 |  |
| F_Decimal_ | float | NO |  | 0 |  |
| Foreign_VA | varchar(12) | NO |  |  |  |
| Sales_regi | char(3) | NO |  |  |  |
| Sales_Terr | char(3) | NO |  |  |  |
| Sales_type | char(3) | NO |  |  |  |
| Account1 | varchar(8) | NO |  |  |  |
| Name | varchar(30) | NO |  |  |  |
| Cust_analy | varchar(6) | NO |  |  |  |
| Customers_ | varchar(40) | NO |  |  |  |
| Customers1 | varchar(40) | NO |  |  |  |
| universaltime | bigint | NO |  | 0 |  |
| year | int | NO |  |  |  |
| iredata | varchar(5) | NO |  |  |  |
| x | varchar(1) | NO |  |  |  |
| company | varchar(13) | NO |  |  |  |
| forceremoveon | bigint | NO |  |  |  |
| forceremoveby | int | NO |  |  |  |
| orderid | int | NO |  |  |  |
| deliveryid | int | NO |  |  |  |
| matchid | bigint | NO |  | 0 |  |
| dlfield | bigint | NO |  | 0 |  |
| hostcompanyid | int | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |

## `invoices_directtouser`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| INVOICE | varchar(16) | NO |  |  |  |
| User | varchar(32) | NO |  |  |  |
| Authorisedby | varchar(32) | NO |  |  |  |
| Authoriesdon | bigint | NO |  | 0 |  |

## `ipaccess`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ip | varchar(100) | NO |  |  |  |
| time | bigint | NO |  |  |  |
| location | varchar(100) | NO |  |  |  |
| user | varchar(100) | NO |  |  |  |
| timetorender | int | NO |  |  |  |

## `ipaccess2`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ip | varchar(24) | NO |  |  |  |
| ipon | bigint | NO |  | 0 |  |

## `ipaccess3`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ip | varchar(100) | NO |  |  |  |
| time | bigint | NO |  |  |  |
| location | varchar(100) | NO |  |  |  |
| user | varchar(100) | NO |  |  |  |

## `ipaccess4`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ip | varchar(100) | NO |  |  |  |
| time | bigint | NO |  | 0 |  |
| location | varchar(100) | NO |  |  |  |
| user | varchar(100) | NO |  |  |  |
| timetorender | int | NO |  |  |  |

## `ipaccess5`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ip | varchar(100) | NO |  |  |  |
| time | bigint | NO |  |  |  |
| location | varchar(100) | NO |  |  |  |
| user | varchar(100) | NO |  |  |  |
| timetorender | int | NO |  |  |  |

## `iso_file_groups`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| groupid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| sectionid | int | NO |  |  |  |

## `iso_file_groups_names`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| group_name | varchar(128) | NO |  |  |  |
| addedby | varchar(64) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| hostcompanyid | int | NO |  |  |  |
| active | int | NO |  |  |  |
| downloadname | varchar(128) | NO |  |  |  |

## `iso_qc21`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| issuenumber | varchar(7) | NO |  |  |  |
| type | varchar(100) | NO |  |  |  |
| iso_mdd_clause | varchar(100) | NO |  |  |  |
| responsibleby | varchar(30) | NO |  |  |  |
| status | varchar(10) | NO |  |  |  |
| department | varchar(40) | NO |  |  |  |
| stock_ref | varchar(10) | NO |  |  |  |
| description | varchar(40) | NO |  |  |  |
| quantity | varchar(10) | NO |  |  |  |
| porref | varchar(10) | NO |  |  |  |
| serialbatchdate | varchar(100) | NO |  |  |  |
| supplier_stkref | varchar(10) | NO |  |  |  |
| supplier_account | varchar(10) | NO |  |  |  |
| cop | varchar(20) | NO |  |  |  |
| datecreated | varchar(100) | NO |  |  |  |
| createdby | varchar(30) | NO |  |  |  |
| non_conf_dropdown | varchar(100) | NO |  |  |  |
| non_conf_notes | longtext | NO |  |  |  |
| initial_investigation_notes | longtext | NO |  |  |  |
| initial_investigation_date | varchar(100) | NO |  |  |  |
| initial_investigation_by | varchar(30) | NO |  |  |  |
| corrective_action_notes | longtext | NO |  |  |  |
| corrective_action_date | varchar(100) | NO |  |  |  |
| corrective_action_by | varchar(30) | NO |  |  |  |
| preventive_action_notes | longtext | NO |  |  |  |
| preventive_action_date | varchar(100) | NO |  |  |  |
| preventive_action_by | varchar(30) | NO |  |  |  |
| completed | char(3) | NO |  |  |  |

## `jsl_database`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| STOCK_REFE | varchar(16) | NO |  |  |  |
| DESCRIPTIO | varchar(75) | NO |  |  |  |
| MANUFACTUR | varchar(20) | NO |  |  |  |
| SUPPLIER | varchar(20) | NO |  |  |  |
| COST | varchar(10) | NO |  |  |  |
| COMMENTS | varchar(35) | NO |  |  |  |
| FARNEL | varchar(10) | NO |  |  |  |
| RS | varchar(10) | NO |  |  |  |
| MANUFACTU2 | varchar(25) | NO |  |  |  |
| GROUP | varchar(20) | NO |  |  |  |
| S | varchar(2) | NO |  |  |  |
| PRODUCT | varchar(20) | NO |  |  |  |
| OPERACODE | varchar(7) | NO |  |  |  |
| BAR_CODE | varchar(10) | NO |  |  |  |
| x | varchar(2) | NO |  |  |  |
| Room | varchar(35) | NO |  |  |  |
| SEARCH_REFE | varchar(16) | NO |  |  |  |
| SEARCH_RE1 | varchar(16) | NO |  |  |  |
| ANALYSIS_C | varchar(8) | NO |  |  |  |
| SUPERSEDED | varchar(16) | NO |  |  |  |
| Nos | varchar(10) | NO |  |  |  |
| Count | varchar(10) | NO |  |  |  |
| In Opera | varchar(3) | NO |  |  |  |
| Shelf | varchar(30) | NO |  |  |  |
| Separator | varchar(30) | NO |  |  |  |

## `library`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| shortdescription | varchar(100) | NO |  |  |  |
| longdescription | varchar(100) | NO |  |  |  |
| file | varchar(100) | NO |  |  |  |
| public | varchar(100) | NO |  |  |  |
| web | varchar(100) | NO |  |  |  |
| remotesync | varchar(100) | NO |  |  |  |
| autoentry | varchar(100) | NO |  |  |  |
| folder | varchar(100) | NO |  |  |  |

## `messages`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int unsigned | NO | PRI |  | auto_increment |
| from | varchar(255) | NO |  |  |  |
| to | varchar(255) | NO |  |  |  |
| subject | varchar(255) | NO |  |  |  |
| date | varchar(255) | NO |  |  |  |
| message | text | NO |  |  |  |
| received_ip | varchar(15) | NO |  |  |  |

## `mysqli`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Stock_ref | varchar(12) | NO |  |  |  |
| Invoicenumber | varchar(12) | NO |  |  |  |
| notes | varchar(255) | NO |  |  |  |

## `nom`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ACCOUNT | varchar(255) | YES |  |  |  |
| COSTCENT | varchar(32) | NO |  |  |  |
| TYPE | varchar(255) | YES |  |  |  |
| SUBTYPE | varchar(255) | YES |  |  |  |
| JOURNAL_NU | int | YES |  |  |  |
| REFERENCE | varchar(255) | YES |  |  |  |
| TRANS_TYPE | varchar(255) | YES |  |  |  |
| TRANS__REF | varchar(255) | YES |  |  |  |
| ENTRY_DATE | datetime | YES |  |  |  |
| VALUE | double | YES |  |  |  |
| YEAR | int | YES |  |  |  |
| PERIOD | int | YES |  |  |  |
| CURRENCY | varchar(255) | YES |  |  |  |
| FOREIGN_VA | varchar(255) | YES |  |  |  |
| EXCHANGE_R | double | YES |  |  |  |
| SOURCECO | varchar(32) | NO |  |  |  |
| ITEM_DESCR | varchar(255) | YES |  |  |  |
| ID | int | NO | PRI |  | auto_increment |
| universaltime | bigint | NO |  | 0 |  |

## `nom_cashbook_headers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| header | varchar(200) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `nom_cashbook_nom_account`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| cashheader | int | NO |  |  |  |
| nomaccount | varchar(12) | NO |  |  |  |

## `nom_notes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| nomID | int | NO |  |  |  |
| checksum | varchar(12) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| notes | longtext | NO |  |  |  |
| originalac | varchar(12) | NO |  |  |  |

## `nom_py`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ACCOUNT | varchar(255) | YES |  |  |  |
| COSTCENT | varchar(32) | NO |  |  |  |
| TYPE | varchar(255) | YES |  |  |  |
| SUBTYPE | varchar(255) | YES |  |  |  |
| JOURNAL_NU | int | YES |  |  |  |
| REFERENCE | varchar(255) | YES |  |  |  |
| TRANS_TYPE | varchar(255) | YES |  |  |  |
| TRANS__REF | varchar(255) | YES |  |  |  |
| ENTRY_DATE | datetime | YES |  |  |  |
| VALUE | double | YES |  |  |  |
| YEAR | int | YES |  |  |  |
| PERIOD | int | YES |  |  |  |
| CURRENCY | varchar(255) | YES |  |  |  |
| FOREIGN_VA | varchar(255) | YES |  |  |  |
| EXCHANGE_R | double | YES |  |  |  |
| SOURCECO | varchar(32) | NO |  |  |  |
| ITEM_DESCR | varchar(255) | YES |  |  |  |
| ID | int | NO | PRI |  | auto_increment |
| universaltime | bigint | NO |  | 0 |  |

## `nom_vat_return`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| nom_account | varchar(8) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |

## `oemcomp`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| VMSTOCKREF | varchar(16) | YES |  |  |  |
| VMSTOCKMODEL | varchar(40) | YES |  |  |  |
| VMDESCRIPTION | varchar(255) | YES |  |  |  |
| OEMSTOCKREF | varchar(16) | YES |  |  |  |
| OEMSTOCKMODEL | varchar(40) | YES |  |  |  |
| OEMDESCRIPTION | varchar(255) | YES |  |  |  |
| OEMCOMPANY | varchar(40) | YES |  |  |  |
| OEMMANUFACTURER | varchar(40) | YES |  |  |  |
| USERNAME | varchar(16) | YES |  |  |  |
| DATECONFIRMED | varchar(32) | YES |  |  |  |
| SOURCE | varchar(20) | YES |  |  |  |
| BENIFIT | varchar(255) | YES |  |  |  |

## `opera_B_IHEAD`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| IH_DOC | text | NO |  |  |  |
| IH_ACCOUNT | text | NO |  |  |  |
| IH_NAME | text | NO |  |  |  |
| IH_ADDR1 | text | NO |  |  |  |
| IH_ADDR2 | text | NO |  |  |  |
| IH_ADDR3 | text | NO |  |  |  |
| IH_ADDR4 | text | NO |  |  |  |
| IH_DATE | text | NO |  |  |  |
| IH_CUSTREF | text | NO |  |  |  |
| IH_DESP | text | NO |  |  |  |
| IH_DELAD1 | text | NO |  |  |  |
| IH_DELAD2 | text | NO |  |  |  |
| IH_DELAD3 | text | NO |  |  |  |
| IH_DELAD4 | text | NO |  |  |  |
| IH_DELAD5 | text | NO |  |  |  |
| IH_DELADPC | text | NO |  |  |  |
| IH_IGNORE | text | NO |  |  |  |
| IH_SDIS1 | float(2,2) | NO |  |  |  |
| IH_SDIS2 | float(2,2) | NO |  |  |  |
| IH_ODISC | float(2,2) | NO |  |  |  |
| IH_NARR1 | text | NO |  |  |  |
| IH_NARR2 | text | NO |  |  |  |
| IH_PRODATE | text | NO |  |  |  |
| IH_QUODATE | text | NO |  |  |  |
| IH_CREDATE | text | NO |  |  |  |
| IH_INVDATE | text | NO |  |  |  |
| IH_DELDATE | text | NO |  |  |  |
| IH_ORDDATE | text | NO |  |  |  |
| IH_PROFORM | text | NO |  |  |  |
| IH_QUOTAT | text | NO |  |  |  |
| IH_INVOICE | text | NO |  |  |  |
| IH_CREDIT | text | NO |  |  |  |
| IH_DELIV | text | NO |  |  |  |
| IH_SORDER | text | NO |  |  |  |
| IH_EXVAT | float(8,2) | NO |  |  |  |
| IH_VAT | float(8,2) | NO |  |  |  |
| IH_SDAYS1 | int | NO |  |  |  |
| IH_SDAYS2 | int | NO |  |  |  |
| IH_SAMNT1 | float(8,2) | NO |  |  |  |
| IH_SAMNT2 | float(8,2) | NO |  |  |  |
| IH_OVERVAL | float(8,2) | NO |  |  |  |
| IH_POSTACC | text | NO |  |  |  |
| IH_LOC | text | NO |  |  |  |
| IH_DOCSTAT | text | NO |  |  |  |
| IH_MEMO | longtext | NO |  |  |  |
| IH_PRIORTY | int | NO |  |  |  |
| IH_REGION | text | NO |  |  |  |
| IH_TERRTRY | text | NO |  |  |  |
| IH_ROUTE | text | NO |  |  |  |
| IH_DUE | text | NO |  |  |  |
| IH_REVQUO | text | NO |  |  |  |
| IH_REVPRO | text | NO |  |  |  |
| IH_REVORD | text | NO |  |  |  |
| IH_REVDEL | text | NO |  |  |  |
| IH_REVINV | text | NO |  |  |  |
| IH_REVCRN | text | NO |  |  |  |
| IH_PRTSTAT | text | NO |  |  |  |
| IH_DCONTR | int | NO |  |  |  |
| IH_SCONTR | text | NO |  |  |  |
| IH_ECONTR | date | NO |  |  |  |
| IH_FCURR | text | NO |  |  |  |
| IH_FCDEC | int | NO |  |  |  |
| IH_FCVAL | text | NO |  |  |  |
| IH_FCRATE | float(8,6) | NO |  |  |  |
| IH_FCVAT | text | NO |  |  |  |
| IH_ADDPC | text | NO |  |  |  |
| IH_DELT | text | NO |  |  |  |
| IH_NTRN | text | NO |  |  |  |
| IH_MTRN | text | NO |  |  |  |
| IH_FCMULT | text | NO |  |  |  |
| IH_EDI | text | NO |  |  |  |
| IH_EDITX | int | NO |  |  |  |
| IH_EDIVN | int | NO |  |  |  |
| SQ_USER | text | NO |  |  |  |
| IH_RAISED | text | NO |  |  |  |
| IH_ANALSYS | text | NO |  |  |  |
| IH_EBRIDGE | text | NO |  |  |  |
| IH_EMAIL | text | NO |  |  |  |
| IH_TELENO | text | NO |  |  |  |
| IH_CCARD | text | NO |  |  |  |
| IH_EXPIRY | text | NO |  |  |  |
| IH_CAUTH | text | NO |  |  |  |
| IH_CNAME | text | NO |  |  |  |
| IH_FRCUSTR | text | NO |  |  |  |
| IH_TAXPOIN | text | NO |  |  |  |
| intrastats | int | NO |  |  |  |

## `opera_B_ITRAN`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| IT_DOC | varchar(10) | NO |  |  |  |
| IT_STOCK | varchar(16) | NO |  |  |  |
| IT_DESC | varchar(40) | NO |  |  |  |
| IT_ANAL | varchar(8) | NO |  |  |  |
| IT_QUAN | float(10,2) | NO |  |  |  |
| IT_PRICE | int | NO |  |  |  |
| IT_DISC | float(5,2) | NO |  |  |  |
| IT_VAT | varchar(1) | NO |  |  |  |
| IT_LINEVAL | int | NO |  |  |  |
| IT_SDISC | varchar(5) | NO |  |  |  |
| IT_ODISC | varchar(5) | NO |  |  |  |
| IT_STATUS | varchar(1) | NO |  |  |  |
| IT_DATE | varchar(10) | NO |  |  |  |
| IT_RECNO | int | NO |  |  |  |
| IT_EXVAT | int | NO |  |  |  |
| IT_DISCVAL | int | NO |  |  |  |
| IT_SETT1 | int | NO |  |  |  |
| IT_SETT2 | int | NO |  |  |  |
| IT_OVERALL | int | NO |  |  |  |
| IT_VATVAL | int | NO |  |  |  |
| IT_VATPCT | float(4,2) | NO |  |  |  |
| IT_MEMO | longtext | NO |  |  |  |
| IT_COST | int | NO |  |  |  |
| IT_PRIORTY | int | NO |  |  |  |
| IT_DUE | varchar(10) | NO |  |  |  |
| IT_QTYALLC | int | NO |  |  |  |
| IT_DTEALLC | varchar(10) | NO |  |  |  |
| IT_QTYPICK | int | NO |  |  |  |
| IT_DTEPICK | varchar(10) | NO |  |  |  |
| IT_QTYDELV | int | NO |  |  |  |
| IT_DTEDELV | varchar(10) | NO |  |  |  |
| IT_NUMDELV | varchar(10) | NO |  |  |  |
| IT_QTYINV | int | NO |  |  |  |
| IT_DTEINV | varchar(10) | NO |  |  |  |
| IT_NUMINV | varchar(10) | NO |  |  |  |
| IT_EXDATE | varchar(10) | NO |  |  |  |
| IT_EXREF | varchar(20) | NO |  |  |  |
| IT_FCURR | varchar(3) | NO |  |  |  |
| IT_FCRATE | float(10,2) | NO |  |  |  |
| IT_FCDEC | int | NO |  |  |  |
| IT_MARK | varchar(1) | NO |  |  |  |
| IT_DELT | varchar(3) | NO |  |  |  |
| IT_NTRN | varchar(2) | NO |  |  |  |
| IT_MTRN | varchar(1) | NO |  |  |  |
| IT_COMCODE | varchar(11) | NO |  |  |  |
| IT_SUPUNIT | float(7,3) | NO |  |  |  |
| IT_CNTORIG | varchar(2) | NO |  |  |  |
| IT_NTMASS | float(7,3) | NO |  |  |  |
| IT_VATTYP | varchar(1) | NO |  |  |  |
| IT_FCMULT | varchar(5) | NO |  |  |  |
| IT_JCSTDOC | varchar(10) | NO |  |  |  |
| IT_JPHASE | varchar(3) | NO |  |  |  |
| IT_JCCODE | varchar(16) | NO |  |  |  |
| IT_JLINE | varchar(10) | NO |  |  |  |
| IT_BTCHSER | longtext | NO |  |  |  |
| IT_FROMJC | varchar(5) | NO |  |  |  |
| IT_QTYOVER | int | NO |  |  |  |
| IT_QTYORIG | int | NO |  |  |  |
| IT_MASSUT | varchar(5) | NO |  |  |  |
| IT_CWCODE | varchar(4) | NO |  |  |  |
| IT_BSCOST | float(10,2) | NO |  |  |  |
| IT_WORDER | varchar(5) | NO |  |  |  |
| IT_WOREF | varchar(10) | NO |  |  |  |
| IT_PORDER | varchar(5) | NO |  |  |  |
| IT_POREF | varchar(10) | NO |  |  |  |
| IT_POLINE | int | NO |  |  |  |
| IT_UORDER | varchar(10) | NO |  |  |  |
| IT_ULINE | int | NO |  |  |  |
| IT_PACC | varchar(8) | NO |  |  |  |
| IT_PPROD | varchar(16) | NO |  |  |  |
| IT_PPRICE | int | NO |  |  |  |
| IT_PFCURR | varchar(3) | NO |  |  |  |
| IT_PFCRATE | float(10,6) | NO |  |  |  |
| IT_PDISC | float(9,2) | NO |  |  |  |
| IT_PQTY | int | NO |  |  |  |
| IT_PONOW | varchar(5) | NO |  |  |  |
| IT_POCHG | varchar(5) | NO |  |  |  |
| IT_WOCHG | varchar(5) | NO |  |  |  |
| IT_LINENO | int | NO |  |  |  |
| SQ_AMTIME | varchar(8) | NO |  |  |  |
| SQ_AMDATE | varchar(10) | NO |  |  |  |
| SQ_AMUSER | varchar(10) | NO |  |  |  |
| IT_FUNDEC | int | NO |  |  |  |
| IT_PFUNDEC | int | NO |  |  |  |
| IT_DELAD | varchar(40) | NO |  |  |  |
| IT_DELAD1 | varchar(30) | NO |  |  |  |
| IT_DELAD2 | varchar(30) | NO |  |  |  |
| IT_DELAD3 | varchar(30) | NO |  |  |  |
| IT_DELAD4 | varchar(30) | NO |  |  |  |
| IT_DELADPC | varchar(8) | NO |  |  |  |
| IT_NARR1 | varchar(75) | NO |  |  |  |
| IT_NARR2 | varchar(75) | NO |  |  |  |
| IT_PJCODE | varchar(16) | NO |  |  |  |
| IT_PJLINE | varchar(10) | NO |  |  |  |
| IT_EDIDEXD | varchar(8) | NO |  |  |  |
| IT_EDIDEXT | varchar(8) | NO |  |  |  |
| IT_EDIIEXD | varchar(8) | NO |  |  |  |
| IT_EDIIEXT | varchar(8) | NO |  |  |  |
| IT_EDICEXD | varchar(8) | NO |  |  |  |
| IT_EDICEXT | varchar(8) | NO |  |  |  |
| IT_JCID | varchar(10) | NO |  |  |  |
| IT_EDIIDAT | varchar(10) | NO |  |  |  |
| IT_EDIITIM | varchar(8) | NO |  |  |  |
| intrastats | int | NO |  |  |  |

## `operaaddress`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ID | int | NO | PRI |  | auto_increment |
| Account | varchar(8) | NO |  |  |  |
| Name | varchar(30) | NO |  |  |  |
| Address_l1 | varchar(30) | NO |  |  |  |
| Address_l2 | varchar(30) | NO |  |  |  |
| Address_l3 | varchar(30) | NO |  |  |  |
| Address_l4 | varchar(30) | NO |  |  |  |
| Post_code | varchar(8) | NO |  |  |  |
| Telephone | varchar(20) | NO |  |  |  |
| Fax | varchar(20) | NO |  |  |  |
| Account_Contact | varchar(20) | NO |  |  |  |
| Order_Contact | varchar(20) | NO |  |  |  |
| Region | varchar(35) | NO |  |  |  |
| Territory | varchar(35) | NO |  |  |  |
| Cust_type | varchar(35) | NO |  |  |  |
| Cust_analy | varchar(6) | NO |  |  |  |
| Stat_account | varchar(20) | NO |  |  |  |
| Inv_account | varchar(20) | YES |  |  |  |
| Stop | varchar(3) | NO |  |  |  |
| Desp_method | varchar(35) | NO |  |  |  |
| Vat_number | varchar(15) | NO |  |  |  |
| Customers | varchar(40) | NO |  |  |  |
| Customers1 | varchar(40) | NO |  |  |  |
| Pricelist | varchar(100) | NO |  |  |  |
| opera_memo | longtext | NO |  |  |  |
| GM_region | varchar(8) | NO |  |  |  |
| x | int | NO |  |  |  |
| y | int | NO |  |  |  |
| Creditlimit | int | NO |  |  |  |
| supplyterms | int | NO |  |  |  |
| company | varchar(12) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `operaaddress_extra`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| opera | varchar(8) | NO |  |  |  |
| email_invoices | varchar(100) | NO |  |  |  |
| email_invoices_setby | varchar(48) | NO |  |  |  |
| email_invoices_seton | int | NO |  |  |  |
| email_reminders | varchar(100) | NO |  |  |  |
| email_reminder_setby | varchar(48) | NO |  |  |  |
| email_reminders_seton | int | NO |  |  |  |
| imagefile | varchar(64) | NO |  |  |  |

## `operadoc_pdf`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| operadoc | varchar(20) | NO |  |  |  |
| pdffound | varchar(1) | NO |  |  |  |

## `ordererror`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hideorder | varchar(100) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `ordernumbertrack`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ordernumber | varchar(100) | NO |  |  |  |
| note | longtext | NO |  |  |  |
| checked | varchar(100) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| status2 | varchar(100) | NO |  |  |  |
| checkedby | varchar(100) | NO |  |  |  |
| checkedon | varchar(100) | NO |  |  |  |
| pickedby | varchar(100) | NO |  |  |  |
| orderid | int | NO |  |  |  |
| hideuntil | int | NO |  |  |  |
| i_account | varchar(8) | NO |  |  |  |
| contact_id | int | NO |  |  |  |
| customerref | varchar(64) | NO |  |  |  |
| priority | int | NO |  |  |  |
| stores_contactid | int | NO |  |  |  |
| trackingnumber | varchar(128) | NO |  |  |  |
| mailingid | int | NO |  |  |  |
| shipready | int | NO |  |  |  |
| amendorder | int | NO |  |  |  |
| shipreadyby | varchar(32) | NO |  |  |  |
| shipreadyon | int | NO |  |  |  |
| amendingby | varchar(32) | NO |  |  |  |
| amendingon | bigint | NO |  | 0 |  |
| weightskg | longtext | NO |  |  |  |
| weightlen1 | varchar(12) | NO |  |  |  |
| weightlen2 | varchar(12) | NO |  |  |  |
| weightlen3 | varchar(12) | NO |  |  |  |
| weightmultibox | varchar(5) | NO |  |  |  |
| weightaddedby | int | NO |  |  |  |
| weightaddedon | bigint | NO |  | 0 |  |
| finalaction | varchar(5) | NO |  |  |  |
| overrideactivelist | longtext | NO |  |  |  |
| overidetimer | bigint | NO |  | 0 |  |
| overideby | varchar(32) | NO |  |  |  |
| orderconfirmationsent | int | NO |  |  |  |
| orderconfirmationsentby | int | NO |  |  |  |
| orderconfirmationsenton | bigint | NO |  | 0 |  |
| deliverydateconfirmation | int | NO |  |  |  |
| deliverydateconfirmationsentby | int | NO |  |  |  |
| deliverydateconfirmationsenton | bigint | NO |  | 0 |  |
| proofofdelivery | varchar(3) | NO |  |  |  |
| noproof | varchar(3) | NO |  |  |  |
| carrier | varchar(16) | NO |  |  |  |
| serviceid | int | NO |  |  |  |
| senttype | varchar(12) | NO |  |  |  |
| numberparcels | varchar(120) | NO |  |  |  |
| dateappearedonsystem | int | NO |  |  |  |
| operaenteredby | int | NO |  |  |  |
| holdinvoice | int | NO |  |  |  |
| holdinvoiceby | int | NO |  |  |  |
| leadtimegivenby | int | NO |  |  |  |
| leadtimegivenon | bigint | NO |  | 0 |  |
| partship | int | NO |  |  |  |
| activeliststatus | varchar(25) | NO |  |  |  |
| activelistnotes | longtext | NO |  |  |  |
| deliverynotificationnoemail | int | NO |  |  |  |
| agreedshipdate | int | NO |  |  |  |

## `ordernumbertrack_calloff`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid | varchar(32) | NO |  |  |  |
| operaac | varchar(16) | NO |  |  |  |
| customer_po | varchar(32) | NO |  |  |  |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| maxvalue | float(10,2) | NO |  |  |  |
| enddate | bigint | NO |  | 0 |  |
| perorderspend | float(10,2) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| active | int | NO |  |  |  |

## `ordernumbertrack_errors`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| ordnum | varchar(16) | NO |  |  |  |
| errorwas | varchar(250) | NO |  |  |  |
| titleid | int | NO |  |  |  |
| errorid | int | NO |  |  |  |
| notes1 | longtext | NO |  |  |  |
| notes2 | longtext | NO |  |  |  |
| areaatfault | varchar(32) | NO |  |  |  |
| barcode | int | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| reviewedon | int | NO |  |  |  |
| reviewnotes | longtext | NO |  |  |  |
| employeeid | int | NO |  |  |  |

## `ordernumbertrack_errors_cleanup`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| original_error | varchar(250) | YES |  |  |  |
| cleaned_error | varchar(250) | YES |  |  |  |
| addedby | int | YES |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| reasoncode | varchar(16) | NO |  |  |  |

## `ordernumbertrack_multibox`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ordernumber | varchar(10) | NO |  |  |  |
| boxnumber | int | NO |  |  |  |
| weightkg | varchar(10) | NO |  |  |  |
| weightlen1 | varchar(10) | NO |  |  |  |
| weightlen2 | varchar(10) | NO |  |  |  |
| weightlen3 | varchar(10) | NO |  |  |  |
| addedon | int | NO |  |  |  |
| addedby | int | NO |  |  |  |

## `ordernumbertrack_signedorders`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ordernumber | varchar(64) | NO |  |  |  |
| signedby | int | NO |  |  |  |
| signedon | bigint | NO |  | 0 |  |

## `ordernumbertrack_trackingnumbers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ordernumber | varchar(24) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| trackingnumber | varchar(64) | NO |  |  |  |
| exceptionby | int | NO |  |  |  |
| exceptionon | int | NO |  |  |  |
| customerinformedby | int | NO |  |  |  |
| customerinformedon | int | NO |  |  |  |
| claimedby | int | NO |  |  |  |
| claimedon | int | NO |  |  |  |
| claimacceptedby | int | NO |  |  |  |
| claimacceptedon | int | NO |  |  |  |

## `ordernumbertrack_watchlist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ordernumber | varchar(16) | NO |  |  |  |
| username | varchar(32) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| actioned | bigint | NO |  | 0 |  |

## `ordernumbertrack_whencheckedlist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| userid | int | NO |  |  |  |
| ord | varchar(16) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| uncheckedreason | varchar(100) | NO |  |  |  |

## `overview_values`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO |  |  |  |
| backorders | int | NO |  |  |  |
| bankbalance | int | NO |  |  |  |
| debtors | int | NO |  |  |  |
| creditors | int | NO |  |  |  |
| vandagraphloan | int | NO |  |  |  |
| stock | int | NO |  |  |  |
| turnover | int | NO |  |  |  |
| datestamp | int | NO |  |  |  |

## `oximax`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| serial | varchar(30) | NO |  |  |  |
| model | varchar(30) | NO |  |  |  |
| code0 | varchar(128) | NO |  |  |  |
| answer0 | varchar(128) | NO |  |  |  |
| code1 | varchar(128) | NO |  |  |  |
| answer1 | varchar(50) | NO |  |  |  |
| code2 | varchar(128) | NO |  |  |  |
| answer2 | varchar(128) | NO |  |  |  |
| code3 | varchar(128) | NO |  |  |  |
| answer3 | varchar(128) | NO |  |  |  |
| code4 | varchar(128) | NO |  |  |  |
| answer4 | varchar(128) | NO |  |  |  |
| code5 | varchar(128) | NO |  |  |  |
| answer5 | varchar(128) | NO |  |  |  |
| code6 | varchar(128) | NO |  |  |  |
| answer6 | varchar(50) | NO |  |  |  |
| code7 | varchar(128) | NO |  |  |  |
| answer7 | varchar(128) | NO |  |  |  |
| code8 | varchar(128) | NO |  |  |  |
| answer8 | varchar(50) | NO |  |  |  |
| code9 | varchar(128) | NO |  |  |  |
| answer9 | varchar(128) | NO |  |  |  |

## `pagecount`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ip | varchar(20) | NO |  |  |  |

## `phplisting`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| location | varchar(200) | NO |  |  |  |
| phpfile | varchar(200) | NO |  |  |  |
| dbname | varchar(200) | NO |  |  |  |
| datemodified | bigint | NO |  | 0 |  |
| datecreated | bigint | NO |  | 0 |  |
| hits | int | NO |  |  |  |

## `phplisting_auditlog`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| location | varchar(200) | NO |  |  |  |
| phpfile | varchar(200) | NO |  |  |  |
| dbname | varchar(200) | NO |  |  |  |
| datemodified | bigint | NO |  |  |  |
| datecreated | bigint | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| verification | longtext | NO |  |  |  |
| filecode | varchar(128) | NO |  |  |  |
| newsql | varchar(5) | NO |  |  |  |
| impactofchange | longtext | NO |  |  |  |
| significant | longtext | NO |  |  |  |
| riskassesment | longtext | NO |  |  |  |
| AI_php8 | tinyint | NO |  |  |  |
| AI_Notes | longtext | NO |  |  |  |
| AI_updated | bigint | NO |  |  |  |

## `phplisting_uniquepages`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| location | varchar(255) | NO |  |  |  |
| phpfile | varchar(255) | NO | MUL |  |  |
| datemodified | bigint | NO |  | 0 |  |
| datecreated | bigint | NO |  | 0 |  |
| AI_objectives_md | text | NO |  |  |  |
| is_completed | tinyint(1) | NO |  | 0 |  |
| hits | int | NO |  | 0 |  |

## `phplistinggetquery`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| location | varchar(200) | NO |  |  |  |
| phpfile | varchar(200) | NO |  |  |  |
| dbname | varchar(200) | NO |  |  |  |
| datemodified | bigint | NO |  | 0 |  |
| datecreated | bigint | NO |  | 0 |  |

## `plogger_albums`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| name | varchar(128) | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| description | varchar(255) | NO |  |  |  |
| path | varchar(255) | NO |  |  |  |
| parent_id | int | NO | MUL | 0 |  |
| thumbnail_id | int | NO |  | 0 |  |

## `plogger_collections`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| name | varchar(128) | NO |  |  |  |
| description | varchar(255) | NO |  |  |  |
| path | varchar(255) | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| thumbnail_id | int | NO |  | 0 |  |

## `plogger_comments`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| parent_id | int | NO | MUL | 0 |  |
| author | varchar(64) | NO |  |  |  |
| email | varchar(64) | NO |  |  |  |
| url | varchar(64) | NO |  |  |  |
| date | datetime | NO |  | 0000-00-00 00:00:00 |  |
| comment | longtext | NO |  |  |  |
| ip | varchar(64) | YES |  |  |  |
| approved | tinyint | YES | MUL | 1 |  |

## `plogger_config`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| max_thumbnail_size | int | NO |  | 0 |  |
| max_display_size | int | NO |  | 0 |  |
| thumb_num | int | NO |  | 0 |  |
| admin_username | varchar(64) | NO |  |  |  |
| admin_password | varchar(64) | NO |  |  |  |
| admin_email | varchar(50) | NO |  |  |  |
| date_format | varchar(64) | NO |  |  |  |
| compression | int | NO |  | 0 |  |
| default_sortby | varchar(20) | NO |  |  |  |
| default_sortdir | varchar(5) | NO |  |  |  |
| gallery_name | varchar(255) | NO |  |  |  |
| allow_dl | smallint | NO |  | 0 |  |
| allow_comments | smallint | NO |  | 1 |  |
| allow_print | smallint | NO |  | 1 |  |
| truncate | int | NO |  | 12 |  |
| square_thumbs | tinyint | YES |  | 1 |  |
| feed_num_entries | int | NO |  | 15 |  |
| rss_thumbsize | int | NO |  | 400 |  |
| feed_title | text | NO |  |  |  |
| use_mod_rewrite | tinyint | NO |  | 0 |  |
| comments_notify | tinyint | NO |  | 1 |  |
| feed_language | varchar(255) | NO |  | en-us |  |

## `plogger_pictures`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| path | varchar(255) | NO |  |  |  |
| parent_album | int | NO | MUL | 0 |  |
| parent_collection | int | NO | MUL | 0 |  |
| caption | mediumtext | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| date_modified | timestamp | NO |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| date_submitted | timestamp | NO |  | 0000-00-00 00:00:00 |  |
| EXIF_date_taken | varchar(64) | NO |  |  |  |
| EXIF_camera | varchar(64) | NO |  |  |  |
| EXIF_shutterspeed | varchar(64) | NO |  |  |  |
| EXIF_focallength | varchar(64) | NO |  |  |  |
| EXIF_flash | varchar(64) | NO |  |  |  |
| EXIF_aperture | varchar(64) | NO |  |  |  |
| allow_comments | int | NO |  | 1 |  |

## `postcode`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| PostCode | varchar(12) | YES |  |  |  |
| x | varchar(12) | YES |  |  |  |
| y | varchar(12) | YES |  |  |  |
| latitude | varchar(20) | YES |  |  |  |
| longitude | varchar(20) | YES |  |  |  |

## `productinfo`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| company | varchar(20) | NO |  |  |  |
| type | varchar(10) | NO |  |  |  |
| Stock_ref | varchar(40) | NO |  |  |  |
| jpgurl | varchar(180) | NO |  |  |  |
| Description1 | varchar(100) | YES |  |  |  |
| Description2 | varchar(100) | NO |  |  |  |
| Description3 | varchar(100) | NO |  |  |  |
| Description4 | varchar(100) | NO |  |  |  |
| Description5 | varchar(100) | NO |  |  |  |
| Description6 | varchar(100) | NO |  |  |  |
| info | varchar(180) | NO |  |  |  |
| price | varchar(10) | NO |  |  |  |
| web | varchar(10) | NO |  |  |  |
| euro | varchar(50) | NO |  |  |  |
| dollor | varchar(50) | NO |  |  |  |

## `projectnotes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| projectname | varchar(100) | NO |  |  |  |
| notedate | varchar(100) | NO |  |  |  |
| hiddendate | varchar(100) | NO |  |  |  |
| noteby | varchar(100) | NO |  |  |  |
| notesubject | varchar(100) | NO |  |  |  |
| active | varchar(100) | NO |  |  |  |
| notes | longtext | NO |  |  |  |

## `purchaseledger`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Account | varchar(12) | NO |  |  |  |
| Datestamp | varchar(10) | NO |  |  |  |
| Reference | varchar(16) | NO |  |  |  |
| Type | varchar(12) | NO |  |  |  |
| Value | varchar(32) | NO |  |  |  |
| VAT_Value | varchar(32) | NO |  |  |  |
| Paid | varchar(10) | NO |  |  |  |
| Paid_flag | varchar(12) | YES |  |  |  |
| Fcurrency | varchar(5) | NO |  |  |  |
| Fexrate | varchar(12) | NO |  |  |  |
| Fdp | char(2) | NO |  |  |  |
| uniqueid | varchar(12) | NO |  |  |  |
| suppcode | varchar(8) | NO |  |  |  |
| universaltime | varchar(32) | NO |  |  |  |
| datepaid | bigint | NO |  | 0 |  |

## `purchaselines`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Purchase_order | varchar(10) | NO |  |  |  |
| Supply_account | varchar(8) | NO |  |  |  |
| Supply_stockref | varchar(16) | NO |  |  |  |
| Stock_ref | varchar(16) | NO |  |  |  |
| Description | varchar(40) | NO |  |  |  |
| Quantity_required | decimal(10,2) | NO |  | 0.00 |  |
| Quantity_received | decimal(10,2) | NO |  | 0.00 |  |
| Quantity_invoiced | decimal(10,2) | NO |  | 0.00 |  |
| Price | decimal(10,2) | NO |  | 0.00 |  |
| Value | decimal(10,2) | NO |  | 0.00 |  |
| Order_complete | char(3) | NO |  |  |  |
| invoice_complete | char(3) | NO |  |  |  |
| Currency | varchar(6) | NO |  |  |  |
| decimalplaces | decimal(1,0) | NO |  | 0 |  |
| Date_created | varchar(32) | NO |  |  |  |
| companyid | int | NO |  |  |  |

## `purchaselines_invocetopor`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(8) | NO |  |  |  |
| reference2 | varchar(16) | NO |  |  |  |
| line | int | NO |  |  |  |
| reference1 | varchar(24) | NO |  |  |  |
| stk_ref | varchar(24) | NO |  |  |  |
| description | varchar(200) | NO |  |  |  |
| qty | int | NO |  |  |  |
| reference3 | varchar(64) | NO |  |  |  |
| por | varchar(10) | NO |  |  |  |
| d | varchar(32) | NO |  |  |  |

## `purchaselines_invoices`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(8) | NO |  |  |  |
| dateadded | bigint | NO |  | 0 |  |
| reference1 | varchar(64) | NO |  |  |  |
| reference2 | varchar(64) | NO |  |  |  |
| type | varchar(16) | NO |  |  |  |
| value | float | NO |  |  |  |
| qty | int | NO |  |  |  |
| paid_flag | varchar(32) | NO |  |  |  |
| paid_uid | varchar(32) | NO |  |  |  |
| uniqueid | varchar(32) | NO |  |  |  |
| d | varchar(32) | NO |  |  |  |

## `pw`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| username | varchar(30) | NO |  |  |  |
| password | varchar(120) | NO |  |  |  |
| access | longtext | NO |  |  |  |
| salt | varchar(30) | NO |  |  |  |
| goldmine_user | varchar(100) | NO |  |  |  |
| active | varchar(100) | NO |  |  |  |
| security | varchar(100) | NO |  |  |  |
| user_dir | varchar(100) | NO |  |  |  |
| training_review | bigint | NO |  | 0 |  |
| training_review_by | varchar(100) | NO |  |  |  |
| timeclock | varchar(100) | NO |  |  |  |
| usemenu | varchar(100) | NO |  |  |  |
| perhr | varchar(100) | NO |  |  |  |
| perannum | varchar(100) | NO |  |  |  |
| perammunactualcost | varchar(24) | NO |  |  |  |
| workhrweek | varchar(100) | NO |  |  |  |
| ascii | varchar(30) | NO |  |  |  |
| new_timecard | varchar(8) | NO |  |  |  |
| mobileuser | varchar(12) | NO |  |  |  |
| mobilepass | int | NO |  | 0 |  |
| mobilesession | varchar(128) | NO |  |  |  |
| job_title | varchar(64) | NO |  |  |  |
| photoid | varchar(64) | NO |  |  |  |
| locationbarcode | int | NO |  |  |  |
| issuestyle | varchar(16) | NO |  |  |  |
| mcitextarea | int | NO |  |  |  |
| startdate | bigint | NO |  |  |  |
| holidays | int | NO |  |  |  |
| extras | longtext | NO |  |  |  |
| surname | varchar(24) | NO |  |  |  |
| firstname | varchar(24) | NO |  |  |  |
| backgroundfile | varchar(64) | NO |  |  |  |
| gmail | varchar(128) | NO |  |  |  |
| gmailpassword | varchar(32) | NO |  |  |  |
| inworkstatus | varchar(3) | NO |  |  |  |
| emailsig | longtext | NO |  |  |  |
| emailsigvst | longtext | NO |  |  |  |
| servicevisits | varchar(3) | NO |  |  |  |
| extendedtextbox | varchar(3) | NO |  |  |  |
| accesscode | varchar(64) | NO |  |  |  |
| accesskey | varchar(64) | NO |  |  |  |
| gmailme | int | NO |  |  |  |
| birthday | varchar(4) | NO |  |  |  |
| fluff | int | NO |  |  |  |
| birthdaycom | varchar(10) | NO |  |  |  |
| helper | int | NO |  |  |  |
| contractnotes | longtext | NO |  |  |  |
| typeof | varchar(64) | NO |  |  |  |
| daysperweek | int | NO |  |  |  |
| pin | int | NO |  |  |  |
| pinin | bigint | NO |  | 0 |  |
| pinout | bigint | NO |  | 0 |  |
| showtelog | varchar(1) | NO |  |  |  |
| director | varchar(3) | NO |  |  |  |
| gmailsettings | varchar(3) | NO |  |  |  |
| viamedemail | varchar(64) | NO |  |  |  |
| mobileext | int | NO |  |  |  |
| phoneext | int | NO |  |  |  |
| keycard | varchar(64) | NO |  |  |  |
| currentname | varchar(128) | NO |  |  |  |
| issalesrep | int | NO |  |  |  |
| mobilenumber | varchar(24) | NO |  |  |  |
| tclock | int | NO |  |  |  |
| keycarda | varchar(64) | NO |  |  |  |
| keycardb | varchar(64) | NO |  |  |  |
| deskbarcodeid | int | NO |  |  |  |
| phash | varchar(128) | NO |  |  |  |
| easteregg | int | NO |  |  |  |
| eastereggimg | varchar(32) | NO |  |  |  |
| md5username | varchar(128) | NO |  |  |  |
| sec3ure | varchar(16) | NO |  |  |  |
| documentadmin | int | NO |  |  |  |
| dateleft | varchar(16) | NO |  |  |  |
| fasthostemailpass | varchar(16) | NO |  |  |  |
| skypename | varchar(100) | NO |  |  |  |
| skypepw | varchar(100) | NO |  |  |  |
| skypeemail | varchar(100) | NO |  |  |  |
| sessionid | varchar(128) | NO |  |  |  |
| atlasmenucolour | varchar(6) | NO |  |  |  |
| atlasbarcolour | varchar(6) | NO |  |  |  |
| prototypemode | tinyint | NO |  |  |  |
| govhrsperyearholiday | float | NO |  |  |  |
| wildixdataname | varchar(64) | NO |  |  |  |
| contractsignedby | int | NO |  |  |  |
| contractsignedon | bigint | NO |  |  |  |
| directemail | varchar(128) | NO |  |  |  |
| showhideholiday | int | NO |  |  |  |
| nextcloudui | varchar(64) | NO |  |  |  |
| nextcloudpw | varchar(16) | NO |  |  |  |
| privateemail | varchar(100) | NO |  |  |  |
| holidayhourperyear | float(10,2) | NO |  |  |  |
| holidaymemotext | longtext | NO |  |  |  |
| isreal | int | NO |  |  |  |
| sessionpw | char(60) | NO |  |  |  |
| emergencyinformation | longtext | NO |  |  |  |

## `pw_companys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| vui | int | NO |  |  |  |
| company_id | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| adminmode | int | NO |  |  |  |
| useremail | varchar(128) | NO |  |  |  |
| purchaseorder | tinyint | NO |  |  |  |
| commitquote | tinyint | NO |  |  |  |
| passwordemail | varchar(64) | NO |  |  |  |
| updatestock | tinyint | NO |  |  |  |
| updatedocument | tinyint | NO |  |  |  |
| updatestaff | tinyint | NO |  |  |  |
| updatexref | tinyint | NO |  |  |  |
| updatecountryrules | int | NO |  |  |  |
| movestock | tinyint | NO |  |  |  |
| updatexero | tinyint | NO |  |  |  |
| quickpick | tinyint | NO |  |  |  |

## `pw_emailsignitures`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| employeeid | int | NO |  |  |  |
| signiture | longtext | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  |  |  |

## `pw_extras`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| userid | int | NO |  |  |  |
| signature | longtext | NO |  |  |  |
| email | varchar(255) | NO |  |  |  |

## `pw_feedback`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| vui | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |

## `pw_titles`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| title | varchar(128) | NO |  |  |  |
| hse | varchar(5) | NO |  |  |  |
| job | varchar(5) | NO |  |  |  |

## `pw_updated`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  |  |  |
| action | varchar(16) | NO |  |  |  |
| empid | int | NO |  |  |  |

## `qasensor`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ip | varchar(100) | NO |  |  |  |
| n | varchar(24) | NO |  |  |  |

## `qasensor_limits`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stkref | varchar(24) | NO |  |  |  |
| lowlimit | float(10,2) | NO |  |  |  |
| highlimit | float(10,2) | NO |  |  |  |
| setby | int | NO |  |  |  |
| seton | bigint | NO |  | 0 |  |
| usepressure | tinyint(1) | NO |  |  |  |

## `remote_sync`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  |  |
| vui | int | NO |  |  |  |
| tablename | varchar(128) | NO |  |  |  |

## `repair_reviews`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(24) | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| reviewedon | int | NO |  |  |  |

## `requestwarehouse`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| requesting | varchar(120) | NO |  |  |  |
| quantity | varchar(16) | NO |  |  |  |
| name | varchar(30) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| type | varchar(30) | NO |  |  |  |
| date | bigint | NO |  | 0 |  |
| dateremoved | bigint | NO |  | 0 |  |
| urgent | char(1) | NO |  |  |  |
| name2 | varchar(64) | NO |  |  |  |
| priority | int | NO |  | 0 |  |
| costeach | varchar(100) | NO |  |  |  |
| supplierpn | varchar(100) | NO |  |  |  |
| suppliername | varchar(100) | NO |  |  |  |
| worksheet | longtext | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| completedby | int | NO |  |  |  |
| qacleared | bigint | NO |  | 0 |  |
| qaby | int | NO |  |  |  |
| nonurgent | varchar(10) | NO |  |  |  |
| labourallocateby | int | NO |  |  |  |
| labourallocateon | bigint | NO |  | 0 |  |
| dateupdated | bigint | NO |  |  |  |
| dateremovedby | int | NO |  |  |  |
| dateupdatedby | int | NO |  |  |  |

## `reqwarehouse`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Subject | varchar(120) | NO |  |  |  |
| notes | text | YES |  |  |  |
| daterequested | date | YES |  |  |  |
| datecompleted | date | NO |  | 0000-00-00 |  |
| state | varchar(8) | NO |  |  |  |

## `royalmail`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Country | varchar(128) | NO |  |  |  |
| TrackedSigned | int | NO |  |  |  |
| Tracked | int | NO |  |  |  |
| Signed | int | NO |  |  |  |
| ParcelReturns | int | NO |  |  |  |

## `sales_groups`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| groupid | int | NO |  |  |  |
| groupdesc | varchar(100) | NO |  |  |  |
| operaaccount | varchar(100) | NO |  |  |  |
| owner | varchar(32) | NO |  |  |  |
| tag | varchar(12) | NO |  |  |  |
| status | varchar(12) | NO |  |  |  |
| company_id | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |

## `sendaheart`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| sento | int | NO |  |  |  |
| sentby | int | NO |  |  |  |
| senton | bigint | NO |  | 0 |  |
| img | varchar(30) | NO |  |  |  |

## `sensorsearch`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| verified | varchar(30) | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| oemsearch | varchar(100) | NO |  |  |  |
| Stock_ref | varchar(30) | NO |  |  |  |
| oemstockref | varchar(100) | NO |  |  |  |
| oemmodel | varchar(100) | NO |  |  |  |
| oemcompany | varchar(100) | NO |  |  |  |
| publicview | char(3) | NO |  |  |  |

## `serialnumber_answer2_form`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Stock_ref | varchar(16) | NO |  |  |  |
| form | varchar(32) | NO |  |  |  |

## `serialnumber_answerid_oldanswer`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| oldanswer | varchar(100) | NO |  |  |  |
| answerid | int | NO |  |  |  |
| newanswer | varchar(100) | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |

## `serialnumber_answers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | bigint | NO | PRI |  | auto_increment |
| questionid | varchar(100) | NO |  |  |  |
| question_type | varchar(100) | NO |  |  |  |
| stock_ref | varchar(100) | NO |  |  |  |
| barcode | varchar(100) | NO |  |  |  |
| date_created | bigint | NO |  |  |  |
| created_by | varchar(100) | NO |  |  |  |
| answer | longtext | NO |  |  |  |
| pass_fail | varchar(100) | NO |  |  |  |
| srnnumber | varchar(32) | NO |  |  |  |
| certificatenumber | bigint | NO |  | 0 |  |
| ercheck | tinyint | NO |  |  |  |

## `serialnumber_answers_blob`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| answerid | varchar(100) | NO |  |  |  |
| blb | longtext | NO |  |  |  |

## `serialnumber_answers_options`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| questionid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| optiontext | varchar(200) | NO |  |  |  |
| optionvalue | varchar(200) | NO |  |  |  |
| active | tinyint | NO |  |  |  |
| displayorder | int | NO |  |  |  |

## `serialnumber_bulkmerge`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mainid | int | NO |  |  |  |
| mergedid | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| status | int | NO |  |  |  |
| stockref | varchar(128) | NO |  |  |  |

## `serialnumber_endyearcounted`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(100) | NO |  |  |  |
| addedon | int | YES |  |  |  |
| addedby | int | YES |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| barcode | int | NO |  |  |  |
| serialnumber | varchar(64) | NO |  |  |  |
| dateinstock | int | NO |  |  |  |

## `serialnumber_lables`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| tag | varchar(250) | NO |  |  |  |
| shortdesc | varchar(64) | NO |  |  |  |
| longdesc | longtext | NO |  |  |  |
| urlpage | varchar(64) | NO |  |  |  |
| printer | varchar(25) | NO |  |  |  |
| backgroundimg | varchar(32) | NO |  |  |  |
| startx | float | NO |  |  |  |
| starty | float | NO |  |  |  |
| imagesizex | float | NO |  |  |  |
| imagesizey | float | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| totop | int | NO |  |  |  |
| offsetx | float(10,2) | NO |  |  |  |
| offsety | float(10,2) | NO |  |  |  |
| active | int | NO |  |  |  |
| numberacross | int | NO |  |  |  |
| printername | varchar(16) | NO |  |  |  |
| goodoutlabel | int | NO |  |  |  |

## `serialnumber_lables_fields`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| label_id | int | NO |  |  |  |
| dataname | varchar(64) | NO |  |  |  |
| datafield | varchar(64) | NO |  |  |  |
| rotation | int | NO |  |  |  |
| barcode | int | NO |  |  |  |
| positionx | int | NO |  |  |  |
| positiony | int | NO |  |  |  |
| size | int | NO |  |  |  |
| tablename | varchar(250) | NO |  |  |  |
| fieldname | varchar(250) | NO |  |  |  |

## `serialnumber_lables_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| labelid | int | NO |  |  |  |
| fieldname | varchar(200) | NO |  |  |  |
| oldanswer | longtext | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  |  |  |
| extrafieldid | int | NO |  |  |  |

## `serialnumber_movements`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| serialid | varchar(100) | NO |  |  |  |
| oldloc | varchar(100) | NO |  |  |  |
| newloc | varchar(100) | NO |  |  |  |
| movedon | bigint | NO |  | 0 |  |
| movedby | varchar(100) | NO |  |  |  |
| Stock_ref | varchar(100) | NO |  |  |  |

## `serialnumber_questions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| status | varchar(100) | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| question_text | varchar(100) | NO |  |  |  |
| question_type | varchar(100) | NO |  |  |  |
| stock_ref | varchar(100) | NO |  |  |  |
| special_function | varchar(100) | NO |  |  |  |
| added_by | varchar(100) | NO |  |  |  |
| added_on | varchar(100) | NO |  |  |  |
| question_order | int | NO |  |  |  |
| default_answer | longtext | NO |  |  |  |
| questionorder | int | NO |  |  |  |
| summarypages | varchar(1) | NO |  |  |  |
| logchanges | int | NO |  |  |  |
| repeatans | int | NO |  |  |  |
| accesskey | varchar(1) | NO |  |  |  |
| question_text_long | longtext | NO |  |  |  |

## `serialnumber_questions_old`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| status | varchar(100) | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| original_id | int | NO |  |  |  |
| question_text | varchar(100) | NO |  |  |  |
| question_type | varchar(100) | NO |  |  |  |
| stock_ref | varchar(100) | NO |  |  |  |
| special_function | varchar(100) | NO |  |  |  |
| added_by | varchar(100) | NO |  |  |  |
| added_on | varchar(100) | NO |  |  |  |
| question_order | int | NO |  |  |  |
| default_answer | longtext | NO |  |  |  |
| questionorder | int | NO |  |  |  |
| summarypages | varchar(1) | NO |  |  |  |
| datereplaced | bigint | NO |  | 0 |  |
| limit1 | float(2,1) | NO |  |  |  |

## `serialnumber_recalllist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| uiq | varchar(5) | NO |  |  |  |
| user | varchar(32) | NO |  |  |  |
| stock_ref | varchar(12) | NO |  |  |  |
| account | varchar(12) | NO |  |  |  |
| barcode | varchar(16) | NO |  |  |  |
| serialnumber | varchar(32) | NO |  |  |  |
| Invoice | varchar(16) | NO |  |  |  |
| DateInvoice | varchar(16) | NO |  |  |  |
| custname | varchar(64) | NO |  |  |  |
| srn | varchar(64) | NO |  |  |  |
| rma | varchar(64) | NO |  |  |  |

## `serialnumber_special_qa`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(16) | NO |  |  |  |
| lowmv | float(10,2) | NO |  |  |  |
| highmv | float(10,2) | NO |  |  |  |
| passid | int | NO |  |  |  |
| outputid | int | NO |  |  |  |

## `serialnumberbatch`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| serialid | varchar(100) | NO |  |  |  |

## `serialnumberhistory`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| serialnumber | varchar(100) | NO |  |  |  |
| barcodeid | varchar(100) | NO |  |  |  |
| stock_ref | varchar(100) | NO |  |  |  |
| invoicenumber | varchar(100) | NO |  |  |  |
| creditnumber | varchar(100) | NO |  |  |  |
| deliveryaccount | varchar(100) | NO |  |  |  |
| invoiceaccount | varchar(100) | NO |  |  |  |

## `serialnumberlocation`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| photo2 | varchar(100) | NO |  |  |  |
| photo1 | varchar(100) | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| locationid | int | NO |  |  |  |
| room | varchar(100) | NO |  |  |  |
| building | varchar(100) | NO |  |  |  |
| lastupdartedby | varchar(100) | NO |  |  |  |
| lastupdated | varchar(100) | NO |  |  |  |
| locationdescription | varchar(100) | NO |  |  |  |
| sellable | varchar(7) | NO |  |  |  |
| consigned | varchar(1) | NO |  |  |  |
| consign_description | varchar(128) | NO |  |  |  |
| auditedby | varchar(32) | NO |  |  |  |
| auditedon | int | NO |  |  |  |
| building_id | int | NO |  |  |  |
| room_id | int | NO |  |  |  |
| shelf_id | int | NO |  |  |  |
| block_id | int | NO |  |  |  |
| row_id | int | NO |  |  |  |
| reservedforaccount | varchar(8) | NO |  |  |  |
| res_stkref | varchar(24) | NO |  |  |  |
| res_stkqty | int | NO |  |  |  |
| res_stkacc | varchar(12) | NO |  |  |  |
| includeincount | int | NO |  |  |  |
| showbell | int | NO |  |  |  |

## `serialnumberlocation_stock_alerts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(24) | NO |  |  |  |
| locationid | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| qty_alarm1 | int | NO |  |  |  |
| qty_alarm2 | int | NO |  |  |  |
| qty_rec | int | NO |  |  |  |
| alerttypeid | int | NO |  |  |  |

## `serialnumberlocation_stock_alerts_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `serialnumberlocation_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| type | varchar(12) | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |

## `serialnumbermergeitems`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| user | varchar(100) | NO |  |  |  |
| mainid | varchar(100) | NO |  |  |  |
| serialid | varchar(100) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| Stock_ref | varchar(40) | NO |  |  |  |
| OperaDescription | varchar(60) | NO |  |  |  |
| Serialnumber | varchar(24) | NO |  |  |  |
| addedon | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `serialnumberminstock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(100) | NO |  |  |  |
| locationid | varchar(100) | NO |  |  |  |
| minstock | varchar(100) | NO |  |  |  |
| minmove | varchar(100) | NO |  |  |  |

## `serialnumbermultipack`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(100) | NO |  |  |  |
| operaqty | varchar(100) | NO |  |  |  |
| Alt_stock_ref | varchar(100) | NO |  |  |  |
| unique_serialnumbers | varchar(100) | NO |  |  |  |

## `serialnumberpicked`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(100) | NO |  |  |  |
| serialnumberid | int | NO |  |  |  |
| pickedby | varchar(100) | NO |  |  |  |
| pickedon | bigint | NO |  | 0 |  |
| ordernumber | varchar(100) | NO |  |  |  |
| matchedon | bigint | NO |  | 0 |  |
| status | varchar(100) | NO |  |  |  |
| deliverynoteref | varchar(12) | NO |  |  |  |
| serialnumber | varchar(100) | NO |  |  |  |
| deliverynumber | int | NO |  |  |  |
| lineid | int | NO |  |  |  |

## `serialnumberpicking`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(100) | NO |  |  |  |
| serialnumberid | int | NO |  |  |  |
| pickedby | varchar(100) | NO |  |  |  |
| pickedon | bigint | NO |  |  |  |
| ordernumber | varchar(100) | NO |  |  |  |
| matchedon | bigint | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| serialnumber | varchar(64) | NO |  |  |  |
| deliveryprinted | tinyint | NO |  |  |  |
| deliverynumber | int | NO |  |  |  |
| lineid | int | NO |  |  |  |

## `serialnumberprintq`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(100) | NO |  |  |  |
| barcodeid | varchar(100) | NO |  |  |  |
| description | varchar(100) | NO |  |  |  |
| datebookedin | varchar(100) | NO |  |  |  |
| name | varchar(100) | NO |  |  |  |
| serialnumber | varchar(100) | NO |  |  |  |

## `serialnumbers_cleared`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ord | varchar(12) | NO |  |  |  |
| inv | varchar(12) | NO |  |  |  |
| dateout | bigint | NO |  | 0 |  |
| reason | varchar(250) | NO |  |  |  |
| bookedoutby | varchar(32) | NO |  |  |  |
| clearedby | varchar(32) | NO |  |  |  |
| clearedon | bigint | NO |  | 0 |  |

## `serialnumbers_instock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| barcode | int | NO |  |  |  |
| yearend | int | NO |  |  |  |
| stkref | varchar(24) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| instockon | bigint | NO |  | 0 |  |
| instockby | int | NO |  |  |  |
| serialnumber | varchar(64) | NO |  |  |  |
| valuestatus | int | NO |  |  |  |
| value_tag | varchar(64) | NO |  |  |  |

## `serialnumbers_instock_totals`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO |  |  |  |
| timestamp | bigint | NO |  | 0 |  |
| valuetotal | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `serialnumbers_logfile`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| header_flag | char(1) | NO |  |  |  |
| stock_ref | varchar(10) | NO |  |  |  |
| barcodeid | int | NO |  | 0 |  |
| record_type | varchar(10) | NO |  |  |  |
| date_created | varchar(100) | NO |  |  |  |
| date_modified | varchar(100) | NO |  |  |  |
| date_record_sealed | varchar(100) | NO |  |  |  |

## `serialnumbers_tracesrs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| barcode | int | NO |  |  |  |
| issueto | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| active | bigint | NO |  | 0 |  |

## `serialnumberscombined`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref_combined | varchar(100) | NO |  |  |  |
| stock_ref_item | varchar(100) | NO |  |  |  |

## `serialnumberstocktake`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| serialid | varchar(100) | NO |  |  |  |
| date | bigint | NO |  | 0 |  |
| status | varchar(100) | NO |  |  |  |
| stock_ref | varchar(100) | NO |  |  |  |
| serialnumber | varchar(100) | NO |  |  |  |
| countedby | varchar(100) | NO |  |  |  |
| locationid | int | NO |  |  |  |
| errorcheck | varchar(12) | NO |  |  |  |
| calcloc | int | NO |  |  |  |
| prndate | varchar(16) | NO |  |  |  |

## `shopify_product_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(64) | NO |  |  |  |
| Variant_SKU | varchar(64) | NO |  |  |  |
| Handle | varchar(255) | YES |  |  |  |
| Title | varchar(255) | YES |  |  |  |
| Body_HTML | longtext | YES |  |  |  |
| Vendor | varchar(255) | YES |  |  |  |
| Product_Category | varchar(255) | YES |  |  |  |
| Type | varchar(255) | YES |  |  |  |
| Tags | varchar(255) | YES |  |  |  |
| Published | varchar(255) | YES |  |  |  |
| Option1_Name | varchar(255) | YES |  |  |  |
| Option1_Value | varchar(255) | YES |  |  |  |
| Option1_Linked_To | varchar(255) | YES |  |  |  |
| Option2_Name | varchar(255) | YES |  |  |  |
| Option2_Value | varchar(255) | YES |  |  |  |
| Option2_Linked_To | varchar(255) | YES |  |  |  |
| Option3_Name | varchar(255) | YES |  |  |  |
| Option3_Value | varchar(255) | YES |  |  |  |
| Option3_Linked_To | varchar(255) | YES |  |  |  |
| Variant_Grams | varchar(255) | YES |  |  |  |
| Variant_Inventory_Tracker | varchar(255) | YES |  |  |  |
| Variant_Inventory_Qty | varchar(255) | YES |  |  |  |
| Variant_Inventory_Policy | varchar(255) | YES |  |  |  |
| Variant_Fulfillment_Service | varchar(255) | YES |  |  |  |
| Variant_Price | varchar(255) | YES |  |  |  |
| Variant_Compare_At_Price | varchar(255) | YES |  |  |  |
| Variant_Requires_Shipping | varchar(255) | YES |  |  |  |
| Variant_Taxable | varchar(255) | YES |  |  |  |
| Variant_Barcode | varchar(255) | YES |  |  |  |
| Image_Src | varchar(255) | YES |  |  |  |
| Image_Position | varchar(255) | YES |  |  |  |
| Image_Alt_Text | varchar(255) | YES |  |  |  |
| Gift_Card | varchar(255) | YES |  |  |  |
| SEO_Title | varchar(255) | YES |  |  |  |
| SEO_Description | varchar(255) | YES |  |  |  |
| Google_Shopping__Google_Product_Category | varchar(255) | YES |  |  |  |
| Google_Shopping__Gender | varchar(255) | YES |  |  |  |
| Google_Shopping__Age_Group | varchar(255) | YES |  |  |  |
| Google_Shopping__MPN | varchar(255) | YES |  |  |  |
| Google_Shopping__Condition | varchar(255) | YES |  |  |  |
| Google_Shopping__Custom_Product | varchar(255) | YES |  |  |  |
| Google_Shopping__Custom_Label_0 | varchar(255) | YES |  |  |  |
| Google_Shopping__Custom_Label_1 | varchar(255) | YES |  |  |  |
| Google_Shopping__Custom_Label_2 | varchar(255) | YES |  |  |  |
| Google_Shopping__Custom_Label_3 | varchar(255) | YES |  |  |  |
| Google_Shopping__Custom_Label_4 | varchar(255) | YES |  |  |  |
| Google_Custom_Product_productmetafieldsmmgoogleshoppingcusto | varchar(255) | YES |  |  |  |
| Complementary_products_productmetafieldsshopifydiscoveryprod | varchar(255) | YES |  |  |  |
| Related_products_productmetafieldsshopifydiscoveryproduct_re | varchar(255) | YES |  |  |  |
| Related_products_settings_productmetafieldsshopifydiscoveryp | varchar(255) | YES |  |  |  |
| Variant_Image | varchar(255) | YES |  |  |  |
| Variant_Weight_Unit | varchar(255) | YES |  |  |  |
| Variant_Tax_Code | varchar(255) | YES |  |  |  |
| Cost_per_item | varchar(255) | YES |  |  |  |
| Included__United_Kingdom | varchar(255) | YES |  |  |  |
| Price__United_Kingdom | varchar(255) | YES |  |  |  |
| Compare_At_Price__United_Kingdom | varchar(255) | YES |  |  |  |
| Included__International | varchar(255) | YES |  |  |  |
| Price__International | varchar(255) | YES |  |  |  |
| Compare_At_Price__International | varchar(255) | YES |  |  |  |
| Status | varchar(255) | YES |  |  |  |
| IntrastatsControl | varchar(255) | YES |  |  |  |

## `special_cab_returns`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| OperaAccount | varchar(8) | NO |  |  |  |
| Serialnumber | varchar(32) | NO |  |  |  |
| BarcodeID | varchar(16) | NO |  |  |  |
| NuferRMA | varchar(16) | NO |  |  |  |
| date | varchar(16) | NO |  |  |  |
| by | varchar(32) | NO |  |  |  |
| viamedbox | int | NO |  |  |  |

## `specialprices`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Pricelist | varchar(8) | NO |  |  |  |
| Stock_ref | varchar(32) | NO |  |  |  |
| Price | varchar(100) | NO |  | 0 |  |
| qb1 | varchar(100) | NO |  |  |  |
| qb2 | varchar(100) | NO |  |  |  |
| qb3 | varchar(100) | NO |  |  |  |
| qb4 | varchar(100) | NO |  |  |  |
| qb5 | varchar(100) | NO |  |  |  |
| qb6 | varchar(100) | NO |  |  |  |
| qb7 | varchar(100) | NO |  |  |  |
| qb8 | varchar(100) | NO |  |  |  |
| qb9 | varchar(100) | NO |  |  |  |
| qb10 | varchar(100) | NO |  |  |  |
| qb1sp | varchar(100) | NO |  |  |  |
| qb2sp | varchar(100) | NO |  |  |  |
| qb3sp | varchar(100) | NO |  |  |  |
| qb4sp | varchar(100) | NO |  |  |  |
| qb5sp | varchar(100) | NO |  |  |  |
| qb6sp | varchar(100) | NO |  |  |  |
| qb7sp | varchar(100) | NO |  |  |  |
| qb8sp | varchar(100) | NO |  |  |  |
| qb9sp | varchar(100) | NO |  |  |  |
| qb10sp | varchar(100) | NO |  |  |  |
| Currency | varchar(10) | NO |  |  |  |
| D | varchar(4) | NO |  |  |  |
| company | varchar(12) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| cd_nsell | varchar(16) | NO |  |   |  |
| cd_ndate | varchar(16) | NO |  |   |  |
| helduntil | bigint | NO |  |  |  |
| publishdate | bigint | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| reviewdate | bigint | NO |  |  |  |

## `specialprices_extranotes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| pricelist | varchar(4) | NO |  |  |  |
| company | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |

## `specialprices_held`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Pricelist | varchar(8) | NO |  |  |  |
| Stock_ref | varchar(16) | NO |  |  |  |
| Price | varchar(100) | NO |  | 0 |  |
| qb1 | varchar(100) | NO |  |  |  |
| qb2 | varchar(100) | NO |  |  |  |
| qb3 | varchar(100) | NO |  |  |  |
| qb4 | varchar(100) | NO |  |  |  |
| qb5 | varchar(100) | NO |  |  |  |
| qb6 | varchar(100) | NO |  |  |  |
| qb7 | varchar(100) | NO |  |  |  |
| qb8 | varchar(100) | NO |  |  |  |
| qb9 | varchar(100) | NO |  |  |  |
| qb10 | varchar(100) | NO |  |  |  |
| qb1sp | varchar(100) | NO |  |  |  |
| qb2sp | varchar(100) | NO |  |  |  |
| qb3sp | varchar(100) | NO |  |  |  |
| qb4sp | varchar(100) | NO |  |  |  |
| qb5sp | varchar(100) | NO |  |  |  |
| qb6sp | varchar(100) | NO |  |  |  |
| qb7sp | varchar(100) | NO |  |  |  |
| qb8sp | varchar(100) | NO |  |  |  |
| qb9sp | varchar(100) | NO |  |  |  |
| qb10sp | varchar(100) | NO |  |  |  |
| Currency | varchar(10) | NO |  |  |  |
| D | varchar(4) | NO |  |  |  |
| company | varchar(12) | NO |  |  |  |
| hostcompany_id | int | NO |  |  |  |
| helduntil | int | NO |  |  |  |

## `specialprices_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Pricelist | varchar(8) | NO |  |  |  |
| Stock_ref | varchar(32) | NO |  |  |  |
| Price | varchar(100) | NO |  | 0 |  |
| qb1 | varchar(100) | NO |  |  |  |
| qb2 | varchar(100) | NO |  |  |  |
| qb3 | varchar(100) | NO |  |  |  |
| qb4 | varchar(100) | NO |  |  |  |
| qb5 | varchar(100) | NO |  |  |  |
| qb6 | varchar(100) | NO |  |  |  |
| qb7 | varchar(100) | NO |  |  |  |
| qb8 | varchar(100) | NO |  |  |  |
| qb9 | varchar(100) | NO |  |  |  |
| qb10 | varchar(100) | NO |  |  |  |
| qb1sp | varchar(100) | NO |  |  |  |
| qb2sp | varchar(100) | NO |  |  |  |
| qb3sp | varchar(100) | NO |  |  |  |
| qb4sp | varchar(100) | NO |  |  |  |
| qb5sp | varchar(100) | NO |  |  |  |
| qb6sp | varchar(100) | NO |  |  |  |
| qb7sp | varchar(100) | NO |  |  |  |
| qb8sp | varchar(100) | NO |  |  |  |
| qb9sp | varchar(100) | NO |  |  |  |
| qb10sp | varchar(100) | NO |  |  |  |
| Currency | varchar(10) | NO |  |  |  |
| D | varchar(4) | NO |  |  |  |
| company | varchar(12) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| cd_nsell | varchar(16) | NO |  |  |  |
| cd_ndate | varchar(16) | NO |  |  |  |
| datereplaced | bigint | NO |  | 0 |  |
| dateoveridden | bigint | NO |  | 0 |  |
| actualdatereplaced | bigint | NO |  | 0 |  |
| overriddenby | int | NO |  |  |  |
| validated | int | NO |  |  |  |
| helduntil | bigint | NO |  | 0 |  |

## `specialprices_modified`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Pricelist | varchar(8) | NO |  |  |  |
| Stock_ref | varchar(10) | NO |  |  |  |
| Price | decimal(10,2) | NO |  | 0.00 |  |
| qb1 | varchar(100) | NO |  |  |  |
| qb2 | varchar(100) | NO |  |  |  |
| qb3 | varchar(100) | NO |  |  |  |
| qb4 | varchar(100) | NO |  |  |  |
| qb5 | varchar(100) | NO |  |  |  |
| qb6 | varchar(100) | NO |  |  |  |
| qb7 | varchar(100) | NO |  |  |  |
| qb8 | varchar(100) | NO |  |  |  |
| qb9 | varchar(100) | NO |  |  |  |
| qb10 | varchar(100) | NO |  |  |  |
| qb1sp | varchar(100) | NO |  |  |  |
| qb2sp | varchar(100) | NO |  |  |  |
| qb3sp | varchar(100) | NO |  |  |  |
| qb4sp | varchar(100) | NO |  |  |  |
| qb5sp | varchar(100) | NO |  |  |  |
| qb6sp | varchar(100) | NO |  |  |  |
| qb7sp | varchar(100) | NO |  |  |  |
| qb8sp | varchar(100) | NO |  |  |  |
| qb9sp | varchar(100) | NO |  |  |  |
| qb10sp | varchar(100) | NO |  |  |  |
| Currency | varchar(10) | NO |  |  |  |
| Deimal | varchar(4) | NO |  |  |  |

## `specialprices_postages`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| listid | int | NO |  |  |  |
| stockref | varchar(24) | NO |  |  |  |
| pricelist | varchar(12) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| qty | int | NO |  |  |  |
| shipmethod | int | NO |  |  |  |
| pricevalue | float(10,2) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |
| country_name | varchar(48) | NO |  | United Kingdom |  |

## `specialprices_reviews`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(64) | NO |  |  |  |
| pricelist | varchar(8) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| reviewedon | bigint | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| pricechangeon | bigint | NO |  |  |  |
| userawareofchangefrom | bigint | NO |  |  |  |
| useridawareofchange | int | NO |  |  |  |

## `specialprices_stkextra`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(12) | NO |  |  |  |
| pricelist | varchar(4) | NO |  |  |  |
| companyid | varchar(32) | NO |  |  |  |
| hidesingleprice | tinyint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `specialprices_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| code | varchar(4) | NO |  |  |  |
| description | varchar(32) | NO |  |  |  |
| active | varchar(1) | NO |  |  |  |
| company | varchar(12) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `specialprices_workingdb`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Pricelist | varchar(8) | NO |  |  |  |
| Stock_ref | varchar(32) | NO |  |  |  |
| Price | varchar(100) | NO |  | 0 |  |
| qb1 | varchar(100) | NO |  |  |  |
| qb2 | varchar(100) | NO |  |  |  |
| qb3 | varchar(100) | NO |  |  |  |
| qb4 | varchar(100) | NO |  |  |  |
| qb5 | varchar(100) | NO |  |  |  |
| qb6 | varchar(100) | NO |  |  |  |
| qb7 | varchar(100) | NO |  |  |  |
| qb8 | varchar(100) | NO |  |  |  |
| qb9 | varchar(100) | NO |  |  |  |
| qb10 | varchar(100) | NO |  |  |  |
| qb1sp | varchar(100) | NO |  |  |  |
| qb2sp | varchar(100) | NO |  |  |  |
| qb3sp | varchar(100) | NO |  |  |  |
| qb4sp | varchar(100) | NO |  |  |  |
| qb5sp | varchar(100) | NO |  |  |  |
| qb6sp | varchar(100) | NO |  |  |  |
| qb7sp | varchar(100) | NO |  |  |  |
| qb8sp | varchar(100) | NO |  |  |  |
| qb9sp | varchar(100) | NO |  |  |  |
| qb10sp | varchar(100) | NO |  |  |  |
| Currency | varchar(10) | NO |  |  |  |
| D | varchar(4) | NO |  |  |  |
| company | varchar(12) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| cd_nsell | varchar(16) | NO |  |   |  |
| cd_ndate | varchar(16) | NO |  |   |  |
| userid | int | NO |  |  |  |
| workinglistid | int | NO |  |  |  |

## `specialprices_workinglist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(100) | NO |  |  |  |
| createdon | bigint | NO |  | 0 |  |
| modifiedon | int | NO |  |  |  |
| createdby | int | NO |  |  |  |
| userincontrolid | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| stockgroup | varchar(200) | NO |  |  |  |
| pricelist | varchar(8) | NO |  |  |  |
| singleitemlist | tinyint | NO |  |  |  |
| iscustomerlist | tinyint | NO |  |  |  |
| contact_id | int | NO |  |  |  |

## `stock_audits`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| auditedby | varchar(64) | NO |  |  |  |
| auditedon | bigint | NO |  | 0 |  |
| stock_ref | varchar(24) | NO |  |  |  |

## `stock_chemical_directives`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| directive | varchar(10) | NO |  |  |  |
| substance | varchar(32) | NO |  |  |  |
| ecnumber | varchar(18) | NO |  |  |  |
| casnumber | varchar(18) | NO |  |  |  |
| useage | varchar(3) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `stock_chemical_directives_stock_link`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(32) | NO |  |  |  |
| chemicalid | int | NO |  |  |  |
| addedon | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |

## `stock_contact_reserved`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| stockref | varchar(32) | NO |  |  |  |
| reserveqty | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| authorisedon | bigint | NO |  |  |  |
| authorisedby | int | NO |  |  |  |
| status | int | NO |  |  |  |

## `stock_group_agencys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| groupdesc | varchar(128) | NO |  |  |  |
| account | varchar(128) | NO |  |  |  |
| country | varchar(128) | NO |  |  |  |
| distributor_type | varchar(32) | NO |  |  |  |
| addedby | varchar(64) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `stock_group_agencys_stock_references`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| type | varchar(32) | NO |  |  |  |
| stock_ref | varchar(16) | NO |  |  |  |
| country | varchar(64) | NO |  |  |  |
| account | varchar(12) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| validfrom | bigint | NO |  |  |  |
| expires | bigint | NO |  | 0 |  |
| requiredqty | int | NO |  |  |  |
| contractprice | varchar(96) | NO |  |  |  |
| testfield | varchar(32) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| specialpricecode | int | NO |  |  |  |
| contractpricecurr | varchar(10) | NO |  |  |  |
| hideme | varchar(1) | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| companyid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| supplieragreement | int | NO |  |  |  |
| supplieragreementby | bigint | NO |  |  |  |
| supplieragreementcid | int | NO |  |  |  |
| dltag | int | NO |  |  |  |

## `stock_sales_groups`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| industry | varchar(24) | NO |  |  |  |
| catagory | varchar(64) | NO |  |  |  |
| priority | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| coding | varchar(16) | NO |  |  |  |

## `stock_sales_groups_countries`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| priority | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `stock_sales_groups_countries_users`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| countryid | int | NO |  |  |  |
| userid | int | NO |  |  |  |
| priority | int | NO |  |  |  |

## `stock_sales_groups_country_status`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| groupid | int | NO |  |  |  |
| countryid | int | NO |  |  |  |
| statusid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `stock_sales_groups_stkref`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(12) | NO |  |  |  |
| groupid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `stock_sales_status`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `stock_view_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(32) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |

## `stock_weights`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(100) | NO |  |  |  |
| weight | varchar(100) | NO |  |  |  |
| length | varchar(100) | NO |  |  |  |
| width | varchar(100) | NO |  |  |  |
| height | varchar(100) | NO |  |  |  |
| user | varchar(100) | NO |  |  |  |
| volumetric | varchar(100) | NO |  |  |  |
| item_width | varchar(32) | NO |  |  |  |
| item_weight | varchar(32) | NO |  |  |  |
| item_height | varchar(32) | NO |  |  |  |
| item_length | varchar(32) | NO |  |  |  |
| date | bigint | NO |  | 0 |  |
| weeweight | varchar(100) | NO |  |  |  |
| confirmedby | int | NO |  |  |  |
| confirmedon | bigint | NO |  | 0 |  |
| physical_item_width | varchar(32) | NO |  |  |  |
| physical_item_height | varchar(32) | NO |  |  |  |
| physical_item_length | varchar(32) | NO |  |  |  |
| physical_item_weight | varchar(32) | NO |  |  |  |
| packagingpn | varchar(8) | NO |  |  |  |

## `stock_weights_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| archivedby | varchar(32) | NO |  |  |  |
| archivedon | bigint | NO |  | 0 |  |
| stock_ref | varchar(100) | NO |  |  |  |
| weight | varchar(100) | NO |  |  |  |
| length | varchar(100) | NO |  |  |  |
| width | varchar(100) | NO |  |  |  |
| height | varchar(100) | NO |  |  |  |
| user | varchar(100) | NO |  |  |  |
| volumetric | varchar(100) | NO |  |  |  |
| item_width | varchar(32) | NO |  |  |  |
| item_weight | varchar(32) | NO |  |  |  |
| item_height | varchar(32) | NO |  |  |  |
| item_length | varchar(32) | NO |  |  |  |
| date | bigint | NO |  | 0 |  |

## `stockactive`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Stock_ref | varchar(100) | NO |  |  |  |
| UKP | varchar(100) | NO |  |  |  |
| EUREU | varchar(100) | NO |  |  |  |
| EURD | varchar(100) | NO |  |  |  |
| USDEU | varchar(100) | NO |  |  |  |
| USDD | varchar(100) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |

## `stockforms`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |
| active | int | NO |  |  |  |

## `stockforms_pages`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| formid | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| active | int | NO |  |  |  |

## `stockforms_pages_fields`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| formid | int | NO |  |  |  |
| pageid | int | NO |  |  |  |
| tablename | varchar(32) | NO |  |  |  |
| fieldname | varchar(128) | NO |  |  |  |
| specialfunction | int | NO |  |  |  |
| extrafield | varchar(32) | NO |  |  |  |
| x1 | float | NO |  |  |  |
| y1 | float | NO |  |  |  |
| x2 | float | NO |  |  |  |
| y2 | float | NO |  |  |  |
| status | int | NO |  |  |  |

## `stockgroup`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| tag | varchar(100) | NO |  |  |  |
| id | bigint | NO | PRI |  | auto_increment |
| stk_ref | varchar(16) | NO |  |  |  |
| description | varchar(40) | NO |  |  |  |
| owner | varchar(100) | NO |  |  |  |
| groupcode | varchar(128) | NO |  |  |  |
| agency | varchar(128) | NO |  |  |  |
| reorder | int | NO |  |  |  |
| universaltime | bigint | NO |  |  |  |
| imgfile | varchar(13) | NO |  |  |  |
| tagged | varchar(12) | NO |  |  |  |
| temp | varchar(200) | NO |  |  |  |
| pricelistweight | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| pricelisttitle | varchar(128) | NO |  |  |  |
| companyid | int | NO |  |  |  |

## `stockgroup_header`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| groupcode | varchar(250) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| pricelistheader | varchar(100) | NO |  |  |  |

## `stocklisb4`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| STOCK_REFE | varchar(16) | NO | PRI |  |  |
| SEARCH_REF | varchar(8) | YES |  |  |  |
| SEARCH_RE1 | varchar(8) | YES |  |  |  |
| DESCRIPTIO | varchar(40) | YES |  |  |  |
| ANALYSIS_C | varchar(8) | YES |  |  |  |
| CATEGORY | varchar(35) | YES |  |  |  |
| SELLING_PR | float(5,2) | YES |  |  |  |
| COST_PRICE | float(5,2) | YES |  |  |  |
| LAST_COST_ | float(5,2) | YES |  |  |  |
| EXTENSION_ | varchar(40) | YES |  |  |  |
| SALE_PRICE | float(5,2) | YES |  |  |  |
| QUANTITY_I | float(5,2) | YES |  |  |  |
| SUPERSEDED | varchar(40) | YES |  |  |  |
| PROFILE_CO | varchar(40) | YES |  |  |  |

## `stocklist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| STOCK_REFE | varchar(16) | NO |  |  |  |
| SEARCH_REF | varchar(18) | YES |  |  |  |
| SEARCH_RE1 | varchar(18) | YES |  |  |  |
| DESCRIPTIO | varchar(80) | YES |  |  |  |
| ANALYSIS_C | varchar(8) | YES |  |  |  |
| CATEGORY | varchar(35) | YES |  |  |  |
| SELLING_PR | decimal(10,2) | YES |  |  |  |
| COST_PRICE | decimal(10,2) | YES |  |  |  |
| LAST_COST_ | decimal(10,2) | YES |  |  |  |
| EXTEND_DESC | longtext | YES |  |  |  |
| SALE_PRICE | decimal(10,2) | YES |  |  |  |
| UNIT_WEIGHT | varchar(100) | YES |  |  |  |
| UNIT_VOL | varchar(100) | YES |  |  |  |
| QUANTITY_I | decimal(10,2) | YES |  |  |  |
| SUPERSEDED | varchar(40) | YES |  |  |  |
| MEMO | longtext | YES |  |  |  |
| PROFILE_CO | varchar(40) | YES |  |  |  |
| ONPURCHASEORDER | varchar(10) | YES |  |  |  |
| ONSALEORDER | varchar(10) | YES |  |  |  |
| NLACCOUNT | varchar(8) | NO |  |  |  |
| companyid | varchar(32) | NO |  |  |  |
| hostcompany | int | NO |  |  |  |

## `stocklist_competitorinfo`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stkref | varchar(100) | NO |  |  |  |
| compname | varchar(100) | NO |  |  |  |
| comppn | varchar(100) | NO |  |  |  |
| compprice | varchar(100) | NO |  |  |  |
| compcurr | varchar(100) | NO |  |  |  |
| compcount | varchar(100) | NO |  |  |  |
| compnote | longtext | NO |  |  |  |
| addby | varchar(100) | NO |  |  |  |
| addon | varchar(100) | NO |  |  |  |

## `stocklist_contract_prices`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO |  |  |  |
| stock_ref | varchar(32) | NO |  |  |  |
| contract_price | float(10,2) | NO |  |  |  |
| valid_until | bigint | NO |  | 0 |  |
| addedby | varchar(64) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| companyid | varchar(16) | NO |  |  |  |
| qb1 | int | NO |  |  |  |
| qb1sp | float(10,2) | NO |  |  |  |
| qb2 | int | NO |  |  |  |
| qb2sp | float(10,2) | NO |  |  |  |
| qb3 | int | NO |  |  |  |
| qb3sp | float(10,2) | NO |  |  |  |
| qb4 | int | NO |  |  |  |
| qb4sp | float(10,2) | NO |  |  |  |
| qb5 | int | NO |  |  |  |
| qb5sp | float(10,2) | NO |  |  |  |

## `stocklist_export_templates`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| owner | int | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |
| pricelistcode | varchar(4) | NO |  |  |  |

## `stocklist_export_templates_fields`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| templateid | int | NO |  |  |  |
| fieldid | int | NO |  |  |  |
| reord | int | NO |  |  |  |

## `stocklist_extra`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(10) | NO |  |  |  |
| extended | longtext | NO |  |  |  |

## `stocklist_extra_exporter`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| groupcode | varchar(32) | NO |  |  |  |
| owner | varchar(32) | NO |  |  |  |
| stock_ref | varchar(24) | NO |  |  |  |
| layoutnumber | int | NO |  |  |  |

## `stocklist_extra_fields`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| tablename | varchar(96) | NO |  |  |  |
| fieldname | varchar(96) | NO |  |  |  |
| stockrefname | varchar(96) | NO |  |  |  |
| companyidfield | varchar(16) | NO |  |  |  |

## `stocklist_extra_fields_answers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(24) | NO |  |  |  |
| fieldid | int | NO |  |  |  |
| answer | longtext | NO |  |  |  |
| tem | varchar(1) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `stocklist_extra_fields_stock_link`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| fieldid | int | NO |  |  |  |
| stock_ref | varchar(32) | NO |  |  |  |
| answer | longtext | NO |  |  |  |
| updatedby | varchar(32) | NO |  |  |  |
| updatedon | int | NO |  |  |  |

## `stocklist_faq`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| question | longtext | NO |  |  |  |
| answer | longtext | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| confirmedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| confirmedon | bigint | NO |  | 0 |  |
| underreview | bigint | NO |  | 0 |  |
| issueid | int | NO |  |  |  |
| displayorder | int | NO |  |  |  |
| adminmemo | longtext | NO |  |  |  |
| status | int | NO |  |  |  |

## `stocklist_faq_docid`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| questionid | int | NO |  |  |  |
| docid | int | NO |  |  |  |

## `stocklist_faq_stock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stkref | varchar(16) | NO |  |  |  |
| questionid | int | NO |  |  |  |
| displayorder | int | NO |  |  |  |

## `stocklist_freedelivery`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(32) | NO |  |  |  |
| pricelist | varchar(8) | NO |  |  |  |
| freechecked | varchar(12) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |

## `stocklist_ghx`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(16) | NO |  |  |  |
| originalman | varchar(32) | NO |  |  |  |
| manname | varchar(32) | NO |  |  |  |
| brand | varchar(32) | NO |  |  |  |
| subbrand | varchar(32) | NO |  |  |  |
| manprodcode | varchar(32) | NO |  |  |  |
| functionalname | varchar(64) | NO |  |  |  |
| variant | varchar(32) | NO |  |  |  |
| unitsize | varchar(8) | NO |  |  |  |
| UOM | varchar(12) | NO |  |  |  |
| pricingoption | varchar(64) | NO |  |  |  |
| deliveryoption | varchar(32) | NO |  |  |  |
| bodypart | varchar(32) | NO |  |  |  |
| dimensions | varchar(64) | NO |  |  |  |
| battery | varchar(64) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `stocklist_subcomponents`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Stock_ref | varchar(32) | NO |  |  |  |
| Stock_ref_sub | varchar(32) | NO |  |  |  |
| required | varchar(3) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| autoorderadd | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| updatedby | int | NO |  |  |  |
| subtype | varchar(32) | NO |  |  |  |
| qty | float(10,2) | NO |  |  |  |

## `stocklist_subcomponents_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Stock_ref | varchar(32) | NO |  |  |  |
| Stock_ref_sub | varchar(32) | NO |  |  |  |
| required | varchar(3) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| autoorderadd | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| updatedby | int | NO |  |  |  |
| subtype | varchar(32) | NO |  |  |  |
| qty | float(10,2) | NO |  |  |  |

## `stocklist_tarriffs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(64) | NO |  |  |  |
| tariff | varchar(16) | NO |  |  |  |
| spare | varchar(16) | NO |  |  |  |
| warranty_customer | varchar(12) | NO |  |  |  |
| warranty_supplier | varchar(12) | NO |  |  |  |
| warranty_distributor | varchar(12) | NO |  |  |  |
| ce_marking | varchar(10) | NO |  |  |  |
| ce_marking_standards | varchar(10) | NO |  |  |  |
| showdatecode | char(3) | NO |  |  |  |
| usebydatemonths | int | NO |  | 0 |  |
| weelabel | char(2) | NO |  |  |  |
| ean13 | varchar(26) | NO |  |  |  |
| qa_type | int | NO |  |  |  |
| attacheditems | varchar(3) | NO |  |  |  |
| equipment_type | varchar(96) | NO |  |  |  |
| ceclass | varchar(16) | NO |  |  |  |
| safclass | varchar(4) | NO |  |  |  |
| saftype | varchar(4) | NO |  |  |  |
| cmdclass | varchar(16) | NO |  |  |  |
| cefileid | int | NO |  |  |  |
| prelabeltext | longtext | NO |  |  |  |
| lastcost | varchar(24) | NO |  |  |  |
| natonumber | varchar(36) | NO |  |  |  |
| stock_value_tag | varchar(24) | NO |  |  |  |
| nhs_eclass | varchar(5) | NO |  |  |  |
| thumbnailurl | varchar(250) | NO |  |  |  |
| imageurl | varchar(250) | NO |  |  |  |
| enable_quick_serial | varchar(1) | NO |  |  |  |
| weetick | varchar(4) | NO |  |  |  |
| weeweight | varchar(12) | NO |  |  |  |
| weeconsumable | varchar(4) | NO |  |  |  |
| label_description | varchar(96) | NO |  |  |  |
| showfactorydate | varchar(5) | NO |  |  |  |
| creationdate | bigint | NO |  | 0 |  |
| allow_dupsn | tinyint(1) | NO |  |  |  |
| freecarriage | tinyint(1) | NO |  |  |  |
| ppq | varchar(32) | NO |  |  |  |
| audited | int | NO |  |  |  |
| nhscataloguecode | varchar(32) | NO |  |  |  |
| latex | varchar(3) | NO |  |  |  |
| coshh | varchar(3) | NO |  |  |  |
| electromedical | varchar(3) | NO |  |  |  |
| environmentallyfriendly | varchar(3) | NO |  |  |  |
| ethicallysourced | varchar(3) | NO |  |  |  |
| whilestockslast | varchar(3) | NO |  |  |  |
| updatedby | varchar(32) | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| warranty_extendedtext | longtext | NO |  |  |  |
| uk_contract_price_percent | float(10,2) | NO |  |  |  |
| companyid | varchar(12) | NO |  |  |  |
| uk_contract_price_percent_addedby | varchar(32) | NO |  |  |  |
| uk_contract_price_percent_addedon | bigint | NO |  | 0 |  |
| minstock | int | NO |  |  |  |
| scrollbar | varchar(250) | NO |  |  |  |
| stock_count | int | NO |  |  |  |
| stock_cost | float | NO |  |  |  |
| po_stock_cost | float(12,4) | NO |  |  |  |
| stock_value | float | NO |  |  |  |
| GHX_description | varchar(250) | NO |  |  |  |
| freec | varchar(12) | NO |  |  |  |
| auditedon | bigint | NO |  | 0 |  |
| auditedby | varchar(64) | NO |  |  |  |
| pricedesc | longtext | NO |  |  |  |
| isrepaircode | varchar(5) | NO |  |  |  |
| duelsn | varchar(7) | NO |  |  |  |
| sellbydatemonthsfrombarcode | int | NO |  |  |  |
| reqarequiredmonths | int | NO |  |  |  |
| qrquicklink | varchar(1) | NO |  |  |  |
| stockvalidatedon | bigint | NO |  | 0 |  |
| stockvalidatedby | varchar(32) | NO |  |  |  |
| stockvisability | varchar(32) | NO |  |  |  |
| qaoperaadjust | varchar(1) | NO |  |  |  |
| GHX_description_extend | longtext | NO |  |  |  |
| countryoforigin | varchar(128) | NO |  |  |  |
| singlespartnumber | varchar(10) | NO |  |  |  |
| packsize | int | NO |  |  |  |
| rohs | varchar(3) | NO |  |  |  |
| rohsexlusion | varchar(12) | NO |  |  |  |
| mtbf | longtext | NO |  |  |  |
| orderedas | varchar(12) | NO |  |  |  |
| ingress | varchar(6) | NO |  |  |  |
| alternative1 | varchar(16) | NO |  |  |  |
| alternative2 | varchar(16) | NO |  |  |  |
| alternative3 | varchar(16) | NO |  |  |  |
| tempnote | longtext | NO |  |  |  |
| tempdate | bigint | NO |  | 0 |  |
| reach | varchar(3) | NO |  |  |  |
| docompatibility | varchar(1) | NO |  |  |  |
| gmdn | varchar(32) | NO |  |  |  |
| ghxuom | varchar(5) | NO |  |  |  |
| ghxuomdesc | varchar(10) | NO |  |  |  |
| groupstatus | varchar(32) | NO |  |  |  |
| corpsale | varchar(3) | NO |  |  |  |
| ghx_brand | varchar(32) | NO |  |  |  |
| ghx_mancode | varchar(24) | NO |  |  |  |
| permnote | longtext | NO |  |  |  |
| permdate | int | NO |  |  |  |
| techempid | int | NO |  |  |  |
| hiddennotes | longtext | NO |  |  |  |
| dehp | varchar(5) | NO |  |  |  |
| matchedpairs | varchar(3) | NO |  |  |  |
| matchpairspn | varchar(14) | NO |  |  |  |
| offsetallowed | varchar(5) | NO |  |  |  |
| outputdiff | varchar(5) | NO |  |  |  |
| checkpricedate | bigint | NO |  | 0 |  |
| qaformfullprint | varchar(3) | NO |  |  |  |
| regularforcasts | varchar(3) | NO |  |  |  |
| hostcompany_id | int | NO |  |  |  |
| SUPERSEDED | varchar(24) | NO |  |  |  |
| bundlepackagingallowed | int | NO |  |  |  |
| supportdateend | bigint | NO |  | 0 |  |
| availabledateend | bigint | NO |  | 0 |  |
| sntag | int | NO |  |  |  |
| descriptiveitemonly | int | NO |  |  |  |
| daystodeliver | int | NO |  |  |  |
| perishable_replace_months | int | NO |  |  |  |
| usertag | int | NO |  |  |  |
| servicable | varchar(3) | NO |  |  |  |
| servicable_partnumber | varchar(20) | NO |  |  |  |
| webimageurl | varchar(128) | NO |  |  |  |
| webimagefileid | int | NO |  |  |  |
| ce_docid | int | NO |  |  |  |
| requiresextraboxtoship | varchar(7) | NO |  |  |  |
| returnscountryoforigin | varchar(64) | NO |  |  |  |
| pickingnotes | longtext | NO |  |  |  |
| pricelistweight | int | NO |  |  |  |
| phthalate | varchar(3) | NO |  |  |  |
| specialsales | varchar(5) | NO |  |  |  |
| specialsales_rep | int | NO |  |  |  |
| operamemo | longtext | NO |  |  |  |
| newcustomeralerttext | longtext | NO |  |  |  |
| quicksrsturnaround | varchar(3) | NO |  |  |  |
| oemspecialsales | tinyint | NO |  |  |  |
| traininglevel | varchar(48) | NO |  |  |  |
| trainingcharge | varchar(48) | NO |  |  |  |
| trainingexplaination | longtext | NO |  |  |  |
| doewnotblockshipping | varchar(4) | NO |  |  |  |
| productstop | varchar(3) | NO |  |  |  |
| preproductionnotes | longtext | NO |  |  |  |
| qaweightcheck | int | NO |  |  |  |
| qaweightcheckrange | int | NO |  |  |  |
| repairturnaround | int | NO |  |  |  |
| rmareturntarriff | varchar(24) | NO |  |  |  |
| suppliernotes | longtext | NO |  |  |  |
| GHX_QOM | varchar(24) | NO |  |  |  |
| GHX_QOM_Description | varchar(48) | NO |  |  |  |
| ghx_manname | varchar(32) | NO |  |  |  |
| supreturns_customvalue | varchar(12) | NO |  |  |  |
| ghx_gln_supplier | varchar(16) | NO |  |  |  |
| ghx_gln_manufacturer | varchar(16) | NO |  |  |  |
| srsmemo | longtext | NO |  |  |  |
| srs_triage | longtext | NO |  |  |  |
| ncage | varchar(5) | NO |  |  |  |
| suppmoq | int | NO |  |  |  |
| lastsupplieroperaac | varchar(12) | NO |  |  |  |
| importtax | float(10,2) | NO |  |  |  |
| importfreight | float(10,2) | NO |  |  |  |
| suppdeldays | int | NO |  |  |  |
| suppdeldatesbacktoback | varchar(5) | NO |  |  |  |
| suppliergroup | varchar(250) | NO |  |  |  |
| catagorytype | varchar(64) | NO |  |  |  |
| shelflife | int | NO |  |  |  |
| hidefrompohm | tinyint | NO |  |  |  |
| manualcost | float(10,2) | NO |  |  |  |
| gs128notes | longtext | NO |  |  |  |
| cleanerpninternal | varchar(100) | NO |  |  |  |
| cleanercustomer | varchar(100) | NO |  |  |  |
| operadesc | varchar(40) | NO |  |  |  |
| suppliernotespo | longtext | NO |  |  |  |
| paperworkdescription | longtext | NO |  |  |  |
| singlebarcodeitem | tinyint | NO |  |  |  |
| nominalcode | varchar(8) | NO |  |  |  |
| nosaleineu | varchar(4) | NO |  |  |  |
| OperaDescription | varchar(128) | NO |  |  |  |
| HasBarcodeTracking | tinyint | NO |  |  |  |
| hiddensearch | longtext | NO |  |  |  |
| vatfree | tinyint | NO |  |  |  |
| image_docid | int | NO |  |  |  |
| distributionrights | int | NO |  |  |  |
| IsDeliveryInsuranceLine | tinyint | NO |  |  |  |
| pepolid | varchar(48) | NO |  |  |  |
| orderqtytobarcodes | int | NO |  |  |  |
| cebodynumber | varchar(12) | NO |  |  |  |
| serialnumber_lables_id | int | NO |  |  |  |
| aftersales | int | NO |  |  |  |
| DescriptionExtra | varchar(129) | NO |  |  |  |
| qapercent | varchar(16) | NO |  |  |  |
| riskassesmentdocid | int | NO |  |  |  |
| upsservicecode | varchar(3) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| EUREP | varchar(36) | YES |  |  |  |
| UKREP | varchar(36) | YES |  |  |  |
| hidefromsystemreports | varchar(4) | NO |  | No |  |
| productiondocid | int | NO |  |  |  |
| feedbackemailbody | longtext | NO |  |  |  |
| iso_feedbackquestion | longtext | NO |  |  |  |
| mainstocklocation | int | NO |  |  |  |
| shopifyhandle | varchar(256) | NO |  |  |  |
| monthexpirestop | int | NO |  |  |  |
| usagetype | varchar(64) | NO |  |  |  |
| qadocumentid | int | NO |  |  |  |
| servicedocumentid | int | NO |  |  |  |
| ifudocid | int | NO |  |  |  |
| packingdocid | int | NO |  |  |  |
| techdocid | int | NO |  |  |  |
| officialshelflife | int | NO |  |  |  |
| importtariff | varchar(64) | NO |  |  |  |
| mhraregnumber | varchar(24) | NO |  |  |  |
| complianceimporter | int | NO |  |  |  |
| officialimportercid | int | NO |  |  |  |
| manufacturercid | int | NO |  |  |  |
| mhraregnumbercid | int | NO |  |  |  |
| umdns | varchar(32) | NO |  |  |  |
| firstonmarket | varchar(12) | NO |  |  |  |
| ecdirective | varchar(3) | NO |  |  |  |
| supportdate | varchar(12) | NO |  |  |  |
| workinglife | varchar(64) | NO |  |  |  |
| postdelinspection | int | NO |  |  |  |
| reprocessuse | varchar(4) | NO |  |  |  |
| reprocesscycles | varchar(11) | NO |  |  |  |
| datastorage | varchar(4) | NO |  |  |  |
| dataconnection | varchar(4) | NO |  |  |  |
| safetymeasures | varchar(4) | NO |  |  |  |
| performanceqatest | int | NO |  |  |  |
| supguarantee | varchar(12) | NO |  |  |  |
| labelbackdocid | int | NO |  |  |  |
| hostauthorityrefnumber | longtext | NO |  |  |  |
| sellablealarmlimit | int | NO |  |  |  |
| canreprocesscycles | varchar(4) | NO |  |  |  |
| decontamination | varchar(64) | NO |  |  |  |
| QAMeasures | varchar(32) | NO |  |  |  |
| manprodliabdocid | int | NO |  |  |  |
| goodsoutlabelid | int | NO |  |  |  |
| paqdocpackid | int | NO |  |  |  |
| cn22desc | varchar(64) | NO |  |  |  |
| cleandocid | int | NO |  |  |  |
| officialservicedocid | int | NO |  |  |  |
| EUDAMED | varchar(32) | NO |  |  |  |
| rohs2 | varchar(3) | NO |  |  |  |
| custrepreview | bigint | NO |  |  |  |
| xrefgroup | varchar(48) | NO |  |  |  |
| webstockoptions | int | NO |  |  |  |
| webstockqty | int | NO |  |  |  |
| webstockpercent | int | NO |  |  |  |
| goodsinproceduredocid | int | NO |  |  |  |
| extrasearch | longtext | NO |  |  |  |
| hideinvoicezeros | int | NO |  |  |  |
| minimumstoragetemperature | varchar(8) | NO |  |  |  |
| maximumstoragetemperature | varchar(8) | NO |  |  |  |
| minimumrelhumid | varchar(8) | NO |  |  |  |
| maximumrelhumid | varchar(8) | NO |  |  |  |
| feedbackurllink | varchar(128) | NO |  |  |  |
| shopifydesc | longtext | NO |  |  |  |
| shopifytitle | varchar(70) | NO |  |  |  |
| Shopify_Tag_String | varchar(200) | NO |  |  |  |
| Shopify_Product_Type | varchar(200) | NO |  |  |  |
| Shopify_SEO_Title | varchar(200) | NO |  |  |  |
| Shopify_SEO_Description | varchar(200) | NO |  |  |  |
| shopify_url_img | varchar(200) | NO |  |  |  |
| AI_FAQURL | varchar(128) | NO |  |  |  |
| exclusivetomemo | longtext | NO |  |  |  |
| fda_number | varchar(128) | NO |  |  |  |
| excludestockcount | tinyint | NO |  |  |  |
| allowpriceexport | tinyint | NO |  |  |  |

## `stocklist_tarriffs_consumables`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mainstkref | varchar(24) | NO |  |  |  |
| consumablestkref | varchar(24) | NO |  |  |  |
| addedon | int | NO |  |  |  |
| addedby | int | NO |  |  |  |

## `stocklist_tarriffs_distributionrights`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(24) | NO |  |  |  |
| crm_company_id | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| Description | varchar(64) | NO |  |  |  |

## `stocklist_tarriffs_exchangerates`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(16) | NO |  |  |  |
| currency | varchar(5) | NO |  |  |  |
| currency_set | float(10,6) | NO |  |  |  |
| currency_min | float(10,6) | NO |  |  |  |
| currency_max | float(10,6) | NO |  |  |  |

## `stocklist_tarriffs_exchangerates_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(16) | NO |  |  |  |
| currency | varchar(5) | NO |  |  |  |
| currency_set | float(10,6) | NO |  |  |  |
| currency_min | float(10,6) | NO |  |  |  |
| currency_max | float(10,6) | NO |  |  |  |
| changeon | int | NO |  |  |  |
| changedby | int | NO |  |  |  |

## `stocklist_tarriffs_field_countrys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(24) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| countrycode | int | NO |  |  |  |
| countryname | varchar(128) | NO |  |  |  |
| fieldname | varchar(64) | NO |  |  |  |
| answer | longtext | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `stocklist_tarriffs_field_description`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| fieldreference | varchar(64) | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |
| longdesc | longtext | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| iscid | int | NO |  |  |  |
| fieldanswertype | int | NO |  |  |  |
| ppaqrequirement | int | NO |  |  |  |
| enablecountries | int | NO |  |  |  |
| ppaqrequirementid | varchar(5) | NO |  |  |  |
| showoninfoscreen | tinyint | NO |  |  |  |

## `stocklist_tarriffs_fieldhistory`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| fieldname | varchar(64) | NO |  |  |  |
| answer | longtext | NO |  |  |  |
| stockref | varchar(16) | NO |  |  |  |
| validatedby | int | NO |  |  |  |
| validatedon | bigint | NO |  | 0 |  |
| hostcompanyid | int | NO |  |  |  |

## `stocklist_tarriffs_fieldhistory_notification`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| fieldname | varchar(64) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| userid | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |

## `stocklist_tarriffs_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(64) | NO |  |  |  |
| tariff | varchar(16) | NO |  |  |  |
| spare | varchar(16) | NO |  |  |  |
| warranty_customer | varchar(12) | NO |  |  |  |
| warranty_supplier | varchar(12) | NO |  |  |  |
| warranty_distributor | varchar(12) | NO |  |  |  |
| ce_marking | varchar(10) | NO |  |  |  |
| ce_marking_standards | varchar(10) | NO |  |  |  |
| showdatecode | char(3) | NO |  |  |  |
| usebydatemonths | int | NO |  | 0 |  |
| weelabel | char(2) | NO |  |  |  |
| ean13 | varchar(13) | NO |  |  |  |
| qa_type | int | NO |  |  |  |
| attacheditems | varchar(3) | NO |  |  |  |
| equipment_type | varchar(96) | NO |  |  |  |
| ceclass | varchar(16) | NO |  |  |  |
| safclass | varchar(4) | NO |  |  |  |
| saftype | varchar(4) | NO |  |  |  |
| cmdclass | varchar(16) | NO |  |  |  |
| cefileid | int | NO |  |  |  |
| prelabeltext | longtext | NO |  |  |  |
| lastcost | varchar(24) | NO |  |  |  |
| natonumber | varchar(36) | NO |  |  |  |
| stock_value_tag | varchar(24) | NO |  |  |  |
| nhs_eclass | varchar(5) | NO |  |  |  |
| thumbnailurl | varchar(250) | NO |  |  |  |
| imageurl | varchar(250) | NO |  |  |  |
| enable_quick_serial | varchar(1) | NO |  |  |  |
| weetick | varchar(4) | NO |  |  |  |
| weeweight | varchar(12) | NO |  |  |  |
| weeconsumable | varchar(4) | NO |  |  |  |
| label_description | varchar(96) | NO |  |  |  |
| showfactorydate | varchar(5) | NO |  |  |  |
| creationdate | int | NO |  |  |  |
| allow_dupsn | tinyint(1) | NO |  |  |  |
| freecarriage | tinyint(1) | NO |  |  |  |
| ppq | varchar(32) | NO |  |  |  |
| audited | int | NO |  |  |  |
| nhscataloguecode | varchar(32) | NO |  |  |  |
| latex | varchar(2) | NO |  |  |  |
| coshh | varchar(2) | NO |  |  |  |
| electromedical | varchar(2) | NO |  |  |  |
| environmentallyfriendly | varchar(2) | NO |  |  |  |
| ethicallysourced | varchar(2) | NO |  |  |  |
| whilestockslast | varchar(2) | NO |  |  |  |
| updatedby | varchar(32) | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| warranty_extendedtext | longtext | NO |  |  |  |
| uk_contract_price_percent | float(10,2) | NO |  |  |  |
| companyid | varchar(12) | NO |  |  |  |
| uk_contract_price_percent_addedby | varchar(32) | NO |  |  |  |
| uk_contract_price_percent_addedon | int | NO |  |  |  |
| minstock | int | NO |  |  |  |
| scrollbar | varchar(250) | NO |  |  |  |
| stock_count | int | NO |  |  |  |
| stock_cost | float | NO |  |  |  |
| stock_value | float | NO |  |  |  |
| GHX_description | varchar(128) | NO |  |  |  |
| freec | varchar(12) | NO |  |  |  |
| auditedon | int | NO |  |  |  |
| auditedby | varchar(64) | NO |  |  |  |
| pricedesc | varchar(255) | NO |  |  |  |
| isrepaircode | varchar(5) | NO |  |  |  |
| duelsn | varchar(7) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| sellbydatemonthsfrombarcode | int | NO |  |  |  |

## `stocklist_tarriffs_related_items`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(16) | NO |  |  |  |
| related_stock_ref | varchar(16) | NO |  |  |  |
| addedby | varchar(36) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| relation_type | varchar(64) | NO |  |  |  |
| t | int | NO |  |  |  |

## `stocklist_tarriffs_tag_value`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| stock_value_tag | varchar(32) | NO |  |  |  |
| status | int | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |

## `stocklist_tarriffs_useraware_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |

## `stocklist_tarriffs_usersaware`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| userid | int | NO |  |  |  |
| tarriffid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| type | int | NO |  |  |  |
| stockref | varchar(16) | NO |  |  |  |

## `stocklist_value_tags`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(24) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| stock_value_tag | varchar(128) | NO |  |  |  |
| hidefromyearend | bigint | NO |  | 0 |  |
| setby | int | NO |  |  |  |
| seton | bigint | NO |  | 0 |  |

## `stocklisttemp`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| STOCK_REFE | varchar(16) | NO |  |  |  |
| SEARCH_REF | varchar(18) | YES |  |  |  |
| SEARCH_RE1 | varchar(18) | YES |  |  |  |
| DESCRIPTIO | varchar(40) | YES |  |  |  |
| ANALYSIS_C | varchar(8) | YES |  |  |  |
| CATEGORY | varchar(35) | YES |  |  |  |
| SELLING_PR | decimal(10,2) | YES |  |  |  |
| COST_PRICE | decimal(10,2) | YES |  |  |  |
| LAST_COST_ | decimal(10,2) | YES |  |  |  |
| EXTEND_DESC | longtext | YES |  |  |  |
| SALE_PRICE | decimal(10,2) | YES |  |  |  |
| UNIT_WEIGHT | varchar(100) | YES |  |  |  |
| UNIT_VOL | varchar(100) | YES |  |  |  |
| QUANTITY_I | decimal(10,2) | YES |  |  |  |
| SUPERSEDED | varchar(40) | YES |  |  |  |
| MEMO | longtext | YES |  |  |  |
| PROFILE_CO | varchar(40) | YES |  |  |  |
| ONPURCHASEORDER | varchar(10) | YES |  |  |  |
| ONSALEORDER | varchar(10) | YES |  |  |  |
| NLACCOUNT | varchar(8) | NO |  |  |  |
| companyid | varchar(32) | NO |  |  |  |

## `stocktran`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Stock_ref | varchar(16) | NO |  |  |  |
| Warehouse | varchar(4) | NO |  |  |  |
| Trans_type | varchar(10) | NO |  |  |  |
| Date | date | NO |  | 0000-00-00 |  |
| Quantity | int | NO |  | 0 |  |
| Quantity_Moved | int | NO |  | 0 |  |
| Reference | varchar(16) | NO |  |  |  |
| Account | varchar(8) | NO |  |  |  |
| Cost_price | float | NO |  | 0 |  |
| Selling_Value | float | NO |  | 0 |  |
| Time_Stamp | varchar(8) | NO |  |  |  |
| Description | varchar(40) | NO |  |  |  |
| Analysis_code | varchar(8) | NO |  |  |  |
| Catagory | varchar(35) | NO |  |  |  |
| Last_cost | decimal(18,6) | NO |  | 0.000000 |  |
| Sales_Code | varchar(8) | NO |  |  |  |
| universaltime | bigint | NO |  | 0 |  |
| year | decimal(10,0) | NO |  | 0 |  |
| company | varchar(12) | NO |  |  |  |
| orderid | int | NO |  |  |  |
| deliveryid | int | NO |  |  |  |
| dlfield | varchar(48) | NO |  |  |  |
| poid | int | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| company_id | int | NO |  |  |  |

## `stocktran_delme`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Stock_ref | varchar(16) | NO |  |  |  |
| Warehouse | varchar(4) | NO |  |  |  |
| Trans_type | varchar(10) | NO |  |  |  |
| Date | date | NO |  | 0000-00-00 |  |
| Quantity | int | NO |  | 0 |  |
| Quantity_Moved | int | NO |  | 0 |  |
| Reference | varchar(10) | NO |  |  |  |
| Account | varchar(8) | NO |  |  |  |
| Cost_price | float | NO |  | 0 |  |
| Selling_Value | float | NO |  | 0 |  |
| Time_Stamp | varchar(8) | NO |  |  |  |
| Description | varchar(40) | NO |  |  |  |
| Analysis_code | varchar(8) | NO |  |  |  |
| Catagory | varchar(35) | NO |  |  |  |
| Last_cost | decimal(18,6) | NO |  | 0.000000 |  |
| Sales_Code | varchar(8) | NO |  |  |  |
| universaltime | bigint | NO |  | 0 |  |
| year | decimal(10,0) | NO |  | 0 |  |
| company | varchar(12) | NO |  |  |  |

## `stockview`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| STOCK_REF | varchar(16) | YES |  |  |  |
| STOCK_PIC | varchar(200) | YES |  |  |  |
| STOCK_PIC_TN | varchar(200) | YES |  |  |  |

## `supplier_freight`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| opera_acc | varchar(16) | NO |  |  |  |
| tax | float | NO |  | 0 |  |
| freight | float | NO |  | 0 |  |

## `supplier_items`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | bigint | NO | PRI |  | auto_increment |
| POR | varchar(100) | NO |  |  |  |
| OrderLine | varchar(100) | NO |  |  |  |
| SuppAccount | varchar(100) | NO |  |  |  |
| SuppReference | varchar(100) | NO |  |  |  |
| OperaReference | varchar(100) | NO |  |  |  |
| Quantity_Required | int | NO |  |  |  |
| Quantity_Received | int | NO |  |  |  |
| Date_Required | bigint | NO |  |  |  |
| Date_Received | bigint | NO |  |  |  |
| Price | float(10,2) | NO |  |  |  |
| Value | float(10,2) | NO |  |  |  |
| Order_complete | varchar(100) | NO |  |  |  |
| Date_created | bigint | NO |  |  |  |
| estimateshipdate | bigint | NO |  |  |  |
| company | varchar(12) | NO |  |  |  |
| removepologby | int | NO |  |  |  |
| removepologbyon | bigint | NO |  | 0 |  |
| hostcompanyid | int | NO |  |  |  |
| lineid | int | NO |  |  |  |

## `supplier_prices_workingdb`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| workinglistid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| stkref | varchar(24) | NO |  |  |  |
| breakqty | int | NO |  | 0 |  |
| price | float(10,3) | NO |  | 0.000 |  |
| currencyid | int | NO |  |  |  |
| status | int | NO |  |  |  |
| memo | longtext | YES |  |  |  |

## `supplier_prices_workinglist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| description | varchar(100) | NO |  |  |  |
| createdon | bigint | NO |  |  |  |
| createdby | int | NO |  |  |  |
| status | int | NO |  |  |  |
| memo | longtext | YES |  |  |  |
| committedon | bigint | NO |  |  |  |
| committedby | int | NO |  |  |  |

## `supplier_returns_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| headerid | int | NO |  |  |  |
| serialid | int | NO |  |  |  |
| serialnumber | varchar(100) | NO |  |  |  |
| stock_ref | varchar(100) | NO |  |  |  |
| opera_por | varchar(100) | NO |  |  |  |
| date_added | varchar(100) | NO |  |  |  |
| date_returned | varchar(100) | NO |  |  |  |
| date_completed | bigint | NO |  |  |  |
| addedby | varchar(100) | NO |  |  |  |
| complete_replaced | char(1) | NO |  |  |  |
| complete_nofaultfound | char(1) | NO |  |  |  |
| complete_repaired | char(1) | NO |  |  |  |
| complete_credit | char(1) | NO |  |  |  |
| complete_notes | longtext | NO |  |  |  |
| complete_out_warranty | char(1) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| fault | longtext | NO |  |  |  |
| replacedwithsn | varchar(32) | NO |  |  |  |
| individual_rma | varchar(24) | NO |  |  |  |
| tarriff | varchar(128) | NO |  |  |  |
| tarriffon | bigint | NO |  |  |  |
| tarriffby | int | NO |  |  |  |
| complete_un_repaired | char(1) | NO |  |  |  |
| original_headerid | int | NO |  |  |  |
| porref | int | NO |  |  |  |
| porprice | float(10,2) | NO |  |  |  |

## `supplier_returns_header`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| supplier_opera_id | varchar(100) | NO |  |  |  |
| manufacturer_rma | varchar(100) | NO |  |  |  |
| viamed_ref | varchar(100) | NO |  |  |  |
| date_created | varchar(100) | NO |  |  |  |
| date_shipped | varchar(100) | NO |  |  |  |
| date_returned | varchar(100) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| fax1 | varchar(100) | NO |  |  |  |
| tel1 | varchar(100) | NO |  |  |  |
| adl5 | varchar(100) | NO |  |  |  |
| adl4 | varchar(100) | NO |  |  |  |
| adl3 | varchar(100) | NO |  |  |  |
| adl2 | varchar(100) | NO |  |  |  |
| adl1 | varchar(100) | NO |  |  |  |
| supcont | varchar(100) | NO |  |  |  |
| supname | varchar(100) | NO |  |  |  |
| complete_notes | longtext | NO |  |  |  |
| customs_value | varchar(100) | NO |  |  |  |
| closedby | varchar(64) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| companyid_crm | int | NO |  |  |  |
| contactid_crm | int | NO |  |  |  |
| trackingnumber | varchar(128) | NO |  |  |  |
| shippedby | int | NO |  |  |  |
| statustext | varchar(64) | NO |  |  |  |
| statustexton | bigint | NO |  | 0 |  |
| statustextby | int | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `supplier_returns_reactions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| return_id | int | NO |  |  |  |
| reaction_date | bigint | NO |  |  |  |
| reaction_by | int | NO |  |  |  |
| reviewed_date | bigint | NO |  |  |  |
| reviewed_by | int | NO |  |  |  |
| followonissue | int | NO |  |  |  |

## `supplier_returns_suppplierinfo`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| operaaccount | varchar(12) | NO |  |  |  |
| memo | longtext | NO |  |  |  |

## `t4t`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| detail | varchar(20) | NO |  |  |  |
| username | varchar(30) | NO |  |  |  |
| password | varchar(30) | NO |  |  |  |
| type | varchar(50) | NO |  |  |  |
| item | varchar(50) | NO |  |  |  |
| price | varchar(20) | NO |  |  |  |

## `tagged`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| account | varchar(20) | YES |  |  |  |
| ip | varchar(20) | YES |  |  |  |

## `tedcomp`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| STK_REF | varchar(40) | NO |  |  |  |
| SENSOR_ | varchar(255) | NO |  |  |  |
| DISTRIBUTO | varchar(255) | YES |  |  |  |
| PT_NOS_ | varchar(255) | YES |  |  |  |
| OEM | varchar(255) | YES |  |  |  |
| INSTRUMENT | varchar(255) | YES |  |  |  |
| MAN__NO | varchar(255) | YES |  |  |  |
| DATE | datetime | YES |  |  |  |
| MANUFACTUR | varchar(255) | YES |  |  |  |
| INT | varchar(255) | YES |  |  |  |
| SOURCE | varchar(255) | YES |  |  |  |
| NOTES | varchar(255) | YES |  |  |  |
| ID | int | NO | PRI |  | auto_increment |

## `tedcomp_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| oem | varchar(64) | NO |  |  |  |
| oempn | varchar(128) | NO |  |  |  |
| user | int | NO |  |  |  |
| stkref | varchar(64) | NO |  |  |  |
| nowis | bigint | NO |  | 0 |  |

## `telfeedback`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| callid | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| stockref | varchar(64) | NO |  |  |  |
| answer | longtext | NO |  |  |  |
| question | longtext | NO |  |  |  |
| addedby | int | NO |  |  |  |

## `tellog`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| userid | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| COMPANY | varchar(128) | NO |  |  |  |
| CONTACT | varchar(64) | NO |  |  |  |
| TEL | varchar(64) | NO |  |  |  |
| OPERA | varchar(10) | NO |  |  |  |
| initialnotes | longtext | NO |  |  |  |
| createdby | int | NO |  |  |  |
| createdon | bigint | NO |  |  |  |
| currentuser | int | NO |  |  |  |
| lastread | int | NO |  |  |  |
| status | int | NO |  |  |  |
| deadline | int | NO |  |  |  |
| completedby | int | NO |  |  |  |
| completedon | bigint | NO |  |  |  |
| issueid | int | NO |  |  |  |
| hostcompany_id | int | NO |  |  |  |
| emailaddress | varchar(200) | NO |  |  |  |
| ctype | varchar(12) | NO |  |  |  |
| customercomplaint | int | NO |  |  |  |
| customercomplaintreviewedby | int | NO |  |  |  |
| customercomplaintreviewedon | bigint | NO |  |  |  |
| madetoorder | int | NO |  |  |  |
| marketingindexid | int | NO |  |  |  |

## `tellognotes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| callid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| CONTACT | varchar(64) | NO |  |  |  |
| COMPANY | varchar(128) | NO |  |  |  |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| currentuser | int | NO |  |  |  |

## `telorder`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ctel | varchar(60) | NO |  |  |  |
| cname | varchar(40) | NO |  |  |  |
| cdept | varchar(40) | NO |  |  |  |
| cemail | varchar(80) | NO |  |  |  |
| dacc | varchar(60) | NO |  |  |  |
| dname | varchar(45) | NO |  |  |  |
| dadd1 | varchar(45) | NO |  |  |  |
| dadd2 | varchar(45) | NO |  |  |  |
| dadd3 | varchar(45) | NO |  |  |  |
| dadd4 | varchar(45) | NO |  |  |  |
| dpost | varchar(12) | NO |  |  |  |
| dtel | varchar(45) | NO |  |  |  |
| iacc | varchar(60) | NO |  |  |  |
| iname | varchar(60) | NO |  |  |  |
| iadd1 | varchar(45) | NO |  |  |  |
| iadd2 | varchar(45) | NO |  |  |  |
| iadd3 | varchar(45) | NO |  |  |  |
| iadd4 | varchar(60) | NO |  |  |  |
| ipost | varchar(12) | NO |  |  |  |
| itel | varchar(45) | NO |  |  |  |
| torder | varchar(45) | NO |  |  |  |
| tcard | varchar(60) | NO |  |  |  |
| tname | varchar(45) | NO |  |  |  |
| tcardnumber | varchar(60) | NO |  |  |  |
| tswitchnumber | varchar(45) | NO |  |  |  |
| tsecnumber | varchar(10) | NO |  |  |  |
| tstartdate | varchar(12) | NO |  |  |  |
| texpdate | varchar(12) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| takenby | varchar(32) | NO |  |  |  |
| takenon | bigint | NO |  | 0 |  |
| type | varchar(5) | NO |  |  |  |
| thousenum | varchar(8) | NO |  |  |  |
| tpostcode | varchar(14) | NO |  |  |  |
| carradvice | varchar(12) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| tellogid | int | NO |  |  |  |

## `telorderitems`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| order_id | int | NO |  | 0 |  |
| stock_ref | varchar(12) | NO |  |  |  |
| stock_desc | varchar(40) | NO |  |  |  |
| quantity | decimal(8,2) | NO |  | 0.00 |  |
| unit_price | decimal(10,2) | NO |  | 0.00 |  |

## `temp_ean13_distribution`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(16) | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |
| eancodefixed | varchar(13) | NO |  |  |  |

## `tempfolderscan`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| folder | varchar(100) | NO |  |  |  |
| scanned | varchar(100) | NO |  |  |  |

## `temporaryserialnumber`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stkref | varchar(100) | NO |  |  |  |
| porref | varchar(100) | NO |  |  |  |
| text | varchar(100) | NO |  |  |  |
| frm | varchar(100) | NO |  |  |  |
| too | varchar(100) | NO |  |  |  |
| qty | varchar(100) | NO |  |  |  |
| dsc | varchar(100) | NO |  |  |  |
| batchnumber | varchar(100) | NO |  |  |  |
| location | varchar(100) | NO |  |  |  |
| user | varchar(100) | NO |  |  |  |
| man_date | varchar(12) | NO |  |  |  |
| man_use_by | varchar(12) | NO |  |  |  |
| multiid | varchar(32) | NO |  |  |  |
| duel | varchar(5) | NO |  |  |  |
| expiredate | int | NO |  |  |  |
| vui | int | NO |  |  |  |
| goodsinid | int | NO |  |  |  |
| lineid | int | NO |  |  |  |

## `tender_reviewscreen`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| tenderreference | varchar(128) | NO |  |  |  |
| description | longtext | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| reviewedon | bigint | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| status | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| closed | int | NO |  |  |  |

## `tp_analysersales`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Stock_ref | varchar(100) | NO |  |  |  |
| Description | varchar(100) | NO |  |  |  |
| Use_cost | decimal(10,2) | NO |  | 0.00 |  |
| Ave_selling | decimal(10,2) | NO |  | 0.00 |  |
| Total_sold | decimal(10,2) | NO |  | 0.00 |  |
| Gross_profit | decimal(10,2) | NO |  | 0.00 |  |
| Gross_sales | decimal(10,2) | NO |  | 0.00 |  |
| year | varchar(100) | NO |  |  |  |

## `unspsc`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ClassCode | varchar(8) | NO |  |  |  |
| ClassDesc | varchar(64) | NO |  |  |  |
| CommodityCode | varchar(8) | NO |  |  |  |
| CommodityDesc | longtext | NO |  |  |  |

## `user_groups`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |

## `user_groups_linked`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| userid | int | NO |  |  |  |
| groupid | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |

## `vandagraph_invoices`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Account | varchar(16) | NO |  |  |  |
| Date | varchar(12) | NO |  | 0000-00-00 |  |
| Reference | varchar(24) | NO |  |  |  |
| Customer_r | varchar(10) | NO |  |  |  |
| Type | varchar(10) | NO |  |  |  |
| Value | float(9,2) | NO |  | 0.00 |  |
| Vat_Value | float(9,2) | NO |  | 0.00 |  |
| Paid_Indic | varchar(10) | NO |  |  |  |
| Paid_Flag | varchar(8) | NO |  |  |  |
| F_Currency | char(3) | NO |  |  |  |
| F_Exch_Ra | float(7,6) | NO |  | 0.000000 |  |
| F_Decimal_ | float | NO |  | 0 |  |
| Foreign_VA | varchar(12) | NO |  |  |  |
| Sales_regi | char(3) | NO |  |  |  |
| Sales_Terr | char(3) | NO |  |  |  |
| Sales_type | char(3) | NO |  |  |  |
| Account1 | varchar(8) | NO |  |  |  |
| Name | varchar(30) | NO |  |  |  |
| Cust_analy | varchar(6) | NO |  |  |  |
| Customers_ | varchar(40) | NO |  |  |  |
| Customers1 | varchar(40) | NO |  |  |  |
| universaltime | bigint | NO |  | 0 |  |
| year | int | NO |  |  |  |
| iredata | varchar(5) | NO |  |  |  |
| month | int | NO |  |  |  |
| oldrecords | varchar(1) | NO |  |  |  |
| forceremoveon | bigint | NO |  | 0 |  |
| forceremoveby | int | NO |  |  |  |
| x | varchar(1) | NO |  |  |  |
| matchid | int | NO |  |  |  |
| orderid | int | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |

## `vandagraph_nom`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ACCOUNT | varchar(255) | YES |  |  |  |
| COSTCENT | varchar(32) | NO |  |  |  |
| TYPE | varchar(255) | YES |  |  |  |
| SUBTYPE | varchar(255) | YES |  |  |  |
| JOURNAL_NU | int | YES |  |  |  |
| REFERENCE | varchar(255) | YES |  |  |  |
| TRANS_TYPE | varchar(255) | YES |  |  |  |
| TRANS__REF | varchar(255) | YES |  |  |  |
| ENTRY_DATE | datetime | YES |  |  |  |
| VALUE | double | YES |  |  |  |
| YEAR | int | YES |  |  |  |
| PERIOD | int | YES |  |  |  |
| CURRENCY | varchar(255) | YES |  |  |  |
| FOREIGN_VA | varchar(255) | YES |  |  |  |
| EXCHANGE_R | double | YES |  |  |  |
| SOURCECO | varchar(32) | NO |  |  |  |
| ITEM_DESCR | varchar(255) | YES |  |  |  |
| ID | int | NO | PRI |  | auto_increment |
| universaltime | bigint | NO |  | 0 |  |

## `vandagraph_nom_vat_return`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| nom_account | varchar(8) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |

## `vandagraph_operaaddress`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ID | int | NO | PRI |  | auto_increment |
| Account | varchar(8) | NO |  |  |  |
| Name | varchar(30) | NO |  |  |  |
| Address_l1 | varchar(30) | NO |  |  |  |
| Address_l2 | varchar(30) | NO |  |  |  |
| Address_l3 | varchar(30) | NO |  |  |  |
| Address_l4 | varchar(30) | NO |  |  |  |
| Post_code | varchar(8) | NO |  |  |  |
| Telephone | varchar(20) | NO |  |  |  |
| Fax | varchar(20) | NO |  |  |  |
| Account_Contact | varchar(20) | NO |  |  |  |
| Order_Contact | varchar(20) | NO |  |  |  |
| Region | varchar(35) | NO |  |  |  |
| Territory | varchar(35) | NO |  |  |  |
| Cust_type | varchar(35) | NO |  |  |  |
| Cust_analy | varchar(6) | NO |  |  |  |
| Stat_account | varchar(20) | NO |  |  |  |
| Inv_account | varchar(20) | YES |  |  |  |
| Stop | varchar(3) | NO |  |  |  |
| Desp_method | varchar(35) | NO |  |  |  |
| Vat_number | varchar(15) | NO |  |  |  |
| Customers | varchar(40) | NO |  |  |  |
| Customers1 | varchar(40) | NO |  |  |  |
| Pricelist | varchar(100) | NO |  |  |  |
| opera_memo | longtext | NO |  |  |  |
| GM_region | varchar(8) | NO |  |  |  |
| x | int | NO |  |  |  |
| y | int | NO |  |  |  |
| VAT_2CHARA | varchar(2) | NO |  |  |  |

## `vandagraph_picking`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| deliverynote | varchar(16) | NO |  |  |  |
| barcode | int | NO |  |  |  |
| scannedby | varchar(32) | NO |  |  |  |
| scannedon | int | NO |  |  |  |
| systemmatched | varchar(5) | NO |  |  |  |

## `vandagraph_purchaseledger`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Account | varchar(12) | NO |  |  |  |
| Datestamp | varchar(10) | NO |  |  |  |
| Reference | varchar(16) | NO |  |  |  |
| Type | varchar(12) | NO |  |  |  |
| Value | varchar(32) | NO |  |  |  |
| VAT_Value | varchar(32) | NO |  |  |  |
| Paid | varchar(10) | NO |  |  |  |
| Paid_flag | varchar(12) | YES |  |  |  |
| Fcurrency | varchar(5) | NO |  |  |  |
| Fexrate | varchar(12) | NO |  |  |  |
| Fdp | char(2) | NO |  |  |  |
| uniqueid | varchar(12) | NO |  |  |  |
| suppcode | varchar(8) | NO |  |  |  |
| universaltime | varchar(32) | NO |  |  |  |
| datepaid | int | NO |  | 0 |  |

## `vandagraph_stock_locations`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| CODE | int | NO |  |  |  |
| DESCRIPTIO | varchar(75) | NO |  |  |  |
| MANUFACTUR | varchar(20) | NO |  |  |  |
| SUPPLIER | varchar(20) | NO |  |  |  |
| COST | varchar(8) | NO |  |  |  |
| COMMENTS | varchar(35) | NO |  |  |  |
| FARNEL | varchar(10) | NO |  |  |  |
| RS | varchar(10) | NO |  |  |  |
| MANUFACTU2 | varchar(25) | NO |  |  |  |
| GROUP | varchar(15) | NO |  |  |  |
| S | int | NO |  |  |  |
| LOCATION_Z | varchar(5) | NO |  |  |  |
| PRODUCT | varchar(20) | NO |  |  |  |
| AREA_LOCAT | varchar(20) | NO |  |  |  |
| UNIT_COST | text | NO |  |  |  |
| KEY_FIELD | varchar(10) | NO |  |  |  |
| SEL | varchar(1) | NO |  |  |  |
| NEW_ADDITI | varchar(3) | NO |  |  |  |
| QTY | int | NO |  |  |  |
| ORDER | float(6,1) | NO |  |  |  |
| DIVDER | varchar(10) | NO |  |  |  |

## `vandagraph_stocklist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| STOCK_REFE | varchar(16) | NO |  |  |  |
| SEARCH_REF | varchar(18) | YES |  |  |  |
| SEARCH_RE1 | varchar(18) | YES |  |  |  |
| DESCRIPTIO | varchar(40) | YES |  |  |  |
| ANALYSIS_C | varchar(8) | YES |  |  |  |
| CATEGORY | varchar(35) | YES |  |  |  |
| SELLING_PR | decimal(10,2) | YES |  |  |  |
| COST_PRICE | decimal(10,2) | YES |  |  |  |
| LAST_COST_ | decimal(10,2) | YES |  |  |  |
| EXTEND_DESC | longtext | YES |  |  |  |
| SALE_PRICE | decimal(10,2) | YES |  |  |  |
| UNIT_WEIGHT | varchar(100) | YES |  |  |  |
| UNIT_VOL | varchar(100) | YES |  |  |  |
| QUANTITY_I | decimal(10,2) | YES |  |  |  |
| SUPERSEDED | varchar(40) | YES |  |  |  |
| MEMO | longtext | YES |  |  |  |
| PROFILE_CO | varchar(40) | YES |  |  |  |
| ONPURCHASEORDER | varchar(10) | YES |  |  |  |
| ONSALEORDER | varchar(10) | YES |  |  |  |
| NLACCOUNT | varchar(8) | NO |  |  |  |
| hostcompany | int | NO |  |  |  |

## `vandagraph_stocktran`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| Stock_ref | varchar(16) | NO |  |  |  |
| Warehouse | varchar(4) | NO |  |  |  |
| Trans_type | varchar(10) | NO |  |  |  |
| Date | date | NO |  | 0000-00-00 |  |
| Quantity | int | NO |  | 0 |  |
| Quantity_Moved | int | NO |  | 0 |  |
| Reference | varchar(10) | NO |  |  |  |
| Account | varchar(8) | NO |  |  |  |
| Cost_price | decimal(18,6) | NO |  | 0.000000 |  |
| Selling_Value | decimal(18,6) | NO |  | 0.000000 |  |
| Time_Stamp | varchar(8) | NO |  |  |  |
| Description | varchar(40) | NO |  |  |  |
| Analysis_code | varchar(8) | NO |  |  |  |
| Catagory | varchar(35) | NO |  |  |  |
| Last_cost | decimal(18,6) | NO |  | 0.000000 |  |
| Sales_Code | varchar(8) | NO |  |  |  |
| universaltime | bigint | NO |  | 0 |  |
| year | decimal(10,0) | NO |  | 0 |  |
| oldrecord | varchar(1) | NO |  |  |  |

## `vandagraph_temp_serialnumber`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| serialid | int | NO |  | 0 |  |
| user | varchar(64) | NO |  |  |  |

## `vandagraph_vat_returns`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| box1 | float(10,2) | NO |  |  |  |
| box2 | float(10,2) | NO |  |  |  |
| box3 | float(10,2) | NO |  |  |  |
| box4 | float(10,2) | NO |  |  |  |
| box5 | float(10,2) | NO |  |  |  |
| box6 | float(10,2) | NO |  |  |  |
| box7 | float(10,2) | NO |  |  |  |
| box8 | float(10,2) | NO |  |  |  |
| box9 | float(10,2) | NO |  |  |  |
| senton | int | NO |  |  |  |
| sentby | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| year | int | NO |  |  |  |
| qtr | int | NO |  |  |  |
| month | int | NO |  |  |  |
| report | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `viamed_DOC`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| products | varchar(250) | NO |  |  |  |
| description | longtext | NO |  |  |  |
| productnumbers | varchar(100) | NO |  |  |  |
| ce | varchar(32) | NO |  |  |  |
| ceclass | varchar(4) | NO |  |  |  |
| datesigned | bigint | NO |  | 0 |  |
| datecreated | bigint | NO |  | 0 |  |
| createdby | varchar(32) | NO |  |  |  |
| active | int | NO |  |  |  |
| support1 | varchar(3) | NO |  |  |  |
| support2 | varchar(3) | NO |  |  |  |
| support3 | varchar(12) | NO |  |  |  |
| support4 | varchar(3) | NO |  |  |  |
| support5 | varchar(3) | NO |  |  |  |
| support6 | varchar(3) | NO |  |  |  |
| devices | varchar(250) | NO |  |  |  |
| docid | int | NO |  |  |  |
| classroute | varchar(12) | NO |  |  |  |
| familyidtemplate | int | NO |  |  |  |
| support7 | longtext | NO |  |  |  |
| signedby | int | NO |  |  |  |
| rohs | varchar(3) | NO |  |  |  |

## `viamed_active_notes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| type | varchar(12) | NO |  |  |  |
| reference | varchar(12) | NO |  |  |  |
| reminder_date | varchar(24) | NO |  | 0 |  |
| reminderto | varchar(36) | NO |  |  |  |
| lasteditedby | varchar(36) | NO |  |  |  |
| lastediton | varchar(24) | NO |  | 0 |  |
| notes | longtext | NO |  |  |  |

## `viamed_active_sales`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(12) | NO |  |  |  |
| stock_ref | varchar(12) | NO |  |  |  |
| dateupdated | int | NO |  |  |  |
| updatedby | varchar(32) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| crmcompanyid | int | NO |  |  |  |
| crmcontactid | int | NO |  |  |  |

## `viamed_activelist_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| type | varchar(12) | NO |  |  |  |
| number | int | NO |  |  |  |
| addedby | varchar(24) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_alerts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | varchar(32) | NO |  |  |  |
| addedon | int | NO |  |  |  |
| alertuser | varchar(32) | NO |  |  |  |
| stock_ref | varchar(16) | NO |  |  |  |
| por | varchar(12) | NO |  |  |  |
| completed | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |

## `viamed_bom_components`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(16) | NO |  |  |  |
| fileid | int | NO |  | 0 |  |
| componentid | int | NO |  | 0 |  |
| description | varchar(255) | NO |  |  |  |
| type | varchar(32) | NO |  |  |  |

## `viamed_calibration_certificates`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| barcode | int | NO |  |  |  |
| certificateid | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| status | int | NO |  |  |  |
| issrn | varchar(3) | NO |  |  |  |

## `viamed_cash_flow_repeats`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |
| lastdate | int | NO |  |  |  |
| daystorepeat | int | NO |  |  |  |
| monthtorepeat | int | NO |  |  |  |
| yeartorepeat | int | NO |  |  |  |
| amount | float(10,2) | NO |  |  |  |

## `viamed_china_sensors`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| invoice | varchar(16) | NO |  |  |  |
| account | varchar(8) | NO |  |  |  |
| quantity | int | NO |  | 0 |  |
| status | varchar(8) | NO |  |  |  |
| country | varchar(64) | NO |  |  |  |
| signedby | varchar(32) | NO |  |  |  |
| signedon | bigint | NO |  | 0 |  |

## `viamed_cleaning_checklist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| room | varchar(64) | NO |  |  |  |
| area | varchar(64) | NO |  |  |  |
| type | varchar(64) | NO |  |  |  |

## `viamed_cleaning_log`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| date | varchar(24) | NO |  |  |  |
| who | varchar(64) | NO |  |  |  |
| cleanid | int | NO |  | 0 |  |

## `viamed_clockin`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| cardid | int | NO |  |  |  |
| clocktime | bigint | NO |  | 0 |  |
| direction | varchar(11) | NO |  |  |  |
| userid | int | NO |  |  |  |
| username | varchar(64) | NO |  |  |  |
| ip | varchar(64) | NO |  |  |  |

## `viamed_commision_codes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(32) | NO |  |  |  |
| default_rate | int | NO |  | 0 |  |

## `viamed_commision_opera`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| commision_code | varchar(12) | NO |  |  |  |
| opera_account | varchar(12) | NO |  |  |  |

## `viamed_commision_stock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| commision_code | varchar(12) | NO |  |  |  |
| stock_ref | varchar(12) | NO |  |  |  |

## `viamed_computers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| netname | varchar(64) | NO |  |  |  |
| locationid | int | NO |  | 0 |  |
| os | varchar(64) | NO |  |  |  |
| ip | varchar(64) | NO |  |  |  |
| user | varchar(64) | NO |  |  |  |
| funt | varchar(64) | NO |  |  |  |

## `viamed_computers_links`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| pcid | int | NO |  | 0 |  |
| softid | int | NO |  | 0 |  |
| dateupdated | bigint | NO |  | 0 |  |
| serial_code | varchar(250) | NO |  |  |  |

## `viamed_computers_software`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| name | varchar(128) | NO |  |  |  |
| type | varchar(12) | NO |  |  |  |

## `viamed_control_panel`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Function_control | varchar(100) | NO |  |  |  |
| Action | varchar(100) | NO |  |  |  |
| When1 | bigint | NO |  | 0 |  |
| Who1 | varchar(32) | NO |  |  |  |
| stage | varchar(11) | NO |  |  |  |
| notes | longtext | NO |  |  |  |

## `viamed_costings_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| applied | int | NO |  |  |  |
| add_type | varchar(32) | NO |  |  |  |
| costingcode | varchar(24) | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |

## `viamed_costtype_stkref_value`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| costtype | varchar(12) | NO |  |  |  |
| stk_ref | varchar(12) | NO |  |  |  |
| value | varchar(12) | NO |  |  |  |

## `viamed_countrymap`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mapid | int | NO |  |  |  |
| worldx | int | NO |  |  |  |
| worldy | int | NO |  |  |  |
| closex | int | NO |  |  |  |
| closey | int | NO |  |  |  |
| operaaccount | varchar(12) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| country | varchar(32) | NO |  |  |  |
| zoomx | int | NO |  |  |  |
| zoomy | int | NO |  |  |  |
| companyid | int | NO |  |  |  |

## `viamed_creditnotes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Reference | varchar(24) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `viamed_creditors`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(12) | NO |  |  |  |
| dateinvoiced | bigint | NO |  | 0 |  |
| reference | varchar(32) | NO |  |  |  |
| reference2 | varchar(32) | NO |  |  |  |
| value | float(10,2) | NO |  |  |  |
| vatvalue | float(10,2) | NO |  |  |  |
| balance | float(10,2) | NO |  |  |  |
| paid | varchar(12) | NO |  |  |  |
| paid_flag | varchar(12) | NO |  |  |  |
| currency | varchar(5) | NO |  |  |  |
| xrate | float(10,2) | NO |  |  |  |
| dateduetopay | bigint | NO |  | 0 |  |

## `viamed_customer_attachments`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(100) | NO |  |  |  |
| srnid | varchar(100) | NO |  |  |  |
| srn_detailid | varchar(100) | NO |  |  |  |
| uploadby | varchar(100) | NO |  |  |  |
| uploadon | varchar(100) | NO |  |  |  |
| fileid | varchar(100) | NO |  |  |  |

## `viamed_customer_oem_confirmed`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| xrefcode | varchar(20) | NO |  |  |  |
| oem | varchar(48) | NO |  |  |  |
| oempn | varchar(48) | NO |  |  |  |
| callid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_customer_repairs_activelist_log`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| srs | int | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| notes | longtext | NO |  |  |  |
| status | int | NO |  |  |  |

## `viamed_customer_repairs_activelist_log_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| srs | int | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| notes | longtext | NO |  |  |  |
| status | int | NO |  |  |  |

## `viamed_customer_repairs_activelist_log_status`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(250) | NO |  |  |  |

## `viamed_customer_repairs_clean_faults`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(24) | NO |  |  |  |
| actual_fault | varchar(250) | NO |  |  |  |
| clean_fault | varchar(250) | NO |  |  |  |
| true_fault | varchar(10) | NO |  |  |  |
| group_fault | varchar(128) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| furtheractionlist | int | NO |  |  |  |
| furtheractionnotes | longtext | NO |  |  |  |

## `viamed_customer_repairs_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| existing_tracking_number | varchar(100) | NO |  |  |  |
| accessory_of_srndetailid | varchar(100) | NO |  |  |  |
| previous_srnid | varchar(100) | NO |  |  |  |
| previous_srndetailid | varchar(100) | NO |  |  |  |
| repair_header_id | varchar(100) | NO |  |  |  |
| barcode | varchar(100) | NO |  |  |  |
| equipment_type | varchar(100) | NO |  |  |  |
| stock_ref | varchar(100) | NO |  |  |  |
| serialnumber | varchar(100) | NO |  |  |  |
| description | varchar(100) | NO |  |  |  |
| customer_fault_notes | longtext | NO |  |  |  |
| engineer_notes | longtext | NO |  |  |  |
| notes_for_customer | longtext | NO |  |  |  |
| time_to_repair | varchar(100) | NO |  |  |  |
| original_invoice | varchar(100) | NO |  |  |  |
| original_invoice_date | varchar(100) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| status_date | varchar(100) | NO |  |  |  |
| statusby | varchar(100) | NO |  |  |  |
| out_on_invoice | varchar(100) | NO |  |  |  |
| out_on_invoice_date | bigint | NO |  | 0 |  |
| out_on_invoice_by | varchar(100) | NO |  |  |  |
| timeforrepair | varchar(100) | NO |  |  |  |
| quotedate | bigint | NO |  | 0 |  |
| quoteby | varchar(100) | NO |  |  |  |
| quoteaccepteddate | varchar(100) | NO |  |  |  |
| warranty_new | varchar(100) | NO |  |  |  |
| fault_code | varchar(150) | NO |  |  |  |
| warranty_repair | varchar(100) | NO |  |  |  |
| actual_time_to_repair | int | NO |  |  |  |
| original_srs | int | NO |  |  |  |
| customersatisfied | tinyint | NO |  |  |  |
| originalengineerfaultcode | varchar(128) | NO |  |  |  |
| incomingcleantype | varchar(32) | NO |  |  |  |
| old_repair_header_id | int | NO |  |  |  |
| iso_review_issue | int | NO |  |  |  |
| iso_review_issue_on | bigint | NO |  |  |  |
| iso_review_issue_by | int | NO |  |  |  |
| iso_review_issue_reviewed | bigint | NO |  |  |  |

## `viamed_customer_repairs_header`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| opera_ac | varchar(100) | NO |  |  |  |
| customer_order_number | varchar(100) | NO |  |  |  |
| customer_name | varchar(100) | NO |  |  |  |
| customer_department | varchar(100) | NO |  |  |  |
| customer_position | varchar(100) | NO |  |  |  |
| customer_phone | varchar(100) | NO |  |  |  |
| customer_email | varchar(100) | NO |  |  |  |
| company_name | varchar(100) | NO |  |  |  |
| company_phone | varchar(100) | NO |  |  |  |
| repair_notes | longtext | NO |  |  |  |
| issueid | varchar(100) | NO |  |  |  |
| createddate | bigint | NO |  |  |  |
| createdby | varchar(100) | NO |  |  |  |
| bookedin | bigint | NO |  |  |  |
| bookedinby | varchar(100) | NO |  |  |  |
| completedate | varchar(100) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| quote | varchar(100) | NO |  |  |  |
| completedby | varchar(100) | NO |  |  |  |
| viamedquotecontactid | int | NO |  |  |  |
| viamed_ord_number | varchar(10) | NO |  |  |  |
| quotesenton | bigint | NO |  | 0 |  |
| quotesentby | varchar(64) | NO |  |  |  |
| maincompany | varchar(32) | NO |  |  |  |
| original_srs | int | NO |  |  |  |
| responsibleuser | varchar(64) | NO |  |  |  |
| cancelledby | int | NO |  |  |  |
| cancelledon | bigint | NO |  | 0 |  |
| customer_informed_srs_arrived | bigint | NO |  | 0 |  |
| customer_informed_srs_arrived_by | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| goodsinid | int | NO |  |  |  |
| operaquote | varchar(16) | NO |  |  |  |
| issor | int | NO |  |  |  |
| soraddedby | int | NO |  |  |  |
| soraddedon | bigint | NO |  | 0 |  |
| quotechangeby | int | NO |  |  |  |
| quotechangeon | bigint | NO |  | 0 |  |
| waitingcustomerresponseon | bigint | NO |  | 0 |  |
| waitingcustomerresponseby | int | NO |  |  |  |
| expectedlandeddate | bigint | NO |  | 0 |  |
| promisedbackdate | bigint | NO |  | 0 |  |
| customerpaperwork | tinyint | NO |  |  |  |
| cidfix | int | NO |  |  |  |
| marketingindexid | int | NO |  |  |  |
| movetorepairon | bigint | NO |  |  |  |
| movetorepairby | int | NO |  |  |  |
| complaintreviewid | int | NO |  |  |  |
| complaintreviewby | int | NO |  |  |  |
| complaintreviewon | bigint | NO |  |  |  |
| complaintsignedoff | bigint | NO |  |  |  |
| complaintsignedby | int | NO |  |  |  |
| repstatusid | int | NO |  |  |  |

## `viamed_customer_repairs_quotes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| srn_number | varchar(12) | NO |  |  |  |
| stk_ref | varchar(12) | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |
| qty | int | NO |  | 0 |  |
| unitcost | varchar(64) | NO |  |  |  |
| timetorepair | varchar(64) | NO |  |  |  |
| timeofquoteaccepted | varchar(64) | NO |  |  |  |
| status | varchar(5) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| confirmedby | varchar(32) | NO |  |  |  |
| addedon | varchar(32) | NO |  |  |  |
| srn | varchar(10) | NO |  |  |  |

## `viamed_customer_repairs_quotes_items`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| srs | int | NO |  | 0 |  |
| srn | int | NO |  | 0 |  |
| opera_ref | varchar(12) | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |
| partnumber | varchar(24) | NO |  |  |  |
| price | varchar(12) | NO |  |  |  |
| qty | int | NO |  | 0 |  |
| status | varchar(5) | NO |  |  |  |

## `viamed_customer_repairs_quotes_stages`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| srsnumber | int | NO |  |  |  |
| stage | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_customer_repairs_quotes_stages_desc`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |

## `viamed_customer_repairs_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(100) | NO |  |  |  |
| engineer | varchar(32) | NO |  |  |  |
| priority | int | NO |  |  |  |
| updatedby | varchar(32) | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |

## `viamed_customer_stock_references`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(36) | NO |  |  |  |
| customer_ref | varchar(32) | NO |  |  |  |
| opera_account | varchar(10) | NO |  |  |  |
| status | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| customerdescription | longtext | NO |  |  |  |
| companyid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| rawprice | float(10,3) | NO |  |  |  |
| currenyid | int | NO |  |  |  |
| groupcode | varchar(128) | NO |  |  |  |
| dontmixwith | int | NO |  |  |  |
| stocklist_tarriffs_distributionrights | int | NO |  |  |  |
| customsvalue | float(10,2) | NO |  |  |  |
| sordmemo | longtext | NO |  |  |  |
| labelid | int | NO |  |  |  |
| leadtime | varchar(64) | NO |  |  |  |
| infreightpercent | float | NO |  |  |  |
| indutytaxpercent | float | NO |  |  |  |
| pricetype | varchar(64) | NO |  |  |  |
| customertarriff | varchar(24) | NO |  |  |  |
| contacts_product_url | varchar(250) | NO |  |  |  |
| supplierimageurl | varchar(128) | NO |  |  |  |
| rawpricediscount | float(10,2) | NO |  |  |  |

## `viamed_customer_stock_references_groupcodes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| companyid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| groupcode | varchar(128) | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| description | longtext | NO |  |  |  |
| active | tinyint | NO |  |  |  |

## `viamed_customer_stock_references_groupcodes_links`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(96) | NO |  |  |  |
| groupcode | varchar(128) | NO |  |  |  |
| companyid | int | NO |  |  |  |

## `viamed_customer_stock_references_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(36) | NO |  |  |  |
| customer_ref | varchar(32) | NO |  |  |  |
| opera_account | varchar(10) | NO |  |  |  |
| status | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| customerdescription | longtext | NO |  |  |  |
| companyid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| rawprice | float(10,2) | NO |  |  |  |
| currenyid | int | NO |  |  |  |
| groupcode | varchar(128) | NO |  |  |  |
| dontmixwith | int | NO |  |  |  |
| stocklist_tarriffs_distributionrights | int | NO |  |  |  |
| customsvalue | float(10,2) | NO |  |  |  |
| leadtime | varchar(64) | NO |  |  |  |
| infreightpercent | float | NO |  |  |  |
| indutytaxpercent | float | NO |  |  |  |
| customertarriff | varchar(24) | NO |  |  |  |
| rawpricediscount | float(10,2) | NO |  |  |  |

## `viamed_customer_stock_references_images_urls`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| companyid | int | NO |  |  |  |
| stock_ref | varchar(64) | NO |  |  |  |
| supplierref | varchar(64) | NO |  |  |  |
| imageurl | varchar(250) | NO |  |  |  |
| priority | int | NO |  |  |  |
| fname | varchar(64) | NO |  |  |  |

## `viamed_debtors_done`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_debtors_index`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Account | varchar(12) | NO |  |  |  |
| ninety | varchar(20) | NO |  |  |  |
| sixty | varchar(20) | NO |  |  |  |
| thirty | varchar(20) | NO |  |  |  |
| total_due | varchar(20) | NO |  |  |  |

## `viamed_depleted_sensor_bin`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| weightkg | float(10,2) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| sentby | int | NO |  |  |  |
| senton | bigint | NO |  | 0 |  |

## `viamed_depreciation`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| equipmentdescription | varchar(128) | NO |  |  |  |
| cost_price | varchar(64) | NO |  |  |  |
| date_purchased | varchar(64) | NO |  |  |  |
| serialnumber | varchar(64) | NO |  |  |  |
| isopattest_id | varchar(64) | NO |  |  |  |

## `viamed_distributor_search`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| url | longtext | NO |  |  |  |
| urlraw | varchar(250) | NO |  |  |  |
| company | varchar(64) | NO |  |  |  |
| country | varchar(64) | NO |  |  |  |
| countryid | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| status | varchar(32) | NO |  |  |  |
| actionby | varchar(32) | NO |  |  |  |
| actionon | bigint | NO |  | 0 |  |
| reason | varchar(200) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| typedist | int | NO |  |  |  |
| contactname | varchar(64) | NO |  |  |  |
| contactemail | varchar(128) | NO |  |  |  |
| COMPANYID | int | NO |  |  |  |
| MARKETINGID | int | NO |  |  |  |
| status2 | varchar(32) | NO |  |  |  |
| urlinterest | longtext | NO |  |  |  |

## `viamed_distributor_search_critera`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | varchar(64) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| briefnotes | varchar(64) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| status | varchar(12) | NO |  |  |  |
| issueid | int | NO |  |  |  |

## `viamed_distributor_search_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockgroupid | int | NO |  |  |  |
| searchid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| reason | varchar(250) | NO |  |  |  |
| status | varchar(250) | NO |  |  |  |

## `viamed_distributor_search_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| typedist | varchar(24) | NO |  |  |  |

## `viamed_doc_group`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| groupcode | varchar(200) | NO |  |  |  |
| devices | varchar(100) | NO |  |  |  |
| class | varchar(6) | NO |  |  |  |
| description | varchar(200) | NO |  |  |  |
| isodescription | longtext | NO |  |  |  |

## `viamed_drivel`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| name | longtext | NO |  |  |  |
| modified | bigint | NO |  | 0 |  |
| udate | int | NO |  |  |  |
| nail_name | varchar(128) | YES |  |  |  |
| archive | int | NO |  | 0 |  |
| type | varchar(4) | NO |  |  |  |
| special | varchar(3) | NO |  |  |  |
| md5file | varchar(128) | NO |  |  |  |
| hideme | varchar(3) | NO |  |  |  |

## `viamed_essential_isoreq`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| erid | int | NO |  |  |  |
| isoid | int | NO |  |  |  |
| familyid | int | NO |  |  |  |
| techid | int | NO |  |  |  |
| certificate | smallint | NO |  |  |  |

## `viamed_essential_requirements`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Annexipartnum | float | NO |  |  |  |
| Annexipartnumsection | varchar(5) | NO |  |  |  |
| requirement | longtext | NO |  |  |  |
| 2007 | tinyint(1) | NO |  |  |  |
| isheaderonly | tinyint(1) | NO |  |  |  |

## `viamed_essential_requirements_docids`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| familyid | int | NO |  |  |  |
| erid | int | NO |  |  |  |
| techid | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_essential_requirements_new`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| newid | int | NO |  |  |  |

## `viamed_essential_sted`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| erid | int | NO |  |  |  |
| familyid | int | NO |  |  |  |
| applys | int | NO |  |  |  |
| method | varchar(200) | NO |  |  |  |
| methodreference | varchar(200) | NO |  |  |  |

## `viamed_essential_techfile`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| techheaderid | int | NO |  |  |  |
| erid | int | NO |  |  |  |
| familyid | int | NO |  |  |  |

## `viamed_events`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| type | varchar(24) | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |
| event_date | varchar(24) | NO |  |  |  |
| addedby | varchar(42) | NO |  |  |  |
| addedon | varchar(24) | NO |  |  |  |

## `viamed_external_uploads`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| uploadedon | bigint | NO |  | 0 |  |
| processedby | int | NO |  |  |  |
| processedon | bigint | NO |  | 0 |  |
| md | varchar(128) | NO |  |  |  |

## `viamed_file_securuty_check`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| name | longtext | NO |  |  |  |
| modified | bigint | NO |  | 0 |  |
| udate | int | NO |  |  |  |
| nail_name | varchar(128) | NO |  |  |  |
| archive | int | NO |  |  |  |
| type | varchar(4) | NO |  |  |  |
| special | varchar(3) | NO |  |  |  |

## `viamed_goodsinbook`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| bookedinby | varchar(32) | NO |  |  |  |
| bookinon | bigint | NO |  | 0 |  |
| courier | int | NO |  |  |  |
| numberboxes | int | NO |  |  |  |
| supplier | varchar(12) | NO |  |  |  |
| srs | varchar(12) | NO |  |  |  |
| tracking | varchar(48) | NO |  |  |  |
| dsr | varchar(8) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| contactname | varchar(128) | NO |  |  |  |
| condtion | int | NO |  |  |  |

## `viamed_historic_sales`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| file | varchar(8) | NO |  |  |  |
| pegdate | varchar(12) | NO |  |  |  |
| month | int | NO |  |  |  |
| year | int | NO |  |  |  |
| pegref | varchar(32) | NO |  |  |  |
| qty | int | NO |  |  |  |
| opera_reference | varchar(32) | NO |  |  |  |

## `viamed_index_customer_sales`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(16) | NO |  |  |  |
| account | varchar(10) | NO |  |  |  |
| country | varchar(32) | NO |  |  |  |
| month | int | NO |  |  |  |
| year | int | NO |  |  |  |
| qty | varchar(16) | NO |  |  |  |
| invoice_value | float(10,2) | NO |  |  |  |
| region | varchar(32) | NO |  |  |  |
| postcode | varchar(5) | NO |  |  |  |
| x | int | NO |  |  |  |
| y | int | NO |  |  |  |
| company | varchar(24) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| universaltime | bigint | NO |  |  |  |
| importedon | int | NO |  |  |  |
| newsystem | tinyint | NO |  |  |  |

## `viamed_index_customer_sales_invoicevalue`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(10) | NO |  |  |  |
| vat | varchar(64) | NO |  |  |  |
| country | varchar(32) | NO |  |  |  |
| month | int | NO |  |  |  |
| year | int | NO |  |  |  |
| invoice_value | varchar(250) | NO |  |  |  |
| region | varchar(32) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| universaltime | bigint | NO |  |  |  |

## `viamed_index_stock_sales`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(16) | NO |  |  |  |
| month | int | NO |  | 0 |  |
| year | int | NO |  | 0 |  |
| qty | int | NO |  | 0 |  |
| invoice_value | varchar(16) | NO |  |  |  |
| region | varchar(7) | NO |  |  |  |

## `viamed_index_stockgroup_totals`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| groupcodeid | int | NO |  |  |  |
| groupcode | varchar(128) | NO |  |  |  |
| month | int | NO |  |  |  |
| year | int | NO |  |  |  |
| value | float | NO |  |  |  |
| qty | int | NO |  |  |  |
| createdon | bigint | NO |  | 0 |  |
| createdby | varchar(64) | NO |  |  |  |

## `viamed_intrastats_contract_prices`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| expiredate | bigint | NO |  | 0 |  |
| longdesc | longtext | NO |  |  |  |
| percent | varchar(12) | NO |  |  |  |

## `viamed_invoice_tags`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| reference | varchar(24) | NO |  |  |  |
| tagcode | int | NO |  |  |  |

## `viamed_job_filelink`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| jobid | varchar(100) | NO |  |  |  |
| docid | varchar(100) | NO |  |  |  |

## `viamed_job_roles`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| jobid | varchar(100) | NO |  |  |  |
| allowed | varchar(100) | NO |  |  |  |
| trained | varchar(100) | NO |  |  |  |
| userid | varchar(100) | NO |  |  |  |

## `viamed_job_titles`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| companyid | varchar(100) | NO |  |  |  |
| globaljob | varchar(100) | NO |  |  |  |
| subjob | varchar(100) | NO |  |  |  |
| addedby | varchar(100) | NO |  |  |  |
| task | varchar(100) | NO |  |  |  |

## `viamed_letter_templates`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| company | int | NO |  |  |  |
| owner | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| templatename | varchar(128) | NO |  |  |  |
| subjectname | varchar(128) | NO |  |  |  |
| bodytext | longtext | NO |  |  |  |

## `viamed_lost_sales`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(12) | NO |  |  |  |
| stock_ref | varchar(16) | NO |  |  |  |
| customerid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | varchar(32) | NO |  |  |  |
| status | varchar(200) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| recoveredsales | bigint | NO |  | 0 |  |
| sentissue | varchar(5) | NO |  |  |  |
| chasedon | int | NO |  |  |  |
| chasedby | int | NO |  |  |  |
| chasedstatus | int | NO |  |  |  |

## `viamed_lost_sales_mailingid`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| lostsaleid | int | NO |  |  |  |
| mailid | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_lost_sales_status`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| color | varchar(6) | NO |  |  |  |
| canireset | varchar(1) | NO |  |  |  |

## `viamed_lostcustomers_chaseup`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| completedby | int | NO |  |  |  |
| completedon | bigint | NO |  | 0 |  |

## `viamed_mailshot_customer_type`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| customer_type | varchar(32) | NO |  |  |  |

## `viamed_mailshot_customer_type_links`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mailshotid | int | NO |  |  |  |
| customer_type_id | int | NO |  |  |  |
| exchangerate | varchar(12) | NO |  |  |  |

## `viamed_mailshot_department_link`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mailshotid | int | NO |  |  |  |
| departmentid | int | NO |  |  |  |

## `viamed_mailshot_departments`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| department | varchar(120) | NO |  |  |  |

## `viamed_mailshot_description`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| subject | varchar(128) | NO |  |  |  |
| longdesc | longtext | NO |  |  |  |
| fromdate | bigint | NO |  | 0 |  |
| todate | bigint | NO |  | 0 |  |
| addedby | varchar(64) | NO |  |  |  |
| gmfolder | varchar(64) | NO |  |  |  |
| gmdocname | varchar(128) | NO |  |  |  |
| gmuser | varchar(16) | NO |  |  |  |
| special | varchar(3) | NO |  |  |  |
| expnotes | longtext | NO |  |  |  |
| expby | varchar(64) | NO |  |  |  |
| type_customer | varchar(64) | NO |  |  |  |
| generaltype | varchar(3) | NO |  |  |  |
| losttype | varchar(3) | NO |  |  |  |
| existtype | varchar(3) | NO |  |  |  |
| status | varchar(16) | NO |  |  |  |
| waitingon | text | NO |  |  |  |
| waitingfor | longtext | NO |  |  |  |
| operanumber | varchar(12) | NO |  |  |  |
| revdate | bigint | NO |  | 0 |  |
| hostcompanyid | int | NO |  |  |  |

## `viamed_mailshot_documents`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mailshotid | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| preprinted | int | NO |  |  |  |
| packorder | int | NO |  |  |  |
| addedby | varchar(64) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_mailshot_order_critera`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mailid | int | NO |  |  |  |
| add_to_orders | tinyint(1) | NO |  |  |  |
| stock_products | tinyint(1) | NO |  |  |  |
| stock_wild | varchar(8) | NO |  |  |  |
| frequency | int | NO |  |  |  |
| region | tinyint(1) | NO |  |  |  |
| countrys | tinyint(1) | NO |  |  |  |
| customer_type | tinyint(1) | NO |  |  |  |
| newsystem | int | NO |  |  |  |

## `viamed_mailshot_order_region_country`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mailid | int | NO |  |  |  |
| region | varchar(64) | NO |  |  |  |
| country | varchar(64) | NO |  |  |  |
| customertype | varchar(16) | NO |  |  |  |
| stockref | varchar(64) | NO |  |  |  |
| newsystem | int | NO |  |  |  |

## `viamed_mailshot_related_products`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mailshotid | int | NO |  |  |  |
| stockgroup | int | NO |  |  |  |
| stock_ref | varchar(16) | NO |  |  |  |
| relatedreason | int | NO |  |  |  |

## `viamed_mailshot_related_products_reasons`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| reason | varchar(64) | NO |  |  |  |

## `viamed_mailshot_sent_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mailid | int | NO |  |  |  |
| datesent | bigint | NO |  |  |  |
| operaaccount | varchar(12) | NO |  |  |  |
| type | int | NO |  |  |  |
| sentby | varchar(36) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| companyid | int | NO |  |  |  |

## `viamed_mailshot_statuslog`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mailid | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| status | varchar(32) | NO |  |  |  |
| waitingon | varchar(64) | NO |  |  |  |
| waitingfor | longtext | NO |  |  |  |
| addedby | varchar(64) | NO |  |  |  |

## `viamed_marketing_filtercodes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| openaccess | tinyint | NO |  |  |  |

## `viamed_marketing_index`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| marketing_type | int | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| priority | int | NO |  |  |  |
| timetocomplete | int | NO |  |  |  |
| deadlinedate | bigint | NO |  |  |  |
| stage | int | NO |  |  |  |
| longdescription | longtext | NO |  |  |  |
| userincontrol | int | NO |  |  |  |
| usernextaction | int | NO |  |  |  |
| authorisedon | bigint | NO |  |  |  |
| authorisedby | int | NO |  |  |  |
| primaryissueid | int | NO |  |  |  |
| originaldetails | longtext | NO |  |  |  |
| datestarted | bigint | NO |  |  |  |
| joborder | int | NO |  |  |  |
| filtercode | int | NO |  |  |  |
| stoppedon | bigint | NO |  |  |  |
| stopreason | varchar(100) | NO |  |  |  |
| stopby | int | NO |  |  |  |
| completedby | int | NO |  |  |  |
| completedon | bigint | NO |  |  |  |
| awaitingactionof | int | NO |  |  |  |
| briefnotes | varchar(200) | NO |  |  |  |
| briefnoteson | bigint | NO |  |  |  |
| briefnotesby | int | NO |  |  |  |
| followupby | int | NO |  |  |  |
| followupon | bigint | NO |  |  |  |
| imagedocid | int | NO |  |  |  |
| customer_contactid | int | NO |  |  |  |
| customer_companyid | int | NO |  |  |  |
| supplier_contactid | int | NO |  |  |  |
| supplier_companyid | int | NO |  |  |  |
| source_companyid | int | NO |  |  |  |
| source_contactid | int | NO |  |  |  |

## `viamed_marketing_index_share`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| jobid | int | NO |  |  |  |
| sharewith | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_marketing_index_stock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(20) | NO |  |  |  |
| jobid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_marketing_index_users`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| marketingid | int | NO |  |  |  |
| userid | int | NO |  |  |  |
| addedon | int | NO |  |  |  |
| addedby | int | NO |  |  |  |

## `viamed_marketing_jobid_stage_status`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| jobid | int | NO |  |  |  |
| stageid | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| status | int | NO |  |  |  |
| updatedon | bigint | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| stopon | bigint | NO |  |  |  |
| stopby | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| withvui | int | NO |  |  |  |
| withcontactid | int | NO |  |  |  |

## `viamed_marketing_prioritys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(32) | NO |  |  |  |
| color | varchar(7) | NO |  |  |  |

## `viamed_marketing_stages`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | longtext | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| filtercode | int | NO |  |  |  |
| extdesc | longtext | NO |  |  |  |

## `viamed_marketing_ticklist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| status | int | NO |  |  |  |
| deactivatedate | bigint | NO |  | 0 |  |
| followupby | int | NO |  |  |  |
| followupon | bigint | NO |  | 0 |  |
| displayinorders | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `viamed_marketing_ticklist_feedback`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ticklistid | int | NO |  |  |  |
| callid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| orderid | int | NO |  |  |  |
| viamedquotestatusid | int | NO |  |  |  |

## `viamed_marketing_ticklist_mid`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ticklist | int | NO |  |  |  |
| mid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_marketing_type_stage_order`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stage | int | NO |  |  |  |
| type | int | NO |  |  |  |
| ord | int | NO |  |  |  |

## `viamed_marketing_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| template | varchar(3) | NO |  |  |  |
| filtercode | int | NO |  |  |  |

## `viamed_memos_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| memotype | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| opera | varchar(12) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |

## `viamed_motd`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| date | varchar(100) | NO |  |  |  |
| createdby | varchar(100) | NO |  |  |  |
| verifiedby | varchar(100) | NO |  |  |  |
| motd | longtext | NO |  |  |  |

## `viamed_motd_read`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| motdid | int | NO |  |  |  |
| date | varchar(100) | NO |  |  |  |
| userid | varchar(100) | NO |  |  |  |

## `viamed_new_products`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| product_name | varchar(64) | NO |  |  |  |
| marketing_level | int | NO |  | 0 |  |
| current_level | int | NO |  | 0 |  |
| created_by | varchar(32) | NO |  |  |  |
| created_on | bigint | NO |  | 0 |  |
| status | varchar(32) | NO |  |  |  |
| ce_family_type | int | NO |  |  |  |
| coordinator | varchar(64) | NO |  |  |  |
| agendaid | int | NO |  |  |  |
| priority | int | NO |  |  |  |
| projectid | int | NO |  |  |  |

## `viamed_new_products_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| id_requirement | int | NO |  | 0 |  |
| status | varchar(12) | NO |  |  |  |
| added_by | varchar(32) | NO |  |  |  |
| added_on | bigint | NO |  | 0 |  |
| documentindex_id | int | NO |  | 0 |  |
| file_link | varchar(32) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| product_id | int | NO |  | 0 |  |

## `viamed_new_products_requirements`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| market_level | int | NO |  | 0 |  |
| stage | int | NO |  | 0 |  |
| header | varchar(32) | NO |  |  |  |
| added_by | varchar(32) | NO |  |  |  |
| added_on | bigint | NO |  | 0 |  |
| notes | longtext | NO |  |  |  |

## `viamed_newshop_catagorys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| shopid | varchar(128) | NO |  |  |  |
| maincatid | int | NO |  |  |  |
| name | varchar(128) | NO |  |  |  |
| description | longtext | NO |  |  |  |
| image | varchar(64) | NO |  |  |  |
| live | varchar(4) | NO |  |  |  |
| verified | varchar(4) | NO |  |  |  |
| verifiedby | varchar(32) | NO |  |  |  |
| datemod | varchar(32) | NO |  |  |  |
| updateby | varchar(64) | NO |  |  |  |
| displayorder | int | NO |  |  |  |
| altext | varchar(128) | NO |  |  |  |
| industry | int | NO |  |  |  |

## `viamed_newshop_consign_stock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stk_ref | varchar(16) | NO |  |  |  |
| barcode | int | NO |  |  |  |
| serial_number | varchar(64) | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |
| lastupdated | bigint | NO |  | 0 |  |
| lastupdatedby | varchar(128) | NO |  |  |  |
| locationid | int | NO |  |  |  |
| user_status | varchar(36) | NO |  |  |  |
| viamed_status | varchar(12) | NO |  |  |  |
| viamedupdated | int | NO |  |  |  |
| viamedupdateby | varchar(32) | NO |  |  |  |
| used | int | NO |  |  |  |
| jobnumber | varchar(128) | NO |  |  |  |
| jobnumberaddedon | bigint | NO |  | 0 |  |
| jobnumberaddedby | varchar(128) | NO |  |  |  |
| matchedon | bigint | NO |  | 0 |  |
| dilstatus | varchar(5) | NO |  |  |  |
| invnum | varchar(16) | NO |  |  |  |
| completed | int | NO |  |  |  |

## `viamed_newshop_emails`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| subject | varchar(250) | NO |  |  |  |
| messagebody | longtext | NO |  |  |  |
| fromemail | varchar(250) | NO |  |  |  |
| tocompany | varchar(32) | NO |  |  |  |
| requestedon | bigint | NO |  | 0 |  |
| replyedby | varchar(64) | NO |  |  |  |
| replyedon | bigint | NO |  | 0 |  |
| google | varchar(10) | NO |  |  |  |
| webid | int | NO |  |  |  |

## `viamed_newshop_file_index`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | varchar(32) | NO |  |  |  |
| addedon | varchar(32) | NO |  |  |  |
| docname | varchar(90) | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |
| filetype | int | NO |  |  |  |
| oldid | int | NO |  |  |  |
| archived | int | NO |  |  |  |
| exp_date | int | NO |  |  |  |
| thumb_nail | varchar(16) | NO |  |  |  |
| shopid | varchar(128) | NO |  |  |  |

## `viamed_newshop_file_product`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| productid | varchar(64) | NO |  |  |  |
| fileid | int | NO |  |  |  |
| shopid | varchar(128) | NO |  |  |  |
| ord | int | NO |  |  |  |
| primaryid | int | NO |  |  |  |

## `viamed_newshop_logfile`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| location | longtext | NO |  |  |  |
| uid | int | NO |  |  |  |
| accesstime | bigint | NO |  | 0 |  |
| ip | varchar(32) | NO |  |  |  |

## `viamed_newshop_products`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| shopid | varchar(128) | NO |  |  |  |
| PRODUCTID | varchar(12) | NO |  |  |  |
| PRODUCTNAM | varchar(64) | NO |  |  |  |
| SEARCHREF | longtext | NO |  |  |  |
| SHORTDESCR | longtext | NO |  |  |  |
| LONGDESCRI | longtext | NO |  |  |  |
| IMAGEURL | varchar(92) | NO |  |  |  |
| ACTUALWEIG | varchar(8) | NO |  |  |  |
| VOLUMETRIC | varchar(8) | NO |  |  |  |
| LIVE | varchar(8) | NO |  |  |  |
| VERIFIED | varchar(8) | NO |  |  |  |
| VERIFIEDBY | varchar(16) | NO |  |  |  |
| STOCK | int | NO |  |  |  |
| SHOWPRICE | varchar(8) | NO |  |  |  |
| DATEMODIFI | varchar(16) | NO |  |  |  |
| REFERENCET | varchar(64) | NO |  |  |  |
| ORDERINGNU | varchar(64) | NO |  |  |  |
| CATEGORYID | int | NO |  |  |  |
| ALLADD | varchar(6) | NO |  |  |  |
| PRIORITY | int | NO |  |  |  |
| FOCDELIVERY | varchar(5) | NO |  |  |  |
| EAN13 | varchar(20) | NO |  |  |  |

## `viamed_newshop_products_catagorys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| shopid | varchar(128) | NO |  |  |  |
| catid | varchar(16) | NO |  |  |  |
| productopera | varchar(16) | NO |  |  |  |
| verifiedby | varchar(32) | NO |  |  |  |
| datemod | varchar(32) | NO |  |  |  |
| productid | varchar(16) | NO |  |  |  |
| priority | int | NO |  |  |  |

## `viamed_newshop_shipping_country_zones`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| shopid | varchar(128) | NO |  |  |  |
| country | varchar(128) | NO |  |  |  |
| method | varchar(24) | NO |  |  |  |
| zone | varchar(9) | NO |  |  |  |

## `viamed_newshop_webindustrys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| active | int | NO |  |  |  |
| ord | int | NO |  |  |  |
| bannerbar | longtext | NO |  |  |  |

## `viamed_newshop_webindustrys_stock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO |  |  |  |
| industry | int | NO |  |  |  |
| stock_ref | varchar(16) | NO |  |  |  |
| allowed | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_nom_headers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| header | varchar(40) | NO |  |  |  |
| group | varchar(40) | NO |  |  |  |

## `viamed_objectives`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| section | varchar(64) | NO |  |  |  |
| objective | longtext | NO |  |  |  |
| report_php | varchar(128) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `viamed_objectives_notes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| objective_id | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `viamed_operacreditlimits`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| opera | varchar(12) | NO |  |  |  |
| primary_company_id | int | NO |  |  |  |
| currency | varchar(3) | NO |  |  |  |
| account_limit | int | NO |  |  |  |
| account_days | int | NO |  |  |  |
| terms | varchar(100) | NO |  |  |  |
| notes | longtext | NO |  |  |  |

## `viamed_order_watch`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| username | varchar(32) | NO |  |  |  |
| ordernumber | varchar(12) | NO |  |  |  |
| status | varchar(12) | NO |  |  |  |

## `viamed_overview`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| year | int | NO |  |  |  |
| month | mediumint | NO |  |  |  |
| stock | int | NO |  |  |  |
| bank | int | NO |  |  |  |
| debtors | int | NO |  |  |  |
| creditors | int | NO |  |  |  |
| sales | int | NO |  |  |  |

## `viamed_oxygensensorlimits`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(16) | NO |  |  |  |
| lowerlimito2 | float(8,4) | NO |  |  |  |
| higherlimito2 | float(8,4) | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| accuracyhigh | float(8,4) | NO |  |  |  |
| active | tinyint | NO |  |  |  |

## `viamed_packaging_lists`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mainid | int | NO |  |  |  |
| userid | int | NO |  |  |  |
| stock_ref | varchar(12) | NO |  |  |  |
| qty | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_packaging_sizes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(36) | NO |  |  |  |
| width | float | NO |  |  |  |
| length | float | NO |  |  |  |
| height | float | NO |  |  |  |
| weight | float | NO |  |  |  |
| stock_ref | varchar(16) | NO |  |  |  |
| internalwidth | float(10,2) | NO |  |  |  |
| internalheight | float(10,2) | NO |  |  |  |
| internallength | float(10,2) | NO |  |  |  |
| active | varchar(8) | NO |  |  |  |

## `viamed_pcs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ip | varchar(24) | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| os | varchar(12) | YES |  |  |  |
| wrd | varchar(12) | YES |  |  |  |
| hd | varchar(12) | YES |  |  |  |
| mem | varchar(12) | YES |  |  |  |
| cpu | varchar(12) | YES |  |  |  |
| userpc | varchar(12) | YES |  |  |  |

## `viamed_po_logs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| porref | varchar(14) | NO |  |  |  |
| sentvia | varchar(5) | NO |  |  |  |
| sentby | varchar(32) | NO |  |  |  |
| confirmeddate | bigint | NO |  | 0 |  |
| confirmedvia | varchar(5) | NO |  |  |  |
| confirmedby | varchar(32) | NO |  |  |  |
| estshipdate | bigint | NO |  | 0 |  |
| stock_ref | varchar(24) | NO |  |  |  |
| donotchase | varchar(1) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| shipmethod | int | NO |  |  |  |
| notsent | varchar(1) | NO |  |  |  |
| confirmnumber | varchar(32) | NO |  |  |  |
| arriveshipdate | bigint | NO |  | 0 |  |
| arriveby | varchar(32) | NO |  |  |  |
| qty | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| ordernumber | varchar(23) | NO |  |  |  |
| docid | int | NO |  |  |  |
| pogenby | int | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| confirmedvalidon | bigint | NO |  | 0 |  |
| confirmedvalidby | int | NO |  |  |  |
| orderdetailid | int | NO |  |  |  |
| tracknum | varchar(48) | NO |  |  |  |
| estimatedateconfirmed | tinyint | NO |  |  |  |

## `viamed_po_logs_docs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| poref | varchar(16) | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `viamed_po_logs_est_ship`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| po | varchar(24) | NO |  |  |  |
| stockref | varchar(24) | NO |  |  |  |
| estqty | int | NO |  |  |  |
| estship | bigint | NO |  | 0 |  |
| actship | bigint | NO |  | 0 |  |
| actshipqty | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| porderid | int | NO |  |  |  |

## `viamed_po_logs_flag`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| usergroupid | int | NO |  |  |  |
| poref | varchar(16) | NO |  |  |  |
| stkref | varchar(16) | NO |  |  |  |

## `viamed_po_logs_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| porref | varchar(14) | NO |  |  |  |
| sentvia | varchar(5) | NO |  |  |  |
| sentby | varchar(32) | NO |  |  |  |
| confirmeddate | bigint | NO |  | 0 |  |
| confirmedvia | varchar(5) | NO |  |  |  |
| confirmedby | varchar(32) | NO |  |  |  |
| estshipdate | bigint | NO |  | 0 |  |
| stock_ref | varchar(24) | NO |  |  |  |
| donotchase | varchar(1) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| nextupdatedate | bigint | NO |  | 0 |  |
| nextupdateby | varchar(64) | NO |  |  |  |
| confirmedvalidon | bigint | NO |  | 0 |  |
| confirmedvalidby | int | NO |  |  |  |
| orderdetailid | int | NO |  |  |  |
| company_id | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| qty | int | NO |  |  |  |

## `viamed_po_watch_list`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| name | varchar(64) | NO |  |  |  |
| po | varchar(10) | NO |  |  |  |
| stock_ref | varchar(12) | NO |  |  |  |
| estshipdate | int | NO |  |  |  |
| status | varchar(10) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| lineid | int | NO |  |  |  |

## `viamed_post_market_orders`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| DELIVERY | varchar(16) | NO |  |  |  |
| confirmedby | varchar(32) | NO |  |  |  |
| confirmedon | int | NO |  |  |  |
| note | longtext | NO |  |  |  |
| status | varchar(12) | NO |  |  |  |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |

## `viamed_post_market_sales_accounts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| reportid | int | NO |  |  |  |
| account | varchar(12) | NO |  |  |  |

## `viamed_post_market_sales_answers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| questionid | int | NO |  |  |  |
| reportid | int | NO |  |  |  |
| answer | longtext | NO |  |  |  |
| furtheraction | text | NO |  |  |  |

## `viamed_post_market_sales_questions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| questiontext | longtext | NO |  |  |  |
| pms_id | int | NO |  |  |  |
| headline | varchar(128) | NO |  |  |  |

## `viamed_post_market_sales_report_account_notes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| reportid | int | NO |  |  |  |
| account | varchar(12) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| pmsid | varchar(12) | NO |  |  |  |
| territory | varchar(32) | NO |  |  |  |
| fieldcode | varchar(128) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | bigint | NO |  | 0 |  |
| stockref | varchar(12) | NO |  |  |  |

## `viamed_post_market_sales_reports`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| datecode | bigint | NO |  | 0 |  |
| userid | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| status | varchar(32) | NO |  |  |  |
| salesgroupname | varchar(250) | NO |  |  |  |

## `viamed_ppq_position`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(200) | NO |  |  |  |
| question | int | NO |  | 0 |  |
| page | varchar(100) | NO |  |  |  |
| x2 | varchar(100) | NO |  |  |  |
| y2 | varchar(100) | NO |  |  |  |
| x | varchar(100) | NO |  |  |  |
| y | varchar(100) | NO |  |  |  |
| filter | int | NO |  |  |  |
| tablename | varchar(64) | NO |  |  |  |
| fieldname | varchar(64) | NO |  |  |  |
| functionality | varchar(64) | NO |  |  |  |

## `viamed_ppq_questions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ppqid | varchar(100) | NO |  |  |  |
| page | varchar(100) | NO |  |  |  |
| question | int | NO |  | 0 |  |
| locked | varchar(100) | NO |  |  |  |
| answer | varchar(100) | NO |  |  |  |

## `viamed_price_review`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(12) | NO |  |  |  |
| hostcompany | int | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| reviewedon | int | NO |  |  |  |
| status | varchar(32) | NO |  |  |  |
| freightpercent | float(10,2) | NO |  |  |  |
| taxpercent | float(10,2) | NO |  |  |  |
| processingpercent | float(10,2) | NO |  |  |  |
| landedpricegbp | float(10,2) | NO |  |  |  |
| finalcost | float(10,2) | NO |  |  |  |

## `viamed_pricelist_log`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |
| status | int | NO |  |  |  |

## `viamed_pricelist_log_stk`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| priceid | int | NO |  |  |  |
| stkref | varchar(12) | NO |  |  |  |

## `viamed_product_recall`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| ccn | int | NO |  |  |  |
| issue | int | NO |  |  |  |
| description | longtext | NO |  |  |  |
| status | int | NO |  |  |  |

## `viamed_product_recall_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| barcode | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| status | int | NO |  |  |  |
| updatedon | int | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| replace_barcode | int | NO |  |  |  |
| replace_by | int | NO |  |  |  |
| replace_on | int | NO |  |  |  |
| vprid | int | NO |  |  |  |

## `viamed_product_recall_status`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |

## `viamed_production_jobs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(10) | NO |  |  |  |
| qty | varchar(100) | NO |  |  |  |
| createdby | varchar(100) | NO |  |  |  |
| createon | varchar(100) | NO |  |  |  |
| stage | varchar(100) | NO |  |  |  |
| startedby | varchar(100) | NO |  |  |  |
| startedon | varchar(100) | NO |  |  |  |
| completedby | varchar(100) | NO |  |  |  |
| completedon | varchar(100) | NO |  |  |  |
| cancelledon | varchar(100) | NO |  |  |  |
| cancelledby | varchar(100) | NO |  |  |  |
| produceorder | decimal(10,0) | NO |  | 2 |  |
| urgent | varchar(100) | NO |  |  |  |
| operadone | varchar(3) | NO |  |  |  |
| operaby | varchar(64) | NO |  |  |  |
| operaref | bigint | NO |  | 0 |  |
| customer_ord | varchar(12) | NO |  |  |  |
| deadline | bigint | NO |  | 0 |  |
| memo | longtext | NO |  |  |  |
| priority | int | NO |  |  |  |
| producedby | int | NO |  |  |  |
| company_id | int | NO |  |  |  |
| memoby | int | NO |  |  |  |

## `viamed_production_jobs_extraparts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| jobid | int | NO |  |  |  |
| stock_ref | varchar(16) | NO |  |  |  |
| qty | int | NO |  |  |  |
| addedby | varchar(64) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| operadone | varchar(3) | NO |  |  |  |
| operaby | varchar(64) | NO |  |  |  |
| operaref | bigint | NO |  | 0 |  |
| mergeid | bigint | NO |  | 0 |  |
| serviceid | int | NO |  |  |  |

## `viamed_production_jobs_times`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| timeinsecs | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| production_id | int | NO |  |  |  |

## `viamed_purchase_orders_errors`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |

## `viamed_quotes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| quote | varchar(16) | NO |  |  |  |
| status | varchar(5) | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| notes | longtext | NO |  |  |  |
| responsibleuser | int | NO |  |  |  |
| expecteddate | int | NO |  |  |  |
| chance | int | NO |  |  |  |
| stockref | varchar(64) | NO |  |  |  |

## `viamed_quotes_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| quote | varchar(10) | NO |  |  |  |
| status | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| stockref | varchar(24) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| responsibleuser | int | NO |  |  |  |
| expecteddate | int | NO |  |  |  |
| chance | int | NO |  |  |  |
| daylink | varchar(12) | NO |  |  |  |

## `viamed_quotes_status`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |

## `viamed_receipts_match_opera`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| bankid | int | NO |  |  |  |
| operaaccount | varchar(12) | NO |  |  |  |
| operareference | varchar(48) | NO |  |  |  |
| operatype | varchar(16) | NO |  |  |  |
| paid_flag | int | NO |  |  |  |
| linkedby | int | NO |  |  |  |
| linkedon | int | NO |  |  |  |

## `viamed_reminder_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| operaac | varchar(12) | NO |  |  |  |
| headerid | varchar(12) | NO |  |  |  |
| date | varchar(16) | NO |  |  |  |
| reminderby | varchar(24) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| sent_statement | char(3) | NO |  |  |  |
| sent_copyinvoice | char(3) | NO |  |  |  |
| phone | char(3) | NO |  |  |  |
| email | char(3) | NO |  |  |  |
| post | char(3) | NO |  |  |  |
| fax | char(3) | NO |  |  |  |
| datepromised | varchar(12) | NO |  |  |  |
| contactname | varchar(64) | NO |  |  |  |
| contact_id | int | NO |  |  |  |

## `viamed_reminder_details_invoices`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| detailid | int | NO |  | 0 |  |
| reference | varchar(12) | NO |  |  |  |
| date | varchar(12) | NO |  |  |  |
| spare | varchar(12) | NO |  |  |  |

## `viamed_reminder_header`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| join_id | varchar(10) | NO |  |  |  |
| opera_ac | varchar(12) | NO |  |  |  |
| updatedby | varchar(40) | NO |  |  |  |
| companyname | varchar(64) | NO |  |  |  |
| contactname | varchar(40) | NO |  |  |  |
| contactnumber | varchar(40) | NO |  |  |  |
| faxnumber | varchar(40) | NO |  |  |  |
| emailaddress | varchar(125) | NO |  |  |  |
| add1 | varchar(80) | NO |  |  |  |
| add2 | varchar(80) | NO |  |  |  |
| add3 | varchar(80) | NO |  |  |  |
| postcode | varchar(12) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| last_reminder | varchar(20) | NO |  |  |  |

## `viamed_remits`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| remittanceid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| matchedon | bigint | NO |  | 0 |  |
| matchedby | int | NO |  |  |  |
| bankaccountref | varchar(16) | NO |  |  |  |
| operaaccount | varchar(10) | NO |  |  |  |
| operaaccountname | varchar(100) | NO |  |  |  |
| paid_flag | int | NO |  |  |  |
| bankid | int | NO |  |  |  |
| amount | float(10,2) | NO |  |  |  |
| originaloperaaccount | varchar(12) | NO |  |  |  |
| originaloperaname | varchar(60) | NO |  |  |  |
| invoicereference | varchar(16) | NO |  |  |  |
| bankremitlinkedon | bigint | NO |  | 0 |  |
| bankremitlinkedby | int | NO |  |  |  |
| visa | varchar(8) | NO |  |  |  |
| paymentrundate | bigint | NO |  | 0 |  |

## `viamed_remits_abb`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| abb | varchar(20) | NO |  |  |  |
| description | varchar(100) | NO |  |  |  |
| addedon | int | NO |  |  |  |
| addedby | bigint | NO |  | 0 |  |

## `viamed_remits_paid`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| remit_ref | varchar(12) | NO |  |  |  |
| account | varchar(12) | NO |  |  |  |
| paidflag | varchar(8) | NO |  |  |  |
| addedby | varchar(24) | NO |  |  |  |
| docid | varchar(24) | NO |  |  |  |
| status | varchar(12) | NO |  |  |  |
| addeddate | bigint | NO |  | 0 |  |

## `viamed_sale_return`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| headerid | int | NO |  |  |  |
| serialid | varchar(100) | NO |  |  |  |
| serialnumber | varchar(100) | NO |  |  |  |
| stock_ref | varchar(100) | NO |  |  |  |
| operaid | varchar(100) | NO |  |  |  |
| datesent | varchar(100) | NO |  |  |  |
| datereturned | bigint | NO |  | 0 |  |
| status | varchar(100) | NO |  |  |  |
| type | varchar(100) | NO |  |  |  |
| functio | varchar(100) | NO |  |  |  |
| purpose | varchar(100) | NO |  |  |  |
| sentby | varchar(100) | NO |  |  |  |
| responsibleuser | varchar(64) | NO |  |  |  |
| revieweddate | bigint | NO |  |  |  |
| reviewedby | varchar(64) | NO |  |  |  |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| givenstockallocated | int | NO |  |  |  |
| chasedby | int | NO |  |  |  |
| chasedon | bigint | NO |  |  |  |
| expiredate | bigint | NO |  |  |  |
| typesor | varchar(64) | NO |  |  |  |
| success | varchar(64) | NO |  |  |  |
| notes | longtext | NO |  |  |  |

## `viamed_salereturnhead`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| operaid | varchar(100) | NO |  |  |  |
| createdate | bigint | NO |  | 0 |  |
| contactname | varchar(100) | NO |  |  |  |
| companyname | varchar(100) | NO |  |  |  |
| department | varchar(100) | NO |  |  |  |
| add1 | varchar(100) | NO |  |  |  |
| add2 | varchar(100) | NO |  |  |  |
| add3 | varchar(100) | NO |  |  |  |
| add4 | varchar(100) | NO |  |  |  |
| postcode | varchar(100) | NO |  |  |  |
| sentby | varchar(100) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| shipnotes | longtext | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| responsibleuser | varchar(64) | NO |  |  |  |
| revieweddate | bigint | NO |  |  |  |
| reviewedby | varchar(64) | NO |  |  |  |
| telephone | varchar(64) | NO |  |  |  |
| email | varchar(128) | NO |  |  |  |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| statustext | varchar(32) | NO |  |  |  |
| statustextby | int | NO |  |  |  |
| statustexton | bigint | NO |  |  |  |
| valueforcustoms | varchar(16) | NO |  |  |  |
| cancelledby | int | NO |  |  |  |
| cancelledon | bigint | NO |  |  |  |
| issueid | int | NO |  |  |  |
| goodsinflag | varchar(9) | NO |  |  |  |
| expdate | varchar(24) | NO |  |  |  |
| datesent | bigint | NO |  |  |  |
| delivdate | varchar(24) | NO |  |  |  |
| typesor | varchar(64) | NO |  |  |  |
| position1 | varchar(64) | NO |  |  |  |

## `viamed_sales_forcasts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| user | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| stock_ref | varchar(24) | NO |  |  |  |
| year | int | NO |  |  |  |
| month | int | NO |  |  |  |
| qty | int | NO |  |  |  |
| region | varchar(5) | NO |  |  |  |
| vui | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| currency | varchar(5) | NO |  |  |  |
| salesorpurchase | tinyint | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `viamed_sales_forcasts_reviewed`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| stock_ref | varchar(12) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| region | varchar(12) | NO |  |  |  |

## `viamed_sales_ukmap`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| user | varchar(64) | NO |  |  |  |
| operaaccount | varchar(12) | NO |  |  |  |
| icontype | int | NO |  |  |  |
| link | varchar(128) | NO |  |  |  |
| hovertext | longtext | NO |  |  |  |

## `viamed_sensorrecycle`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| operaaccount | varchar(16) | NO |  |  |  |
| stockref | varchar(16) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| contact_monthyear | varchar(7) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `viamed_service_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| currentid | int | NO |  |  |  |
| primaryid | int | NO |  |  |  |
| locationnotes | longtext | NO |  |  |  |
| hotelnotes | longtext | NO |  |  |  |
| timebooked | longtext | NO |  |  |  |
| allconfirmed | varchar(7) | NO |  |  |  |
| worksignedoff | varchar(7) | NO |  |  |  |
| wordsignedoffcontactid | int | NO |  |  |  |
| engineernotes | longtext | NO |  |  |  |
| engineerid | int | NO |  |  |  |
| completionnotes | longtext | NO |  |  |  |
| servicereportsent | varchar(3) | NO |  |  |  |
| servicereportsentto | int | NO |  |  |  |
| dateserviced | date | NO |  |  |  |
| engineervisistcomplete | varchar(1) | NO |  |  |  |
| engineervisistcompletedate | bigint | NO |  | 0 |  |
| servicereportconfirm | varchar(1) | NO |  |  |  |
| servicereportconfirmdate | bigint | NO |  | 0 |  |
| sendinvoice | bigint | NO |  | 0 |  |
| sendinvoiceby | int | NO |  |  |  |
| scanparts | bigint | NO |  | 0 |  |
| scanpartsby | int | NO |  |  |  |
| engineerpartsnotes | longtext | NO |  |  |  |

## `viamed_service_eng_stk`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| employid | int | NO |  |  |  |
| stock_ref | varchar(32) | NO |  |  |  |

## `viamed_service_equipment`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| visitid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| stock_ref | varchar(32) | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |
| lastserviced | int | NO |  |  |  |
| lastservicedby | varchar(64) | NO |  |  |  |
| serialnumber | varchar(128) | NO |  |  |  |
| barcode | varchar(128) | NO |  |  |  |
| assetnumber | varchar(128) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| currentstatus | varchar(32) | NO |  |  |  |
| servicedby | varchar(64) | NO |  |  |  |
| engineerid | int | NO |  |  |  |
| servicedon | bigint | NO |  | 0 |  |
| status | varchar(1) | NO |  |  |  |

## `viamed_service_items_reminders`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| barcode | int | NO |  |  |  |
| reminded | bigint | NO |  | 0 |  |
| donotchase | int | NO |  |  |  |
| serviced | bigint | NO |  | 0 |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| code | varchar(1) | NO |  |  |  |
| nextreminddate | bigint | NO |  | 0 |  |

## `viamed_service_visits`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| primaryid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| duedate | bigint | NO |  | 0 |  |
| recursmonths | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| customerorder | varchar(32) | NO |  |  |  |
| operaorder | varchar(12) | NO |  |  |  |
| status | varchar(12) | NO |  |  |  |
| engineerid | int | NO |  |  |  |
| bookedfordate | bigint | NO |  | 0 |  |
| completedon | bigint | NO |  | 0 |  |
| completedby | varchar(32) | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |
| customersignedoff | varchar(64) | NO |  |  |  |

## `viamed_shipping_calc_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| calc_id | int | NO |  | 0 |  |
| actual_weight | float | NO |  | 0 |  |
| width | float | NO |  | 0 |  |
| height | float | NO |  | 0 |  |
| length | float | NO |  | 0 |  |
| VolumetricWeight | float | NO |  | 0 |  |
| weightused | float | NO |  | 0 |  |
| warnings | varchar(128) | NO |  |  |  |

## `viamed_shipping_calc_header`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | varchar(64) | NO |  |  |  |
| addedon | varchar(12) | NO |  |  |  |
| ordernumber | varchar(12) | NO |  |  |  |

## `viamed_shipping_options`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| company | varchar(24) | NO |  |  |  |
| service | varchar(48) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| modifiedby | varchar(32) | NO |  |  |  |
| modifiedon | varchar(32) | NO |  |  |  |
| accountnumber | varchar(64) | NO |  |  |  |
| direction | int | NO |  |  |  |
| disporder | int | NO |  |  |  |
| showgoodsin | int | NO |  |  |  |

## `viamed_shipping_options_account`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| opera | varchar(12) | NO |  |  |  |
| optionid | int | NO |  | 0 |  |
| p | varchar(8) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| modifiedby | varchar(32) | NO |  |  |  |
| modifiedon | varchar(32) | NO |  |  |  |
| accountnumber | varchar(64) | NO |  |  |  |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| notesby | int | NO |  |  |  |
| noteson | bigint | NO |  | 0 |  |

## `viamed_staff_prioritys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| user | varchar(32) | NO |  |  |  |
| user_id | int | NO |  | 0 |  |
| header | varchar(64) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| priority | int | NO |  | 0 |  |
| status | varchar(12) | NO |  |  |  |
| usernotes | longtext | NO |  |  |  |
| userupdate | varchar(64) | NO |  |  |  |
| addedby | varchar(64) | NO |  |  |  |
| addedon | varchar(64) | NO |  |  |  |
| removedby | varchar(64) | NO |  |  |  |
| removedon | varchar(64) | NO |  |  |  |
| movedon | varchar(64) | NO |  |  |  |
| movedby | varchar(64) | NO |  |  |  |

## `viamed_stock_calcs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO |  |  |  |
| stock_ref | varchar(12) | NO |  |  |  |
| lastyearsalesvalue | float(10,2) | NO |  |  |  |
| lastyearsales | int | NO |  |  |  |
| currentyearestimatevalue | float(10,2) | NO |  |  |  |
| currentyearqtyestimate | int | NO |  |  |  |
| stockvalue | float(10,2) | NO |  |  |  |
| stockqty | int | NO |  |  |  |
| percentstocktosalesonestimate | float(10,2) | NO |  |  |  |
| monthlyusage | int | NO |  |  |  |
| monthsofstock | int | NO |  |  |  |
| monthstodeliver | int | NO |  |  |  |

## `viamed_stock_groups2`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(254) | NO |  |  |  |
| owner | int | NO |  |  |  |
| addedon | int | NO |  |  |  |
| addedby | int | NO |  |  |  |

## `viamed_stock_groups2_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stockref | varchar(16) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |
| group2id | int | NO |  |  |  |

## `viamed_stock_slowingsales`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(12) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| status | int | NO |  |  |  |

## `viamed_stock_valuations`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(12) | NO |  |  |  |
| operaqty | int | NO |  |  |  |
| barcodeqty | int | NO |  |  |  |
| unitvalue | float(10,2) | NO |  |  |  |
| date_taken | int | NO |  |  |  |
| stock_tag | varchar(16) | NO |  |  |  |

## `viamed_stockgroup`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(250) | NO |  |  |  |
| ownerid | int | NO |  |  |  |
| ownername | varchar(100) | NO |  |  |  |
| addedon | int | NO |  |  |  |
| addedby | int | NO |  |  |  |

## `viamed_suggest_qa`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(24) | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| updatedby | varchar(32) | NO |  |  |  |
| reason | varchar(32) | NO |  |  |  |
| shelfid | int | NO |  |  |  |
| alerttypeid | int | NO |  |  |  |

## `viamed_supplier_product_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(24) | NO |  |  |  |
| description | longtext | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| listonscope | tinyint | NO |  |  |  |

## `viamed_supplier_sales`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| groupcode | varchar(32) | NO |  |  |  |
| tag | varchar(128) | NO |  |  |  |
| month | int | NO |  |  |  |
| year | int | NO |  |  |  |
| sales | float | NO |  |  |  |
| company | varchar(64) | NO |  |  |  |
| region | varchar(16) | NO |  |  |  |
| territory | varchar(16) | NO |  |  |  |

## `viamed_swot`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| swottype | int | NO |  |  |  |
| subject | varchar(125) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| counternotes | longtext | NO |  |  |  |
| polarity | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| stock_ref | varchar(12) | NO |  |  |  |

## `viamed_swot_userread`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| swotid | int | NO |  |  |  |
| userid | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `viamed_sync_tables`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| tablename | varchar(64) | NO |  |  |  |
| allowsync | int | NO |  |  |  |
| synctype | int | NO |  |  |  |

## `viamed_timecard_log`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| cardid | varchar(8) | NO |  |  |  |
| direction | varchar(12) | NO |  |  |  |
| location | varchar(12) | NO |  |  |  |
| time | bigint | NO |  | 0 |  |
| timetext | varchar(128) | NO |  |  |  |
| employeeid | int | NO |  |  |  |
| building | int | NO |  |  |  |

## `viamed_toorderlist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(12) | NO |  |  |  |
| stock_ref | varchar(24) | NO |  |  |  |
| suppref | varchar(48) | NO |  |  |  |
| qty | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| status | bigint | NO |  | 0 |  |
| printedby | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |

## `viamed_tradeins`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | varchar(64) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| notes | longtext | NO |  |  |  |
| status | varchar(32) | NO |  |  |  |
| completedby | varchar(64) | NO |  |  |  |
| completedon | bigint | NO |  | 0 |  |
| company | varchar(128) | NO |  |  |  |
| name | varchar(128) | NO |  |  |  |
| customer_id | int | NO |  |  |  |

## `viamed_uk_sales_map`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| user | varchar(32) | NO |  |  |  |
| account | varchar(12) | NO |  |  |  |
| color | varchar(7) | NO |  |  |  |
| bright | int | NO |  |  |  |
| rad | int | NO |  |  |  |

## `viamed_update_log`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| universaltime | int | NO |  |  |  |
| status | varchar(32) | NO |  |  |  |
| identifer | varchar(32) | NO |  |  |  |

## `viamed_updater`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| updatefile | varchar(56) | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |
| nextid | int | NO |  |  |  |
| timer | int | NO |  |  |  |
| lastused | bigint | NO |  | 0 |  |
| pythonuse | varchar(1) | NO |  |  |  |
| pythonfile | varchar(250) | NO |  |  |  |
| pytimer | int | NO |  |  |  |
| pylastused | int | NO |  |  |  |
| repeateachtime | int | NO |  |  |  |

## `viamed_ups_extrarates_area`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| postcode | varchar(12) | NO |  |  |  |

## `viamed_ups_invoices`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Account_Number | varchar(32) | NO |  |  |  |
| Invoice_Number | varchar(32) | NO |  |  |  |
| Invoice_date | varchar(12) | NO |  |  |  |
| Amount_Due | float(10,2) | NO |  |  |  |
| Shipment_Number | varchar(16) | NO |  |  |  |
| Collection_Record | varchar(16) | NO |  |  |  |
| Reference_No1 | varchar(16) | NO |  |  |  |
| Reference_No2 | varchar(16) | NO |  |  |  |
| Reference_No3 | varchar(16) | NO |  |  |  |
| Weight1 | float(10,2) | NO |  |  |  |
| Weight2 | float(10,2) | NO |  |  |  |
| Zone | varchar(8) | NO |  |  |  |
| Service_Level | varchar(32) | NO |  |  |  |
| Collection_Date | varchar(12) | NO |  |  |  |
| Sender_Name | varchar(32) | NO |  |  |  |
| Sender_Company_Name | varchar(32) | NO |  |  |  |
| Sender_Address_1 | varchar(32) | NO |  |  |  |
| Sender_Country | varchar(32) | NO |  |  |  |
| Receiver_Name | varchar(32) | NO |  |  |  |
| Receiver_Company_Name | varchar(32) | NO |  |  |  |
| Receiver_Address_1 | varchar(32) | NO |  |  |  |
| Receiver_Country | varchar(32) | NO |  |  |  |
| Third_Party | varchar(32) | NO |  |  |  |
| Net_Charges | float(10,2) | NO |  |  |  |
| Basic_Tier_Discount | float(10,2) | NO |  |  |  |
| Invoice_Section | varchar(32) | NO |  |  |  |
| Invoice_Type | varchar(32) | NO |  |  |  |
| Invoice_Due_date | varchar(32) | NO |  |  |  |

## `viamed_ups_packagetypes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| packcode | varchar(5) | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |
| notes | longtext | NO |  |  |  |

## `viamed_ups_rates`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| type | varchar(32) | NO |  |  |  |
| weight | float | NO |  | 0 |  |
| zone | char(8) | NO |  |  |  |
| cost | double | NO |  | 0 |  |
| lastudatedby | int | NO |  |  |  |
| lastupdatedon | bigint | NO |  | 0 |  |

## `viamed_ups_shipment_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| date | varchar(12) | NO |  |  |  |
| destination | varchar(128) | NO |  |  |  |
| destination_code | varchar(4) | NO |  |  |  |
| tracking_number | varchar(32) | NO |  |  |  |
| status | varchar(24) | NO |  |  |  |
| ref1 | varchar(24) | NO |  |  |  |
| ref2 | varchar(24) | NO |  |  |  |
| confirmedarrivedby | int | NO |  |  |  |
| confirmedarrivedon | int | NO |  |  |  |

## `viamed_ups_surcharges`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(42) | NO |  |  |  |
| percent | float | NO |  | 0 |  |
| carrier | char(3) | NO |  |  |  |

## `viamed_ups_type_opera`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| type | varchar(64) | NO |  |  |  |
| opera | varchar(16) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `viamed_ups_zones`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| customercountry | varchar(32) | NO |  |  |  |
| IATA | varchar(4) | NO |  |  |  |
| targetcountry | varchar(64) | NO |  |  |  |
| postcode1 | varchar(16) | NO |  |  |  |
| postcode2 | varchar(16) | NO |  |  |  |
| sending_expressplus | char(3) | NO |  |  |  |
| sending_express | char(3) | NO |  |  |  |
| sending_expresssaver | char(3) | NO |  |  |  |
| sending_standard | char(3) | NO |  |  |  |
| sending_expedited | char(3) | NO |  |  |  |
| sending_express_freight | char(3) | NO |  |  |  |
| rec_expressplus | char(3) | NO |  |  |  |
| rec_express | char(3) | NO |  |  |  |
| rec_expresssaver | char(3) | NO |  |  |  |
| rec_standard | char(3) | NO |  |  |  |
| rec_expedited | char(3) | NO |  |  |  |
| rec_express_freight | char(3) | NO |  |  |  |
| opera_territory | varchar(64) | NO |  |  |  |

## `viamed_vat_returns`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| box1 | float(10,2) | NO |  |  |  |
| box2 | float(10,2) | NO |  |  |  |
| box3 | float(10,2) | NO |  |  |  |
| box4 | float(10,2) | NO |  |  |  |
| box5 | float(10,2) | NO |  |  |  |
| box6 | float(10,2) | NO |  |  |  |
| box7 | float(10,2) | NO |  |  |  |
| box8 | float(10,2) | NO |  |  |  |
| box9 | float(10,2) | NO |  |  |  |
| senton | int | NO |  |  |  |
| sentby | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| year | int | NO |  |  |  |
| qtr | int | NO |  |  |  |
| month | int | NO |  |  |  |
| report | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamed_web_sync`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(16) | NO |  |  |  |

## `viamed_xref`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(124) | NO |  |  |  |
| oem | varchar(64) | NO |  |  |  |
| oem_pn | varchar(128) | NO |  |  |  |
| type | varchar(64) | NO |  |  |  |
| verified | varchar(64) | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| updatedby | varchar(64) | NO |  |  |  |
| xrefcode | varchar(128) | NO |  |  |  |
| combined | longtext | NO |  |  |  |
| primary_id | int | NO |  |  |  |
| specsheet_id | int | NO |  |  |  |
| certificatecompatible | varchar(1) | NO |  |  |  |
| rowcolor | varchar(7) | NO |  |  |  |
| hideweb | varchar(7) | NO |  |  |  |
| priorityorder | int | NO |  |  |  |
| importtag | varchar(5) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| preferedsell | varchar(48) | NO |  |  |  |
| preferedsellby | int | NO |  |  |  |
| preferedsellon | bigint | NO |  |  |  |
| deletestatus | int | NO |  |  |  |
| deletestatuson | bigint | NO |  |  |  |
| deletestatusby | int | NO |  |  |  |
| shopifyhandle | varchar(256) | NO |  |  |  |
| xrefcode_temp | varchar(64) | NO |  |  |  |
| oemclean | varchar(128) | NO |  |  |  |
| cleansearch | varchar(128) | NO |  |  |  |
| imgurl | varchar(200) | NO |  |  |  |
| brand | varchar(255) | NO |  |  |  |

## `viamed_xref_answer`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| answer | varchar(200) | NO |  |  |  |
| xrefcode | varchar(32) | NO |  |  |  |
| fieldid | int | NO |  |  |  |

## `viamed_xref_cat`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| updatedon | bigint | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| xrefcode | varchar(128) | NO |  |  |  |
| description | longtext | NO |  |  |  |
| showonweb | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| showfeaturesonweb | tinyint | NO |  |  |  |

## `viamed_xref_cleanlookup`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| clean | varchar(128) | NO |  |  |  |
| dirty | varchar(128) | NO |  |  |  |
| xrefcode | varchar(64) | NO |  |  |  |

## `viamed_xref_fields`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| field_name | varchar(32) | NO |  |  |  |
| xrefcode | varchar(128) | NO |  |  |  |
| displayorder | int | NO |  |  |  |
| addedon | int | NO |  |  |  |
| addedby | bigint | NO |  | 0 |  |
| showweb | int | NO |  |  |  |
| showlocal | int | NO |  |  |  |
| hiddenfield | int | NO |  |  |  |

## `viamed_xref_fields_answers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| xrefcode | varchar(126) | NO |  |  |  |
| fieldid | int | NO |  |  |  |
| answer | varchar(255) | NO |  |  |  |
| specsheet_id | int | NO |  |  |  |
| setby | int | NO |  |  |  |
| seton | bigint | NO |  | 0 |  |
| stock_ref | varchar(32) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |
| answerid | int | NO |  |  |  |

## `viamed_xref_memos`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| memo | longtext | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| rowid | int | NO |  |  |  |

## `viamed_xref_removed`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  |  |
| stock_ref | varchar(124) | NO |  |  |  |
| oem | varchar(64) | NO |  |  |  |
| oem_pn | varchar(128) | NO |  |  |  |
| type | varchar(64) | NO |  |  |  |
| verified | varchar(64) | NO |  |  |  |
| updatedon | varchar(64) | NO |  |  |  |
| updatedby | varchar(64) | NO |  |  |  |
| xrefcode | varchar(64) | NO |  |  |  |
| combined | longtext | NO |  |  |  |
| primaryid | int | NO |  |  |  |

## `viamed_xref_specsheet`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| specsheet | varchar(100) | NO |  |  |  |
| xrefcode | varchar(64) | NO |  |  |  |
| stock_ref | varchar(32) | NO |  |  |  |

## `viamed_xref_specsheet_documents`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| docid | int | NO |  |  |  |
| specsheetid | int | NO |  |  |  |

## `viamed_yearendstocks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| processtag | varchar(8) | NO |  |  |  |
| yearended | int | NO |  | 0 |  |
| stock_ref | varchar(12) | NO |  |  |  |
| description | varchar(40) | NO |  |  |  |
| anaysiscode | varchar(12) | NO |  |  |  |
| sellprice | float | NO |  | 0 |  |
| costprice | float | NO |  | 0 |  |
| lastcostprice | float | NO |  | 0 |  |
| usecostprice | float | NO |  |  |  |
| quantity | int | NO |  | 0 |  |
| tag | varchar(24) | NO |  |  |  |
| total_value | float | NO |  | 0 |  |
| checked | varchar(10) | NO |  |  |  |
| taxpc | float | NO |  | 0 |  |
| freightpc | float | NO |  | 0 |  |
| finalcost | float(10,2) | NO |  | 0.00 |  |
| finalvalue | float(10,2) | NO |  | 0.00 |  |
| supplierac | varchar(12) | NO |  |  |  |
| liveview | varchar(5) | NO |  |  |  |
| signedoffon | bigint | NO |  | 0 |  |
| signedoffby | int | NO |  |  |  |
| lastsupplieroperaac | varchar(12) | NO |  |  |  |
| hostcompany | int | NO |  |  |  |
| intrastats_qty | int | NO |  |  |  |

## `viamed_yearendstocks_persupplier`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| supplierac | varchar(12) | NO |  |  |  |
| total | varchar(24) | NO |  |  |  |
| year | varchar(5) | NO |  |  |  |

## `viamed_yearendstocksbackup`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| yearended | int | NO |  | 0 |  |
| stock_ref | varchar(12) | NO |  |  |  |
| description | varchar(40) | NO |  |  |  |
| anaysiscode | varchar(12) | NO |  |  |  |
| sellprice | float | NO |  | 0 |  |
| costprice | float | NO |  | 0 |  |
| lastcostprice | float | NO |  | 0 |  |
| usecostprice | float | NO |  |  |  |
| quantity | int | NO |  | 0 |  |
| tag | varchar(12) | NO |  |  |  |
| total_value | float | NO |  | 0 |  |
| checked | varchar(10) | NO |  |  |  |
| taxpc | float | NO |  | 0 |  |
| freightpc | float | NO |  | 0 |  |
| finalcost | float | NO |  | 0 |  |
| finalvalue | float | NO |  | 0 |  |
| supplierac | varchar(12) | NO |  |  |  |

## `viamedagenda`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mainmeetheader | varchar(100) | NO |  |  |  |
| sectionid | int | NO |  | 0 |  |
| subsectionid | int | NO |  | 0 |  |
| meetingid | int | NO |  | 0 |  |
| heading | varchar(100) | NO |  |  |  |
| lastaddressed | varchar(100) | NO |  |  |  |
| nextdue | varchar(100) | NO |  |  |  |
| urllocation | varchar(100) | NO |  |  |  |
| intrastaturl | varchar(100) | NO |  |  |  |
| instastaturltxt | varchar(100) | NO |  |  |  |
| security | varchar(100) | NO |  |  |  |
| pdf_location | varchar(100) | NO |  |  |  |
| special | varchar(100) | NO |  |  |  |
| status | varchar(5) | NO |  |  |  |
| archivesection | varchar(100) | NO |  |  |  |
| mintimetoaddress | varchar(100) | NO |  |  |  |
| timelapse | varchar(100) | NO |  |  |  |
| searchhead | varchar(200) | NO |  |  |  |
| directorsonly | char(3) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| objective | longtext | NO |  |  |  |
| manrev | int | NO |  |  |  |

## `viamedagenda_events_log`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| eventtypeid | int | NO |  |  |  |
| eventtime | bigint | NO |  |  |  |
| eventuser | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| timeis | time | NO |  |  |  |
| marketingindexsubtype | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| completed | bigint | NO |  |  |  |
| defaultaction | varchar(6) | NO |  |  |  |
| completedby | int | NO |  |  |  |

## `viamedagenda_events_log_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| eventtypeid | int | NO |  |  |  |
| eventtime | bigint | NO |  |  |  |
| eventuser | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| timeis | time | NO |  |  |  |
| marketingindexsubtype | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| completed | bigint | NO |  |  |  |
| defaultaction | varchar(6) | NO |  |  |  |
| completedby | int | NO |  |  |  |
| historydate | bigint | NO |  |  |  |
| eventid | int | NO |  |  |  |

## `viamedagenda_events_types`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(250) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| securitylevel | int | NO |  |  |  |
| archived | int | NO |  |  |  |
| code | varchar(32) | NO |  |  |  |

## `viamedagenda_events_users`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| userid | int | NO |  |  |  |
| eventid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| status | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `viamedagenda_filterlink`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| filterid | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| userid | int | NO |  |  |  |
| marketingid | int | NO |  |  |  |

## `viamedagenda_iso_actions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| agendaid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| actionid | int | NO |  |  |  |

## `viamedagenda_iso_actions_lists`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| isoactionid | int | NO |  |  |  |
| description | varchar(228) | NO |  |  |  |
| displayorder | int | NO |  |  |  |

## `viamedagenda_iso_actions_log`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| actionlistid | int | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| status | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| callid | int | NO |  |  |  |

## `viamedagenda_issuextra`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| userid | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| duedate | int | NO |  |  |  |
| deadline | int | NO |  |  |  |
| estimetocomplete | int | NO |  |  |  |

## `viamedagenda_mylists`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| issueid | int | NO |  |  |  |
| userid | int | NO |  |  |  |
| recordorder | int | NO |  | 99999 |  |
| filterid | int | NO |  |  |  |

## `viamedagenda_newnotes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| issueid | int | NO |  |  |  |
| userid | int | NO |  |  |  |
| prenotes | longtext | NO |  |  |  |
| accountdebtor | varchar(16) | NO |  |  |  |

## `viamedagenda_reviewlogs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| agendaid | int | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| reviewedon | bigint | NO |  |  |  |

## `viamedagenda_status`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| issueid | int | NO |  |  |  |
| status | varchar(128) | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |

## `viamedagenda_user_filters`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| user_id | int | NO |  |  |  |
| description | varchar(32) | NO |  |  |  |
| active | varchar(1) | NO |  |  |  |
| icon | varchar(16) | NO |  |  |  |
| disporder | int | NO |  |  |  |
| showstatus | int | NO |  |  |  |
| tempstatus | int | NO |  |  |  |
| shortcode | varchar(4) | NO |  |  |  |
| backcol | varchar(12) | NO |  |  |  |
| textcol | varchar(12) | NO |  |  |  |

## `viamedagendafuture`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| usergroupid | int | NO |  |  |  |
| live_date | varchar(12) | NO |  |  |  |
| type | varchar(12) | NO |  |  |  |
| subject | varchar(250) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| target_user | varchar(24) | NO |  |  |  |
| file_id | varchar(12) | NO |  |  |  |
| recur_time_months | int | NO |  | 0 |  |
| agenda_header | int | NO |  | 0 |  |
| agenda_section | int | NO |  | 0 |  |
| set_by | varchar(24) | NO |  |  |  |
| set_on | varchar(12) | NO |  |  |  |
| special | varchar(12) | NO |  |  |  |
| recur_time_weeks | int | NO |  |  |  |
| recur_time_days | int | NO |  |  |  |
| employeeid | int | NO |  |  |  |
| appearfromuser | varchar(84) | NO |  |  |  |
| crm_companyid | int | NO |  |  |  |
| rotateusers | int | NO |  |  |  |
| rotationlast | int | NO |  |  |  |
| mon | int | NO |  |  |  |
| tue | int | NO |  |  |  |
| wed | int | NO |  |  |  |
| thu | int | NO |  |  |  |
| fri | int | NO |  |  |  |
| mainCompanyid | int | NO |  |  |  |
| primaryaudit | tinyint | NO |  |  |  |
| deadline_date | varchar(100) | NO |  |  |  |
| icanprelinkissues | int | NO |  |  |  |

## `viamedagendafuture_logs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| autoid | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| issuedon | int | NO |  |  |  |
| issuedto | int | NO |  |  |  |

## `viamedagendafuturetypes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| type | varchar(16) | NO |  |  |  |

## `viamedagendahistory`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| agendid | varchar(100) | NO |  |  |  |
| subject | varchar(200) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| completionnotes | longtext | NO |  |  |  |
| backorderstatus | varchar(64) | NO |  |  |  |
| chaired | varchar(100) | NO |  |  |  |
| investigateby | varchar(100) | NO |  |  |  |
| investigatedcomplete | bigint | NO |  |  |  |
| investigatenotes | longtext | NO |  |  |  |
| completed | varchar(100) | NO |  |  |  |
| resoleved | varchar(100) | NO |  |  |  |
| resultnotes | longtext | NO |  |  |  |
| createdate | bigint | NO |  |  |  |
| createpresent | varchar(100) | NO |  |  |  |
| completepresent | varchar(100) | NO |  |  |  |
| completedate | bigint | NO |  |  |  |
| createmeetingdate | bigint | NO |  |  |  |
| stock_ref | varchar(16) | NO |  |  |  |
| opera | varchar(10) | NO |  |  |  |
| porref | varchar(10) | NO |  |  |  |
| porreq | varchar(100) | NO |  |  |  |
| testfield | varchar(100) | NO |  |  |  |
| modified | varchar(100) | NO |  |  |  |
| Order_number | varchar(100) | NO |  |  |  |
| complete_pdf_location | varchar(100) | NO |  |  |  |
| showdueon | varchar(100) | NO |  |  |  |
| repeatduenext | varchar(100) | NO |  |  |  |
| viewed | varchar(10) | NO |  |  |  |
| user_highlight | char(3) | NO |  |  |  |
| deadline_date | varchar(100) | NO |  |  |  |
| hide_until | bigint | NO |  |  |  |
| priority | int | NO |  | 0 |  |
| historytrackid | varchar(100) | NO |  |  |  |
| updatetag | varchar(12) | NO |  |  |  |
| previous_issue | int | NO |  | 0 |  |
| stock_ref_tag | varchar(128) | NO |  |  |  |
| opera_tag | varchar(16) | NO |  |  |  |
| primary_issue | int | NO |  | 0 |  |
| hideupdates | char(2) | NO |  |  |  |
| informationonly | char(2) | NO |  |  |  |
| viamedquotecompanyid | int | NO |  |  |  |
| viamedquotecontactid | int | NO |  |  |  |
| contactprojectid | int | NO |  |  |  |
| productionid | int | NO |  |  |  |
| recordListingID | int | NO |  |  |  |
| projectid | int | NO |  |  |  |
| riskquestion | int | NO |  |  |  |
| techfamilyid | int | NO |  |  |  |
| serviceid | int | NO |  |  |  |
| usergroupid | int | NO |  |  |  |
| signedby | int | NO |  |  |  |
| signedoff | int | NO |  |  |  |
| autoissueid | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| crm_companyid | int | NO |  |  |  |
| crm_contactid | int | NO |  |  |  |
| vigilancenotice | varchar(200) | NO |  |  |  |
| vigilancenoticeby | int | NO |  |  |  |
| vigilancenoticeon | bigint | NO |  |  |  |
| marketingid | int | NO |  |  |  |
| eventid | int | NO |  |  |  |
| srsnumber | int | NO |  |  |  |
| rollingissueagendaid | int | NO |  |  |  |
| nchosttag | int | NO |  |  |  |
| revieweddate | bigint | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| supplyreturnbox | int | NO |  |  |  |
| hostcompany_id | int | NO |  |  |  |
| randd | int | NO |  |  |  |

## `viamedagendahistorylog`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| parentid | int | NO |  |  |  |
| mainissueid | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| addedby | varchar(128) | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| actions | varchar(250) | NO |  |  |  |
| updated | bigint | NO |  |  |  |
| updatedby | varchar(64) | NO |  |  |  |
| readby_creator | int | NO |  |  |  |
| reread | bigint | NO |  |  |  |

## `viamedagendahistorynotrandd`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| autoissueid | int | NO |  |  |  |
| isrnd | tinyint | NO |  |  |  |

## `viamedagendalinkdocs`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| issueid | int | NO |  |  |  |
| date | bigint | NO |  | 0 |  |
| addedby | varchar(100) | NO |  |  |  |
| description | longtext | NO |  |  |  |
| docid | varchar(100) | NO |  |  |  |
| md5hash | varchar(255) | NO |  |  |  |
| thumb_nail | varchar(1) | NO |  |  |  |
| status | int | NO |  |  |  |

## `viamedagendastats`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| issueid | int | NO |  | 0 |  |
| datestart | int | NO |  | 0 |  |
| datecomp | int | NO |  | 0 |  |
| user | varchar(64) | NO |  |  |  |

## `viameddemostock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(12) | NO |  |  |  |
| description | varchar(40) | NO |  |  |  |
| serial_number | varchar(32) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| value | varchar(100) | NO |  |  |  |
| location | varchar(100) | NO |  |  |  |
| demo_date | bigint | NO |  | 0 |  |
| location_company_id | varchar(100) | NO |  |  |  |
| location_opera | varchar(100) | NO |  |  |  |
| location_contact_id | varchar(100) | NO |  |  |  |
| rep_id | varchar(100) | NO |  |  |  |
| barcode | int | NO |  |  |  |

## `viameddemostocktrans`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_id | int | NO |  | 0 |  |
| opera_account | varchar(10) | NO |  |  |  |
| authorised_by | varchar(100) | NO |  |  |  |
| rep_id | int | NO |  | 0 |  |
| contact_name | varchar(100) | NO |  |  |  |
| company | varchar(100) | NO |  |  |  |
| department | varchar(100) | NO |  |  |  |
| contact_number | varchar(100) | NO |  |  |  |
| contact_fax | varchar(100) | NO |  |  |  |
| date_sent | varchar(100) | NO |  |  |  |
| date_returned | varchar(100) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| company_id | varchar(100) | NO |  |  |  |
| contact_id | varchar(100) | NO |  |  |  |
| barcode | int | NO |  |  |  |

## `viamedempclock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| idname | varchar(100) | NO |  |  |  |
| name | varchar(100) | NO |  |  |  |
| clockcard | varchar(100) | NO |  |  |  |

## `viamedemploy_joblog`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| username | varchar(100) | NO |  |  |  |
| job | varchar(100) | NO |  |  |  |
| jobstartime | varchar(100) | NO |  |  |  |
| jobendtime | varchar(100) | NO |  |  |  |

## `viamedemptime`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| clock | varchar(100) | NO |  |  |  |
| mins | varchar(100) | NO |  |  |  |
| hours | varchar(100) | NO |  |  |  |
| day | varchar(100) | NO |  |  |  |
| month | varchar(100) | NO |  |  |  |
| year | varchar(100) | NO |  |  |  |
| card | varchar(100) | NO |  |  |  |
| direction | varchar(100) | NO |  |  |  |
| unidate | varchar(100) | NO |  |  |  |
| end | varchar(100) | NO |  |  |  |

## `viamedheadboxes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| style | varchar(100) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| lengtha | varchar(100) | NO |  |  |  |
| widthb | varchar(100) | NO |  |  |  |
| heightc | varchar(100) | NO |  |  |  |
| heightd | varchar(100) | NO |  |  |  |
| widthe | varchar(100) | NO |  |  |  |
| port2size | varchar(100) | NO |  |  |  |
| port2 | varchar(100) | NO |  |  |  |
| port1size | varchar(100) | NO |  |  |  |
| port1 | varchar(100) | NO |  |  |  |
| inlet6 | varchar(100) | NO |  |  |  |
| inlet5 | varchar(100) | NO |  |  |  |
| inlet4 | varchar(100) | NO |  |  |  |
| inlet3size | varchar(100) | NO |  |  |  |
| inlet2size | varchar(100) | NO |  |  |  |
| inlet1size | varchar(100) | NO |  |  |  |
| inlet3 | varchar(100) | NO |  |  |  |
| inlet2 | varchar(100) | NO |  |  |  |
| inlet1 | varchar(100) | NO |  |  |  |
| slide | varchar(100) | NO |  |  |  |
| minheightf | varchar(100) | NO |  |  |  |
| numhole | varchar(100) | NO |  |  |  |
| type | varchar(100) | NO |  |  |  |
| account | varchar(100) | NO |  |  |  |
| name | varchar(100) | NO |  |  |  |
| position | varchar(100) | NO |  |  |  |
| department | varchar(100) | NO |  |  |  |
| hospital | varchar(100) | NO |  |  |  |
| telephone | varchar(100) | NO |  |  |  |
| ordernum | varchar(100) | NO |  |  |  |
| ppnumber | varchar(100) | NO |  |  |  |
| stock_ref | varchar(100) | NO |  |  |  |
| datecreated | varchar(100) | NO |  |  |  |
| dateordered | varchar(100) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| datecompleted | varchar(100) | NO |  |  |  |

## `viamedpass`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mobile | varchar(100) | NO |  |  |  |
| username | varchar(64) | NO |  |  |  |
| loginname | varchar(12) | NO |  |  |  |
| passname | varchar(12) | NO |  |  |  |
| crypt | varchar(128) | NO |  |  |  |
| level | int | NO |  | 0 |  |
| description | varchar(128) | NO |  |  |  |
| email | varchar(100) | NO |  |  |  |
| view | varchar(100) | NO |  |  |  |
| contactnumber | varchar(50) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| lastlogin | bigint | NO |  | 0 |  |
| code | varchar(8) | NO |  |  |  |
| colo1 | varchar(24) | NO |  |  |  |
| colo2 | varchar(24) | NO |  |  |  |
| colo3 | varchar(24) | NO |  |  |  |

## `viamedquote_answers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| company_id | int | NO |  |  |  |
| contact_id | int | NO |  |  |  |
| question_id | int | NO |  |  |  |
| answer | text | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | varchar(255) | NO |  |  |  |

## `viamedquote_country_rules`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO |  |  |  |
| xerocountry | varchar(128) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| blockfromorders | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `viamedquote_email_templates`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| name | varchar(255) | NO |  |  |  |
| description | text | YES |  |  |  |
| subject | longtext | NO |  |  |  |
| bodytext | longtext | NO |  |  |  |
| typeis | int | NO |  |  |  |
| active | tinyint(1) | NO |  | 1 |  |
| default_sender | varchar(255) | YES |  |  |  |
| placeholders | text | YES |  |  |  |
| created_at | datetime | YES |  |  |  |
| updated_at | datetime | YES |  |  |  |

## `viamedquote_followups`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| subject | varchar(128) | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| status | varchar(36) | NO |  |  |  |
| followupgroup | varchar(36) | NO |  |  |  |
| actionby | varchar(32) | NO |  |  |  |
| actionon | bigint | NO |  | 0 |  |
| keyfilter | varchar(36) | NO |  |  |  |
| generatedon | bigint | NO |  | 0 |  |
| chasedup | bigint | NO |  | 0 |  |
| chasedby | varchar(32) | NO |  |  |  |
| holdinvoiceby | int | NO |  |  |  |
| holdinvoiceon | int | NO |  |  |  |
| hasshipped | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `viamedquote_global_watchlist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| watchtype | varchar(16) | YES |  |  |  |
| watchkey1 | varchar(16) | YES |  |  |  |
| watchkey2 | varchar(16) | YES |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  | 0 |  |
| lastnotified | bigint | NO |  | 0 |  |
| status | int | NO |  | 0 |  |
| systemreviewed | bigint | NO |  |  |  |
| watchkey3 | int | NO |  |  |  |

## `viamedquote_information_requests`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| subject | longtext | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| status | int | NO |  |  |  |
| updatedon | bigint | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| primaryissue | int | NO |  |  |  |
| visitid | int | NO |  |  |  |
| supplierid | int | NO |  |  |  |
| suppliercontactid | int | NO |  |  |  |
| sourceid | int | NO |  |  |  |
| sourcecontactid | int | NO |  |  |  |
| technicalquestion | tinyint | NO |  |  |  |
| orderid | int | NO |  |  |  |

## `viamedquote_information_requests_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| requestid | int | NO |  |  |  |
| updatedon | bigint | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| oldstatus | int | NO |  |  |  |
| newstatus | int | NO |  |  |  |

## `viamedquote_information_requests_mailid`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| irid | int | NO |  |  |  |
| mailid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |

## `viamedquote_keyaccount_opera`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| primarycid | int | NO |  |  |  |
| secondarycid | int | NO |  |  |  |
| operaaccount | varchar(12) | NO |  |  |  |
| createdby | varchar(36) | NO |  |  |  |
| createdon | int | NO |  |  |  |

## `viamedquote_mailinglists`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| privatevui | tinyint | NO |  |  |  |
| archived | bigint | NO |  |  |  |
| archivedby | int | NO |  |  |  |
| enablecrm | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `viamedquote_mailinglists_contact_stock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mailingid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| stockref | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |

## `viamedquote_mailinglists_maildept`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| MAILDEPT | varchar(32) | NO |  |  |  |
| listid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamedquote_mailinglists_members`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| listid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addresslocked | tinyint | NO |  |  |  |
| verifiedby | int | NO |  |  |  |
| verifiedon | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |

## `viamedquote_operaaccounts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| companyid | int | NO |  |  |  |
| operaaccount | varchar(12) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamedquote_order_terms`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(64) | NO |  |  |  |
| termstype | int | NO |  |  |  |

## `viamedquote_orders`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| company_id | int | NO |  |  |  |
| contact_id | int | NO |  |  |  |
| order_stage | int | NO |  |  |  |
| createdon | bigint | NO |  |  |  |
| createdby | int | NO |  |  |  |
| hostcompany | int | NO |  |  |  |
| host_order_id | varchar(64) | NO |  |  |  |
| confirmedby | int | NO |  |  |  |
| confirmedon | bigint | NO |  |  |  |
| customer_ref | varchar(128) | NO |  |  |  |
| priority | int | NO |  |  |  |
| due | bigint | NO |  | 0 |  |
| modifiedby | int | NO |  |  |  |
| modifiedon | bigint | NO |  |  |  |
| delivery_company_id | int | NO |  |  |  |
| po_docid | int | NO |  |  |  |
| del_docid | int | NO |  |  |  |
| sentclickedon | bigint | NO |  |  |  |
| sentclickedby | int | NO |  |  |  |
| invoice_company_id | int | NO |  |  |  |
| quote_proforma | int | NO |  |  |  |
| delayedinvoice | bigint | NO |  | 0 |  |
| iscreditnote | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| vatexempt | int | NO |  |  |  |
| deletedby | int | NO |  | 0 |  |
| deletedon | bigint | NO |  | 0 |  |
| originalhost | int | NO |  | 0 |  |
| incoterms | int | NO |  |  |  |
| incotermslocation | varchar(32) | NO |  |  |  |
| contact_id_tel | varchar(24) | NO |  |  |  |
| quotevaliduntil | bigint | NO |  |  |  |
| cancelleddate | bigint | NO |  |  |  |
| cancelledby | int | NO |  |  |  |
| cancelledreason | longtext | NO |  |  |  |
| wasaquoteproforma | int | NO |  |  |  |
| wasaquoteproformaby | int | NO |  |  |  |
| wasaquoteproformaon | bigint | NO |  |  |  |
| prepaid | tinyint | NO |  |  |  |
| paperworkmemo | longtext | NO |  |  |  |
| signofascompleteby | int | NO |  |  |  |
| signofascompleteon | bigint | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| reviewedon | bigint | NO |  |  |  |
| paperworkname | int | NO |  |  |  |
| enduser_contact_id | int | NO |  |  |  |
| pndocid | int | NO |  |  |  |
| proformapaidon | bigint | NO |  |  |  |
| proformapaidby | int | NO |  |  |  |
| multipledeliveryids | int | NO |  |  |  |
| customer_ref_extra | varchar(128) | NO |  |  |  |
| countasreal | int | NO |  |  |  |
| partship | int | NO |  |  |  |
| shipready | int | NO |  |  |  |
| checkingstartedon | bigint | NO |  |  |  |
| checkingstartedby | int | NO |  |  |  |
| holdinvoices | tinyint | NO |  |  |  |
| autocredit | bigint | NO |  | 0 |  |
| visapayment | tinyint | NO |  |  |  |
| mailingscalculated | bigint | NO |  | 0 |  |
| holdpicking | tinyint | NO |  |  |  |
| quoteagreedby | int | NO |  |  |  |
| quoteagreedon | bigint | NO |  |  |  |
| ccpaidby | int | NO |  |  |  |
| ccpaidon | bigint | NO |  |  |  |
| preweights | longtext | NO |  |  |  |
| partpaid | tinyint | NO |  |  |  |
| insuranceagreed | int | NO |  |  |  |
| marketingindexid | int | NO |  |  |  |
| ordersource | varchar(32) | NO |  |  |  |
| deletedchasedby | int | NO |  |  |  |
| deletedchasedon | bigint | NO |  |  |  |
| clonedorderid | int | NO |  |  |  |
| clonedby | int | NO |  |  |  |
| clonedon | bigint | NO |  |  |  |
| customerconfirmationsenton | bigint | NO |  |  |  |
| customerconfirmationsentby | int | NO |  |  |  |
| quotesenton | bigint | NO |  |  |  |
| quotesentby | int | NO |  |  |  |
| proformasenton | bigint | NO |  |  |  |
| proformasentby | int | NO |  |  |  |

## `viamedquote_orders_allocations`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| supplier_orderid | int | NO |  |  |  |
| supplier_orderdetailsid | int | NO |  |  |  |
| customer_orderid | int | NO |  |  |  |
| customer_orderdetailsid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| stockref | varchar(48) | NO |  |  |  |
| qty | int | NO |  |  |  |
| allocationpriority | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| updatedby | int | NO |  |  |  |
| status | int | NO |  |  |  |

## `viamedquote_orders_allocations_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| supplier_orderid | int | NO |  |  |  |
| supplier_orderdetailsid | int | NO |  |  |  |
| customer_orderid | int | NO |  |  |  |
| customer_orderdetailsid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| stockref | varchar(48) | NO |  |  |  |
| qty | int | NO |  |  |  |
| allocationpriority | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| updatedby | int | NO |  |  |  |
| status | int | NO |  |  |  |
| replacedby | int | NO |  |  |  |
| replacedon | bigint | NO |  | 0 |  |

## `viamedquote_orders_credit_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| creditid | int | NO |  |  |  |
| orderid | int | NO |  |  |  |
| deliveryid | int | NO |  |  |  |
| invoiceref | varchar(12) | NO |  |  |  |
| barcode | int | NO |  |  |  |
| stockref | varchar(22) | NO |  |  |  |
| goodstotal | float(10,3) | NO |  |  |  |
| vattotal | float(10,3) | NO |  |  |  |
| linetotal | float(10,3) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| descriptiveitem | varchar(200) | NO |  |  |  |
| returnstock | int | NO |  |  |  |
| pricelist | varchar(8) | NO |  |  |  |
| paperworkorder | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |

## `viamedquote_orders_credits`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| creditreference | varchar(12) | NO |  |  |  |
| orderid | int | NO |  |  |  |
| deliveryid | int | NO |  |  |  |
| invoiceid | varchar(12) | NO |  |  |  |
| goodstotal | float(10,2) | NO |  |  |  |
| vattotal | float(10,2) | NO |  |  |  |
| invoicetotal | float(10,2) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| committedon | bigint | NO |  |  |  |
| committedby | int | NO |  |  |  |
| company_id | int | NO |  |  |  |
| xero_commitedon | bigint | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| xero_commitedby | int | NO |  |  |  |
| xero_commitedfile | bigint | NO |  | 0 |  |

## `viamedquote_orders_deliverys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| ordernumber | varchar(32) | NO |  |  |  |
| deliverynumber | int | NO |  |  |  |
| deliverydocid | int | NO |  |  |  |
| invoicedon | bigint | NO |  | 0 |  |
| invoiceby | int | NO |  |  |  |
| invoiceref | varchar(12) | NO |  |  |  |
| trackingnumber | varchar(128) | NO |  |  |  |
| trackingaddedby | int | NO |  |  |  |
| trackingaddedon | bigint | NO |  | 0 |  |
| numberparcels | int | NO |  |  |  |
| weightsmemo | longtext | NO |  |  |  |
| stopinvoice | int | NO |  |  |  |
| stopdeliveryconfirmation | int | NO |  |  |  |
| shipoption | varchar(128) | NO |  |  |  |
| deliveredon | bigint | NO |  | 0 |  |
| deliveredby | int | NO |  |  |  |
| deliveryconfirmationby | int | NO |  |  |  |
| deliveryconfirmationon | bigint | NO |  | 0 |  |
| deliveryconfirmationsentto | varchar(128) | NO |  |  |  |
| giventoshipperon | bigint | NO |  | 0 |  |
| giventoshipperby | int | NO |  |  |  |
| hiddenmemo | varchar(200) | NO |  |  |  |
| multiple_delivery_company_id | int | NO |  |  |  |
| finalweight | varchar(5) | NO |  |  |  |
| upspackcode | varchar(35) | NO |  |  |  |
| incoterms | int | NO |  |  |  |
| incotermslocation | varchar(96) | NO |  |  |  |

## `viamedquote_orders_deliverys_memolines`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid | int | NO |  |  |  |
| stockref | varchar(64) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| abbedon | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| rowid | int | NO |  |  |  |
| deliverynumber | int | NO |  |  |  |

## `viamedquote_orders_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid | int | NO |  |  |  |
| stockref | varchar(26) | NO |  |  |  |
| qty | int | NO |  |  |  |
| qty_shipped | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| modifiedby | int | NO |  |  |  |
| modifiedon | bigint | NO |  |  |  |
| unitprice | float(10,2) | NO |  |  |  |
| vat_exempt | int | NO |  |  |  |
| desctriptiveitem | varchar(200) | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| duedate | bigint | NO |  |  |  |
| pricelist | varchar(8) | NO |  |  |  |
| paperworkorder | int | NO |  |  |  |
| qtycancelled | int | NO |  |  |  |
| qtycancelledon | bigint | NO |  |  |  |
| qtycancelledby | int | NO |  |  |  |
| backorderstatustext | varchar(64) | NO |  |  |  |
| backorderstatuson | bigint | NO |  |  |  |
| backorderstatusby | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| custinformdateon | bigint | NO |  |  |  |
| original_del_date | bigint | NO |  |  |  |
| current_del_date | bigint | NO |  |  |  |
| custinformdateby | int | NO |  |  |  |

## `viamedquote_orders_editreason`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid | int | NO |  | 0 |  |
| addedby | int | NO |  | 0 |  |
| addedon | bigint | NO |  | 0 |  |
| originalby | int | NO |  |  |  |
| originalon | bigint | NO |  | 0 |  |
| reason | longtext | NO |  |  |  |
| reviewedon | int | NO |  |  |  |
| reviewedby | int | NO |  |  |  |
| cleanreason | varchar(128) | NO |  |  |  |
| openfault | varchar(32) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `viamedquote_orders_editreason_clean`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| dirtyreason | longtext | NO |  |  |  |
| cleanreason | varchar(128) | NO |  |  |  |
| openfault | varchar(32) | NO |  |  |  |
| reasoncode | varchar(64) | NO |  |  |  |

## `viamedquote_orders_incoterms`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| code | varchar(3) | NO |  |  |  |
| description | varchar(64) | NO |  |  |  |
| active | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| placeof | varchar(20) | NO |  |  |  |
| extnotes | longtext | NO |  |  |  |

## `viamedquote_orders_invoices`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid | int | NO |  |  |  |
| deliveryid | int | NO |  |  |  |
| invoiceref | varchar(12) | NO |  |  |  |
| goodstotal | float(10,2) | NO |  |  |  |
| vattotal | float(10,2) | NO |  |  |  |
| invoicetotal | float(10,2) | NO |  |  |  |
| paidflag | bigint | NO |  | 0 |  |
| paidby | int | NO |  |  |  |
| paidon | bigint | NO |  |  |  |
| paidamount | float(10,2) | NO |  |  |  |
| invoicecommitedon | bigint | NO |  |  |  |
| commitedby | int | NO |  |  |  |
| invoicesenttocustomeron | bigint | NO |  |  |  |
| invoicesenttocustomerby | int | NO |  |  |  |
| invoicesentby | varchar(12) | NO |  |  |  |
| invoicesenttosalesrep | int | NO |  |  |  |
| invoicesenttosalesrepon | bigint | NO |  |  |  |
| invoicesenttosalesrepby | int | NO |  |  |  |
| creditid | int | NO |  |  |  |
| creditnoteby | int | NO |  |  |  |
| creditnoteon | bigint | NO |  |  |  |
| receiptid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| xero_commitedon | bigint | NO |  |  |  |
| xero_commitedby | int | NO |  |  |  |
| xero_commitedfile | varchar(128) | NO |  |  |  |
| autodatecredits | bigint | NO |  | 0 |  |
| operafilesupdated | bigint | NO |  | 0 |  |
| companyid | int | NO |  |  |  |

## `viamedquote_orders_invoices_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid | int | NO |  |  |  |
| deliveryid | int | NO |  |  |  |
| invoiceref | varchar(12) | NO |  |  |  |
| barcode | int | NO |  |  |  |
| stockref | varchar(22) | NO |  |  |  |
| goodstotal | float(10,3) | NO |  |  |  |
| vattotal | float(10,3) | NO |  |  |  |
| linetotal | float(10,3) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| descriptiveitem | varchar(200) | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| paperworkorder | int | NO |  |  |  |
| pricelist | varchar(4) | NO |  |  |  |
| paidflag | int | NO |  |  |  |
| paidon | bigint | NO |  | 0 |  |
| paidby | int | NO |  |  |  |
| paidamount | float(10,2) | NO |  |  |  |
| autodatecredits | bigint | NO |  | 0 |  |
| splitoninvoice | int | NO |  |  |  |

## `viamedquote_orders_linked`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid1 | int | NO |  |  |  |
| orderid2 | int | NO |  |  |  |
| reason | longtext | NO |  |  |  |
| company_id | int | NO |  |  |  |

## `viamedquote_orders_mailshotoptions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| mailid | int | NO |  |  |  |
| orderid | int | NO |  |  |  |
| deliveryid | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| selected | bigint | NO |  | 0 |  |

## `viamedquote_orders_prepaids`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO |  |  |  |
| orderid | int | NO |  |  |  |
| changedby | int | NO |  |  |  |
| changedon | bigint | NO |  | 0 |  |
| prepaid | int | NO |  |  |  |
| amount | float(10,3) | NO |  |  |  |

## `viamedquote_orders_price_breaks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  | 0 |  |
| companyid | int | NO |  | 0 |  |
| currencyid | int | NO |  | 0 |  |
| breakqty | int | NO |  | 0 |  |
| price | float(10,3) | NO |  | 0.000 |  |
| stkref | varchar(24) | NO |  | 0 |  |
| updatedby | int | NO |  | 0 |  |
| updatedon | bigint | NO |  | 0 |  |
| status | int | NO |  |  |  |
| memo | longtext | YES |  |  |  |

## `viamedquote_orders_receipts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid | int | NO |  |  |  |
| bankid | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| currency | varchar(8) | NO |  |  |  |
| currency_rate | float(10,2) | NO |  |  |  |
| value | float(10,2) | NO |  |  |  |
| reference1 | varchar(36) | NO |  |  |  |
| reference2 | varchar(36) | NO |  |  |  |
| matchid | int | NO |  |  |  |
| invoiceref | varchar(16) | NO |  |  |  |
| trans_type | varchar(16) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| company_account | varchar(32) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| raw_value | float(10,2) | NO |  |  |  |
| memonotes | longtext | NO |  |  |  |
| dupcheck | varchar(250) | NO |  |  |  |

## `viamedquote_orders_receipts_matching`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| invoiceid | int | NO |  |  |  |
| receiptid | int | NO |  |  |  |
| bankid | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| value | float(10,2) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |

## `viamedquote_orders_reviews`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid | int | NO |  |  |  |
| reviewedon | bigint | NO |  |  |  |
| reviewedby | int | NO |  |  |  |

## `viamedquote_orders_service_contracts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| detailsid | int | NO |  |  |  |
| orderid | int | NO |  |  |  |
| barcode | int | NO |  |  |  |
| stockref | varchar(64) | NO |  |  |  |
| serialnumber | varchar(64) | NO |  |  |  |
| servicestockref | varchar(64) | NO |  |  |  |
| startdate | bigint | NO |  | 0 |  |
| enddate | bigint | NO |  | 0 |  |
| addedby | int | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `viamedquote_orders_srslist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid | int | NO |  |  |  |
| srsid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |

## `viamedquote_orders_ups_countrys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| country_name | varchar(48) | NO |  |  |  |
| country_ups | varchar(8) | NO |  |  |  |
| country_internal | varchar(24) | NO |  |  |  |
| iata | int | NO |  |  |  |
| currencycode | varchar(5) | NO |  |  |  |
| currencyname | varchar(48) | NO |  |  |  |

## `viamedquote_orders_ups_countrys_grouping`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |

## `viamedquote_orders_ups_countrys_grouping_items`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| groupid | int | NO |  |  |  |
| description | varchar(250) | NO |  |  |  |

## `viamedquote_orders_ups_countrys_grouping_map`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| grouping_item_id | int | NO | MUL |  |  |
| country_id | int | NO | MUL |  |  |

## `viamedquote_orders_ups_goodsdeclaration`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO |  |  |  |
| DescriptionofGoods | varchar(105) | NO |  |  |  |
| CountryTerritoryOfOrigin | varchar(50) | NO |  |  |  |
| Units | varchar(10) | NO |  |  |  |
| UnitofMeasure | varchar(50) | NO |  |  |  |
| UnitPrice | varchar(16) | NO |  |  |  |
| TarriffCode | varchar(10) | NO |  |  |  |
| Reference1 | varchar(35) | NO |  |  |  |
| partnumber | varchar(24) | NO |  |  |  |
| id2 | int | NO | PRI |  | auto_increment |

## `viamedquote_orders_ups_shipment`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| CompanyorName | varchar(35) | NO |  |  |  |
| Attention | varchar(35) | NO |  |  |  |
| Address1 | varchar(35) | NO |  |  |  |
| Address2 | varchar(35) | NO |  |  |  |
| Address3 | varchar(35) | NO |  |  |  |
| CityorTown | varchar(30) | NO |  |  |  |
| StateProvinceCounty | varchar(30) | NO |  |  |  |
| PostalCode | varchar(10) | NO |  |  |  |
| CountryTerritory | varchar(50) | NO |  |  |  |
| Telephone | varchar(15) | NO |  |  |  |
| EmailAddress | varchar(50) | NO |  |  |  |
| ShipmentWeight | varchar(5) | NO |  |  |  |
| NumberOfParcels | varchar(5) | NO |  |  |  |
| ServiceCode | varchar(25) | NO |  |  |  |
| PackageType | varchar(35) | NO |  |  |  |
| Reference1 | varchar(35) | NO |  |  |  |
| Reference2 | varchar(35) | NO |  |  |  |
| Reference3 | varchar(35) | NO |  |  |  |
| Reference4 | varchar(35) | NO |  |  |  |
| Reference5 | varchar(35) | NO |  |  |  |
| currency | varchar(3) | NO |  |  |  |
| incoterm | varchar(6) | NO |  |  |  |
| vat | varchar(40) | NO |  |  |  |

## `viamedquote_project_contacts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| project_id | int | NO |  |  |  |
| contact_id | int | NO |  |  |  |
| keep_informed | tinyint(1) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| addedby | varchar(32) | NO |  |  |  |
| role | varchar(32) | NO |  |  |  |

## `viamedquote_project_employees`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO |  |  |  |
| projectid | int | NO |  |  |  |
| employeeid | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | int | NO |  |  |  |

## `viamedquote_projections`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedon | int | NO |  |  |  |
| addedby | text | NO |  |  |  |
| updatedon | int | NO |  |  |  |
| updatedby | text | NO |  |  |  |
| stock_ref | varchar(16) | NO |  |  |  |
| qty | int | NO |  |  |  |
| probability | int | NO |  |  |  |
| date_start | int | NO |  |  |  |
| date_end | int | NO |  |  |  |

## `viamedquote_projects`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| parent_id | int | NO |  |  |  |
| description | varchar(250) | NO |  |  |  |
| current_status | longtext | NO |  |  |  |
| start_time | bigint | NO |  | 0 |  |
| expected_time | int | NO |  |  |  |
| dependancy_id | int | NO |  |  |  |
| dependancy_time | int | NO |  |  |  |
| status_flag | varchar(32) | NO |  |  |  |
| createdon | bigint | NO |  | 0 |  |
| createdby | varchar(64) | NO |  |  |  |
| updatedon | int | NO |  |  |  |
| updatedby | varchar(64) | NO |  |  |  |
| contact_id | int | NO |  |  |  |
| company_id | int | NO |  |  |  |
| fileindexid | int | NO |  |  |  |
| mainorder | int | NO |  |  |  |
| product | varchar(12) | NO |  |  |  |
| overview | longtext | NO |  |  |  |

## `viamedquote_projects_statuslog`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| project_id | int | NO |  |  |  |
| updatedon | int | NO |  |  |  |
| updatedby | varchar(64) | NO |  |  |  |
| statusnotes | longtext | NO |  |  |  |
| status | varchar(64) | NO |  |  |  |

## `viamedquote_purchase_orders`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompanyid | int | NO |  |  |  |
| addedby | bigint | NO |  | 0 |  |
| addedon | bigint | NO |  |  |  |
| senton | bigint | NO |  |  |  |
| sentby | int | NO |  |  |  |
| completedby | int | NO |  |  |  |
| completedon | bigint | NO |  |  |  |
| status | int | NO |  |  |  |
| company_id | int | NO |  |  |  |
| contact_id | int | NO |  |  |  |
| commitedon | bigint | NO |  |  |  |
| commitedby | int | NO |  |  |  |
| poaccount | varchar(32) | NO |  |  |  |
| Opera_po | varchar(12) | NO |  |  |  |
| memonotes | longtext | NO |  |  |  |
| currency_id | int | NO |  |  |  |
| openedby | int | NO |  |  |  |
| openedon | bigint | NO |  |  |  |
| cancelledon | bigint | NO |  |  |  |
| cancelledby | int | NO |  |  |  |
| cancelreason | longtext | NO |  |  |  |
| internalmemonotes | longtext | NO |  |  |  |
| revisionid | int | NO |  |  |  |
| SupplierShipmentDate | bigint | NO |  |  |  |
| SupplierShipmentBy | int | NO |  |  |  |
| DateOrderConfirmed | bigint | NO |  |  |  |
| DateOrderConfirmedBy | int | NO |  |  |  |
| supplierweblink | longtext | NO |  |  |  |
| supplierweblinkmd5 | longtext | NO |  |  |  |
| hidememonotes | tinyint | NO |  |  |  |

## `viamedquote_purchase_orders_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| orderid | int | NO |  |  |  |
| stockref | varchar(64) | NO |  |  |  |
| qty | int | NO |  |  |  |
| price | float(10,5) | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| remainingcancelled | bigint | NO |  |  |  |
| remainingcancelledby | int | NO |  |  |  |
| Opera_orderline | int | NO |  |  |  |
| memo | longtext | NO |  |  |  |
| requireddate | bigint | NO |  |  |  |
| supplier_ref | varchar(48) | NO |  |  |  |
| supplier_description | longtext | NO |  |  |  |
| qty_received | int | NO |  |  |  |
| supplierinvoiceprice | float(10,3) | NO |  |  |  |
| supplierpriceby | int | NO |  |  |  |
| supplierpriceon | bigint | NO |  |  |  |
| pricediffreviewedon | bigint | NO |  |  |  |
| pricediffreviewedby | int | NO |  |  |  |
| cancelreason | longtext | NO |  |  |  |
| monday_input_status | varchar(32) | NO |  |  |  |
| monday_input_shipdate | varchar(32) | NO |  |  |  |
| monday_input_updatedon | bigint | NO |  |  |  |
| monday_input_updatedby | int | NO |  |  |  |
| lineidsplitoriginal | int | NO |  |  |  |
| SupplierShipmentDate | bigint | NO |  |  |  |
| SupplierShipmentBy | int | NO |  |  |  |
| invoicereviewedon | bigint | NO |  |  |  |
| invoicereviewedby | int | NO |  |  |  |
| invoicereviewedstatus | int | NO |  |  |  |
| invoicereviewedprice | varchar(16) | NO |  |  |  |
| mismatchreviewedby | int | NO |  |  |  |
| mismatchreviewedon | bigint | NO |  |  |  |
| allocatetocustomerorder | int | NO |  |  |  |
| allocatetocustomerorderby | int | NO |  |  |  |
| allocatetocustomerorderon | bigint | NO |  |  |  |
| confirmeddeliverdate | tinyint | NO |  |  |  |
| confirmeddeliverdateby | int | NO |  |  |  |
| trackingnumber | varchar(128) | NO |  |  |  |

## `viamedquote_purchase_orders_editreason`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | bigint | NO | PRI |  | auto_increment |
| orderid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| revisionid | int | NO |  |  |  |
| reason | longtext | NO |  |  |  |

## `viamedquote_qty_prices`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| company | varchar(64) | NO |  |  |  |
| pricelist | varchar(128) | NO |  |  |  |
| qty | int | NO |  |  |  |
| user | int | NO |  |  |  |
| nowis | bigint | NO |  | 0 |  |
| stkref | varchar(16) | NO |  |  |  |
| companyid | int | YES |  |  |  |
| contactid | int | YES |  |  |  |

## `viamedquote_questionlist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(200) | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| status | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| shownumbering | tinyint | NO |  |  |  |

## `viamedquote_questionlist_answers`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| form_id | int | NO | MUL |  |  |
| question_id | int | NO | MUL |  |  |
| answer | text | NO |  |  |  |
| contact_id | int | NO | MUL |  |  |
| company_id | int | NO | MUL |  |  |
| hostcompanyid | int | NO | MUL |  |  |
| dateentered | bigint | NO |  |  |  |
| status | tinyint | NO |  | 1 |  |
| updatedon | bigint | YES |  |  |  |
| updatedby | int | NO |  |  |  |

## `viamedquote_questionlist_questions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| questionlistid | int | NO |  |  |  |
| questiontext | longtext | NO |  |  |  |
| displayorder | int | NO |  |  |  |
| addedon | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| status | int | NO |  |  |  |
| answer_type | varchar(50) | NO |  | text |  |
| answer_config | text | YES |  |  |  |
| parent_question_id | int | YES |  |  |  |
| follow_on_condition | varchar(255) | YES |  |  |  |

## `viamedquote_sensor_recycle`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| operaaccount | varchar(12) | NO |  |  |  |
| oem | varchar(24) | NO |  |  |  |
| oem_pn | varchar(24) | NO |  |  |  |
| stock_ref | varchar(36) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| qty | int | NO |  |  |  |
| followupby | int | NO |  |  |  |
| followupon | int | NO |  |  |  |
| followupaction | varchar(64) | NO |  |  |  |
| actmach | int | NO |  |  |  |

## `viamedquote_view_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| companyid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |

## `viamedquoteaccountgroups`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedbyname | varchar(64) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `viamedquoteaddress`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| ID | int | NO | PRI |  | auto_increment |
| ADDRESS1 | varchar(255) | YES |  |  |  |
| ADDRESS2 | varchar(255) | YES |  |  |  |
| ADDRESS3 | varchar(255) | YES |  |  |  |
| CITY | varchar(255) | YES |  |  |  |
| COMPANY | varchar(255) | YES |  |  |  |
| CONTACT | varchar(255) | YES |  |  |  |
| COUNTRY | varchar(255) | YES |  |  |  |
| INETADDR | varchar(255) | YES |  |  |  |
| KEY5 | varchar(255) | YES |  |  |  |
| PHONE1 | varchar(255) | YES |  |  |  |
| PHONE2 | varchar(255) | YES |  |  |  |
| FAX | varchar(200) | NO |  |  |  |
| STATE | varchar(255) | YES |  |  |  |
| TITLE | varchar(255) | YES |  |  |  |
| UPOSITION | varchar(255) | YES |  |  |  |
| ZIP | varchar(255) | YES |  |  |  |
| DEPARTMENT | varchar(255) | YES |  |  |  |
| NOTES | longtext | YES |  |  |  |
| FLAG | varchar(10) | NO |  |  |  |
| REGION | varchar(50) | NO |  |  |  |
| STATUS | varchar(100) | NO |  |  |  |
| HNHREP | varchar(50) | NO |  |  |  |
| REORDER | int | NO |  | 0 |  |
| OWNERGROUP | varchar(100) | NO |  |  |  |
| NHSREGION | varchar(100) | NO |  |  |  |
| hideme | varchar(100) | NO |  |  |  |
| contact_special_id | int | NO |  |  |  |
| contact_special_type | varchar(16) | NO |  |  |  |
| visitingnotes | longtext | NO |  |  |  |
| Company_reg_number | varchar(24) | NO |  |  |  |
| Vat_Number | varchar(24) | NO |  |  |  |
| contact_type | varchar(128) | NO |  |  |  |
| lostsalestag | varchar(200) | NO |  |  |  |
| lostsalesnotes | longtext | NO |  |  |  |
| alternativenames | longtext | NO |  |  |  |
| emailinvoices | varchar(5) | NO |  |  |  |
| debtornotes | varchar(250) | NO |  |  |  |
| googleidentifier | varchar(64) | NO |  |  |  |
| rmanotes | longtext | NO |  |  |  |
| website | varchar(200) | NO |  |  |  |
| companyid | int | NO |  |  |  |
| einvoicenotes | longtext | NO |  |  |  |
| checkingnotes | longtext | NO |  |  |  |
| checkingnotesby | int | NO |  |  |  |
| checkingnoteson | bigint | NO |  |  |  |
| orderconf1 | varchar(1) | NO |  |  |  |
| orderconf2 | varchar(1) | NO |  |  |  |
| einvoicesingles | varchar(1) | NO |  |  |  |
| invoice_company_id | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| rep_company_id | int | NO |  |  |  |
| rep_contact_id | int | NO |  |  |  |
| mainconotes | longtext | NO |  |  |  |
| mainconotesby | int | NO |  |  |  |
| mainconoteson | bigint | NO |  |  |  |
| otheraccount | varchar(16) | NO |  |  |  |
| vat_exempt | int | NO |  |  |  |
| paymenttermsdefault | int | NO |  |  |  |
| deliverytermsdefault | int | NO |  |  |  |
| credittype | varchar(16) | NO |  |  |  |
| firstcontactcode | varchar(32) | NO |  |  |  |
| stoponaccount | int | NO |  |  |  |
| specialsalesflag | varchar(3) | NO |  |  |  |
| salesrep | int | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  |  |  |
| DL_TestField | varchar(12) | NO |  |  |  |
| goodinmemo | longtext | NO |  |  |  |
| hidefrompostock | smallint | NO |  |  |  |
| Invoice_Method | int | NO |  |  |  |
| glncode | varchar(24) | NO |  |  |  |
| stocksignedoffon | bigint | NO |  | 0 |  |
| stocksignedoffby | int | NO |  |  |  |
| Opera_Region | varchar(35) | NO |  |  |  |
| Opera_Territory | varchar(35) | NO |  |  |  |
| Opera_Cust_type | varchar(35) | NO |  |  |  |
| Opera_Cust_analy | varchar(6) | NO |  |  |  |
| Opera_Stat_account | varchar(20) | NO |  |  |  |
| Opera_Desp_method | varchar(35) | NO |  |  |  |
| Opera_Pricelist | varchar(12) | NO |  |  |  |
| Opera_Creditlimit | int | NO |  |  |  |
| Xero_contactname | varchar(100) | NO |  |  |  |
| ourpoaccount | varchar(48) | NO |  |  |  |
| incoterms | int | NO |  |  |  |
| incotermslocation | varchar(32) | NO |  |  |  |
| XeroInvoiceCompanyName | varchar(128) | NO |  |  |  |
| XeroInvoiceContactEmail | varchar(128) | NO |  |  |  |
| banksearch | varchar(128) | NO |  |  |  |
| operaclosingbalance | float(10,3) | NO |  |  |  |
| supplierpaymentdays | int | NO |  |  |  |
| ourpocurrency | int | NO |  |  |  |
| peppolid | varchar(48) | NO |  |  |  |
| xeroexportsuppliername | varchar(64) | NO |  |  |  |
| xeroexportcustomername | varchar(200) | NO |  |  |  |
| customereorinumber | varchar(24) | NO |  |  |  |
| issueicon | varchar(5) | NO |  |  |  |
| issueiconcolour | int | NO |  |  |  |
| allgoodslabelid | int | NO |  |  |  |
| restockmonths | int | NO |  |  |  |
| shopifyaddress | longtext | NO |  |  |  |
| delnotification | int | NO |  |  |  |
| deliverytermsdefaultconsign | varchar(128) | NO |  |  |  |
| supplierreviewrating | varchar(1) | NO |  |  |  |
| WILDIXPHONE | varchar(100) | NO |  |  |  |
| blacklist | varchar(64) | NO |  |  |  |
| distpreinsurance | int | NO |  |  |  |
| distformreturned | bigint | NO |  |  |  |
| distagreement | bigint | NO |  |  |  |
| linkedaddress | int | NO |  |  |  |
| feedbacksurvey | tinyint | NO |  |  |  |
| paymentroute | tinyint | NO |  |  |  |
| paymentroutenotes | longtext | NO |  |  |  |
| preferedcid | int | NO |  |  |  |
| transittimedays | int | NO |  |  |  |
| suppliermonthcutoff | int | NO |  |  |  |

## `viamedquoteaddress_feedback`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| companyid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| rating | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |

## `viamedquoteaddress_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| fielded | varchar(24) | NO |  |  |  |
| newanswer | varchar(128) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| companyid | int | NO |  |  |  |

## `viamedquoteaddress_hostcompany`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| company_id | int | NO |  |  |  |
| hostcompany | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamedquoteaddress_invoicemethod`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| method | varchar(24) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| active | int | NO |  |  |  |

## `viamedquoteaddress_questions_required`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| company_id | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| updatedon | bigint | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| questionlistid | int | NO |  |  |  |
| status | int | NO |  |  |  |
| supplierreviewid | int | NO |  |  |  |
| signedoffon | bigint | NO |  |  |  |
| signedoffby | int | NO |  |  |  |

## `viamedquoteaddress_stoplog`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| updatedon | bigint | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| status | int | NO |  |  |  |

## `viamedquotecleaner`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| dirty | varchar(128) | NO |  |  |  |
| clean | varchar(128) | NO |  |  |  |
| basefield | varchar(128) | NO |  |  |  |

## `viamedquotecommisions`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| repid | varchar(100) | NO |  |  |  |
| companyid | varchar(100) | NO |  |  |  |
| operaaccount | varchar(100) | NO |  |  |  |
| companyname | varchar(100) | NO |  |  |  |
| invoicedate | varchar(100) | NO |  |  |  |
| invoicenumber | varchar(100) | NO |  |  |  |
| productid | varchar(100) | NO |  |  |  |
| qty | decimal(10,2) | NO |  | 0.00 |  |
| value | decimal(10,2) | NO |  | 0.00 |  |
| commision | decimal(10,2) | NO |  | 0.00 |  |

## `viamedquotecontact`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| CONTACT | varchar(100) | NO |  |  |  |
| COUNTRY | varchar(100) | NO |  |  |  |
| INETADDR | varchar(100) | NO |  |  |  |
| PHONE1 | varchar(100) | NO |  |  |  |
| PHONE2 | varchar(100) | NO |  |  |  |
| FAX | varchar(100) | NO |  |  |  |
| TITLE | varchar(100) | NO |  |  |  |
| UPOSITION | varchar(100) | NO |  |  |  |
| ZIP | varchar(100) | NO |  |  |  |
| DEPARTMENT | varchar(100) | NO |  |  |  |
| FLAG | varchar(100) | NO |  |  |  |
| COMPANY_ID | int | NO |  | 0 |  |
| NOTES | longtext | NO |  |  |  |
| REPID | varchar(100) | NO |  |  |  |
| KEY5 | varchar(100) | NO |  |  |  |
| hideme | varchar(100) | NO |  |  |  |
| updatedon | varchar(100) | NO |  |  |  |
| MAILDEPT | varchar(32) | NO |  |  |  |
| mail | varchar(7) | NO |  |  |  |
| email | varchar(7) | NO |  |  |  |
| phone | varchar(7) | NO |  |  |  |
| hidemereason | varchar(64) | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| iso | varchar(5) | NO |  |  |  |
| accountstatements | varchar(5) | NO |  |  |  |
| sendpricingupdates | varchar(5) | NO |  |  |  |
| emailinvoice | varchar(5) | NO |  |  |  |
| mobilenumber | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| altdirectdial | varchar(32) | NO |  |  |  |
| extension | varchar(32) | NO |  |  |  |
| altextension | varchar(32) | NO |  |  |  |
| bleepnum | varchar(32) | NO |  |  |  |
| responsibility | varchar(78) | NO |  |  |  |
| GOLDMINEKEY | varchar(24) | NO |  |  |  |
| polog | varchar(5) | NO |  |  |  |
| remit | varchar(5) | NO |  |  |  |
| emailinvoicegoldmine | varchar(5) | NO |  |  |  |
| emailpricechanges | varchar(5) | NO |  |  |  |
| firstcontact | varchar(32) | NO |  |  |  |
| CleanPosition | varchar(64) | NO |  |  |  |
| xeroimported | tinyint | NO |  |  |  |
| allowso | tinyint | NO |  |  |  |
| hashcode | varchar(32) | YES |  |  |  |
| verifiedby | int | NO |  |  |  |
| verifiedon | bigint | NO |  |  |  |
| verifiedadminby | int | NO |  |  |  |
| verifiedadminon | bigint | NO |  |  |  |
| WILDIXPHONE | varchar(100) | NO |  |  |  |
| unsubscribeby | int | NO |  |  |  |
| unsubscribeon | bigint | NO |  |  |  |
| deliverynotification | tinyint | NO |  |  |  |

## `viamedquotecontact_emailaddress`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| contactid | int | NO |  |  |  |
| emailaddress | varchar(250) | NO |  |  |  |

## `viamedquotecontact_emailaddress_groups`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| notes | mediumtext | NO |  |  |  |
| keep | int | NO |  |  |  |

## `viamedquotecontact_emailaddress_groups_contacts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| groupid | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| type | int | NO |  |  |  |

## `viamedquotecontact_globalresp`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| contactid | int | NO |  |  |  |
| globalrespid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamedquotecontact_history`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| contactid | int | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |

## `viamedquotecontact_responsibilitys`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedby | text | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| sectionid | int | NO |  |  |  |
| sectiontext | varchar(128) | NO |  |  |  |
| responsibilitys | varchar(32) | NO |  |  |  |
| contact_id | int | NO |  |  |  |

## `viamedquotecontactgroup`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| vui | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| description | varchar(128) | NO |  |  |  |

## `viamedquotecontactgrouplinks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| vui | int | NO |  |  |  |
| contactid | int | NO |  |  |  |
| groupid | int | NO |  |  |  |

## `viamedquotecontactsrepaircodes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| company_id | int | NO |  |  |  |
| stockref | varchar(64) | NO |  |  |  |
| cleancode | varchar(128) | NO |  |  |  |
| cid_faultcode | varchar(128) | NO |  |  |  |
| cid_description | longtext | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |

## `viamedquotecontactstockdayschase`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| account | varchar(24) | NO |  |  |  |
| stockref | varchar(24) | NO |  |  |  |
| days | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| status | int | NO |  |  |  |
| chasedon | bigint | NO |  |  |  |
| chasedby | int | NO |  |  |  |
| lastorderdate | bigint | NO |  |  |  |
| lastorderid | varchar(24) | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |

## `viamedquotecontactstockstatus`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| opera | varchar(12) | NO |  |  |  |
| stock_ref | varchar(24) | NO |  |  |  |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| statusid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| typedata | varchar(32) | NO |  | Unspecified |  |

## `viamedquotecontactstockstatuslist`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| type | smallint | NO |  | 0 |  |
| impact | int | NO |  |  |  |
| colourcode | varchar(7) | YES |  |  |  |

## `viamedquotecustomertypes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |

## `viamedquoteemails_control`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| last_fetched_email | timestamp | NO |  | 2025-01-01 00:00:00 |  |
| hostcompany_id | int | NO |  |  |  |

## `viamedquoteemails_email_assigned`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| email_id | int | YES | MUL |  |  |
| user_id | int | YES | MUL |  |  |
| status | enum('unread','in_progress','completed') | YES |  | unread |  |
| follow_status | enum('following','not_following') | YES |  | not_following |  |
| email_updated_on | datetime | YES |  |  |  |
| email_last_read | datetime | YES |  |  |  |

## `viamedquoteemails_emails`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompany_id | int | NO | MUL |  |  |
| email_from | varchar(255) | NO | MUL |  |  |
| email_to | text | YES |  |  |  |
| email_cc | text | YES |  |  |  |
| email_bcc | text | YES |  |  |  |
| subject | text | NO |  |  |  |
| received_at | datetime | NO | MUL |  |  |
| direction | enum('incoming','outgoing') | NO |  |  |  |
| status | enum('received','sent','failed') | NO |  |  |  |
| message_id | varchar(255) | NO | UNI |  |  |
| body | text | YES |  |  |  |
| attachments_count | int | YES |  | 0 |  |
| has_attachments | tinyint(1) | YES |  | 0 |  |
| importance | varchar(50) | YES |  |  |  |
| is_read | tinyint(1) | YES |  | 0 |  |
| thread_id | varchar(255) | YES |  |  |  |
| in_reply_to | varchar(255) | YES |  |  |  |
| processed | tinyint(1) | YES | MUL | 0 |  |
| processed_at | datetime | YES |  |  |  |
| created_at | datetime | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED |
| updated_at | datetime | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
| userid | int | NO |  | 0 |  |
| contactid | int | NO |  | 0 |  |
| companyid | int | NO |  | 0 |  |
| body_plain | text | NO |  |  |  |

## `viamedquoteemails_failed`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| hostcompany_id | int | NO | MUL |  |  |
| message_id | varchar(255) | NO | MUL |  |  |
| error | text | NO |  |  |  |
| failed_at | timestamp | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED |

## `viamedquotefilelinks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| COMPANYID | int | NO |  |  |  |
| CONTACTID | int | NO |  |  |  |
| docid | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |

## `viamedquoteforcasts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| contact_id | int | NO |  |  |  |
| company_id | int | NO |  |  |  |
| chance | int | NO |  |  |  |
| estimatedate | bigint | NO |  | 0 |  |
| notes | longtext | NO |  |  |  |
| quote_ref | varchar(32) | NO |  |  |  |
| stock_ref | varchar(32) | NO |  |  |  |
| quantity | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| description | varchar(252) | NO |  |  |  |

## `viamedquoteforcasts_contacts`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| forcastid | int | NO |  |  |  |
| contact_id | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| active | int | NO |  |  |  |
| options | varchar(128) | NO |  |  |  |

## `viamedquoteforcasts_ranges`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| forecastid | int | NO |  |  |  |
| rangname | varchar(128) | NO |  |  |  |
| range_option | varchar(128) | NO |  |  |  |
| updatedby | varchar(32) | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| active | int | NO |  |  |  |

## `viamedquoteinformation`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| code | varchar(100) | NO |  |  |  |
| description | varchar(250) | NO |  |  |  |
| id | int | NO | PRI |  | auto_increment |
| active | varchar(100) | NO |  |  |  |
| pdf | varchar(100) | NO |  |  |  |

## `viamedquoteisostandards`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| company_id | int | NO |  |  |  |
| approvingbody | varchar(64) | NO |  |  |  |
| approvalstandard | varchar(64) | NO |  |  |  |
| certificatenumber | varchar(64) | NO |  |  |  |
| expirydate | bigint | NO |  | 0 |  |
| availableonline | varchar(128) | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| updatedby | varchar(64) | NO |  |  |  |

## `viamedquoteitems`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| quoteref | varchar(50) | NO |  |  |  |
| itempn | varchar(250) | NO |  |  |  |
| qty | decimal(10,0) | NO |  | 0 |  |
| itemprice | decimal(10,2) | NO |  | 0.00 |  |
| status | varchar(60) | NO |  |  |  |
| itemcode | varchar(100) | NO |  |  |  |

## `viamedquotemultiaddresslinks`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| companyid1 | int | NO |  |  |  |
| companyid2 | int | NO |  |  |  |
| linkreason | varchar(64) | NO |  |  |  |
| linkedby | varchar(64) | NO |  |  |  |
| linkedon | bigint | NO |  | 0 |  |
| organisationheight | int | NO |  |  |  |

## `viamedquoteorderwatch`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| userid | int | NO |  |  |  |
| operaaccount | varchar(12) | NO |  |  |  |
| status | varchar(12) | NO |  |  |  |
| dateordered | int | NO |  |  |  |
| issueid | int | NO |  |  |  |
| addedby | varchar(32) | NO |  |  |  |
| addedon | bigint | NO |  | 0 |  |
| sentord | varchar(12) | NO |  |  |  |
| company_id | int | NO |  |  |  |
| repeatwatch | tinyint | NO |  |  |  |
| ordertype | tinyint | NO |  |  |  |

## `viamedquoterepinformation`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| infoid | varchar(100) | NO |  |  |  |
| repid | varchar(100) | NO |  |  |  |
| active | varchar(100) | NO |  |  |  |

## `viamedquoterepopera`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| operacode | varchar(40) | NO |  |  |  |
| userid | varchar(50) | NO |  |  |  |
| active | varchar(254) | NO |  |  |  |
| reorder | int | NO |  | 0 |  |
| company_id | varchar(100) | NO |  |  |  |
| oldoperacode | varchar(100) | NO |  |  |  |

## `viamedquoterequestmerge`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| contactid | int | NO |  |  |  |
| companyid | int | NO |  |  |  |
| requestby | varchar(32) | NO |  |  |  |
| requeston | bigint | NO |  | 0 |  |
| searchfield | varchar(125) | NO |  |  |  |
| status | varchar(32) | NO |  |  |  |
| doneby | varchar(32) | NO |  |  |  |

## `viamedquotestatus`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| customer_id | varchar(100) | NO |  |  |  |
| quoteref | varchar(50) | NO |  |  |  |
| rep_id | varchar(100) | NO |  |  |  |
| rasiedby | varchar(50) | NO |  |  |  |
| account | varchar(50) | NO |  |  |  |
| contact | varchar(50) | NO |  |  |  |
| title | varchar(50) | NO |  |  |  |
| position | varchar(50) | NO |  |  |  |
| department | varchar(50) | NO |  |  |  |
| address1 | varchar(50) | NO |  |  |  |
| address2 | varchar(50) | NO |  |  |  |
| address3 | varchar(50) | NO |  |  |  |
| city | varchar(50) | NO |  |  |  |
| county | varchar(50) | NO |  |  |  |
| country | varchar(50) | NO |  |  |  |
| postcode | varchar(50) | NO |  |  |  |
| addresstel | varchar(50) | NO |  |  |  |
| directtel | varchar(50) | NO |  |  |  |
| fax | varchar(50) | NO |  |  |  |
| email | varchar(50) | NO |  |  |  |
| timestampraised | bigint | NO |  | 0 |  |
| status | varchar(24) | NO |  |  |  |
| emailrep | char(1) | NO |  |  |  |
| emailtl | char(1) | NO |  |  |  |
| emailgoldmine | char(1) | NO |  |  |  |
| emailcustomer | char(1) | NO |  |  |  |
| emailfake | char(1) | NO |  |  |  |
| timestampsent | bigint | NO |  | 0 |  |
| timeorderraised | int | NO |  | 0 |  |
| memo | longtext | NO |  |  |  |
| reminderflag | varchar(100) | NO |  |  |  |
| reminder | varchar(100) | NO |  |  |  |
| company | varchar(254) | NO |  |  |  |
| company_id | int | NO |  |  |  |
| updatedate | bigint | NO |  | 0 |  |
| mailid | int | NO |  |  |  |
| marketingindexid | int | NO |  |  |  |
| callid | int | NO |  |  |  |
| marketingindexstageid | int | NO |  |  |  |
| visittag | int | NO |  |  |  |
| irrequest | int | NO |  |  |  |

## `viamedquotestatus_tags`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| tagtype | int | NO |  |  |  |

## `viamedquotestock`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| stock_ref | varchar(50) | NO |  |  |  |
| description | varchar(50) | NO |  |  |  |
| operacatagory | varchar(50) | NO |  |  |  |
| menucatagory | varchar(50) | NO |  |  |  |
| standardprice | decimal(10,2) | NO |  | 0.00 |  |
| postagecode | decimal(2,0) | NO |  | 0 |  |
| userid | int | NO |  |  |  |
| Commision | double(4,2) | NO |  | 0.00 |  |
| active | varchar(100) | NO |  |  |  |

## `viamedquotestocklink`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| companyid | int | NO |  |  |  |
| stockref | varchar(32) | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| qty | int | NO |  |  |  |
| pricecheck | int | NO |  |  |  |
| visitid | int | NO |  |  |  |
| hostcompanyid | int | NO |  |  |  |
| marketingindexid | int | NO |  |  |  |
| ir_id | int | NO |  |  |  |

## `viamedquotestophistory`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| AccountID | int | NO |  |  |  |
| updatedby | int | NO |  |  |  |
| updatedon | bigint | NO |  | 0 |  |
| NewStop | int | NO |  |  |  |

## `vmempbreak`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| name | varchar(60) | NO |  |  |  |
| break1 | varchar(60) | NO |  |  |  |
| dinner | varchar(30) | NO |  |  |  |
| break2 | varchar(30) | NO |  |  |  |
| stillactive | char(3) | NO |  |  |  |
| Department | varchar(45) | NO |  |  |  |
| clockcard | varchar(100) | NO |  |  |  |
| daysholiday | int | NO |  | 0 |  |
| vui | int | NO |  |  |  |

## `vmempdayids`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(16) | NO |  |  |  |

## `vmemphol`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| requestedddate | varchar(60) | NO |  |  |  |
| name | varchar(45) | NO |  |  |  |
| startdate | varchar(12) | NO |  |  |  |
| returndate | varchar(12) | NO |  |  |  |
| daysoff | decimal(2,1) | NO |  | 0.0 |  |
| datelogged | varchar(45) | NO |  |  |  |
| authorisedby | varchar(45) | NO |  |  |  |
| status | varchar(10) | NO |  |  |  |
| unitimestart | decimal(10,0) | NO |  | 0 |  |
| unitimeend | decimal(10,0) | NO |  | 0 |  |
| reason2 | varchar(100) | NO |  |  |  |
| reason | varchar(100) | NO |  |  |  |
| year | varchar(4) | NO |  |  |  |

## `vmempholajdustments`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| year | int | NO |  |  |  |
| days | float(10,2) | NO |  |  |  |
| employee_name | char(32) | NO |  |  |  |
| employeeid | int | NO |  |  |  |
| notes | longtext | NO |  |  |  |
| hours | float(10,2) | NO |  |  |  |

## `vmempholclash`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| date | varchar(12) | NO |  |  |  |
| updateby | varchar(32) | NO |  |  |  |
| user1 | int | NO |  | 0 |  |
| user2 | int | NO |  | 0 |  |
| allowed | char(3) | NO |  |  |  |
| archived | char(1) | NO |  |  |  |

## `vmempholhours`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| addedon | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| requeststarton | bigint | NO |  |  |  |
| requestlengthseconds | int | NO |  |  |  |
| requesttype | int | NO |  |  |  |

## `vmempholhoursreasons`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| addhours | int | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |

## `vmemphollog`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| type | varchar(100) | NO |  |  |  |
| name | varchar(100) | NO |  |  |  |
| date | bigint | NO |  | 0 |  |
| am | varchar(100) | NO |  |  |  |
| pm | varchar(100) | NO |  |  |  |
| daterequested | varchar(100) | NO |  |  |  |
| authorisedby | varchar(100) | NO |  |  |  |
| authorisedon | varchar(100) | NO |  |  |  |
| year | varchar(100) | NO |  |  |  |
| status | varchar(100) | NO |  |  |  |
| awaytype | varchar(12) | NO |  |  |  |
| description | varchar(250) | NO |  |  |  |
| googlecal | varchar(1) | NO |  |  |  |
| selfcertificate | varchar(4) | NO |  |  |  |
| doctorscertificate | varchar(4) | NO |  |  |  |
| rangin | varchar(4) | NO |  |  |  |
| certdate | bigint | NO |  | 0 |  |
| rangdate | bigint | NO |  | 0 |  |
| meetingroom | varchar(5) | NO |  |  |  |
| requestedby | int | NO |  |  |  |
| employeeid | int | NO |  |  |  |
| hnotes | varchar(250) | NO |  |  |  |
| hoursholiday | float(10,2) | NO |  |  |  |
| newlogid | int | NO |  |  |  |
| overtimepaid | int | NO |  |  |  |

## `vmemphollogtypes`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |
| effectonholidays | int | NO |  |  |  |
| activeclashadmin | int | NO |  |  |  |
| displayotherusers | int | NO |  |  |  |

## `vmemploy`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| name | varchar(60) | NO |  |  |  |
| department | varchar(60) | NO |  |  |  |
| dob | varchar(100) | NO |  |  |  |
| commenced | varchar(100) | NO |  |  |  |
| job_title | varchar(100) | NO |  |  |  |
| status | varchar(20) | NO |  |  |  |

## `vmemptime`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| vui | int | NO |  |  |  |
| dayid | int | NO |  |  |  |
| timeid | bigint | NO |  |  |  |
| addedby | int | NO |  |  |  |
| addedon | bigint | NO |  |  |  |
| breaksmemo | longtext | NO |  |  |  |
| adminmemo | longtext | NO |  |  |  |
| lunchmins | int | NO |  |  |  |
| lunchtime | bigint | NO |  |  |  |

## `vmemptimesheet`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| startdate | bigint | NO |  | 0 |  |
| enddate | bigint | NO |  | 0 |  |
| printed_on | bigint | NO |  | 0 |  |
| printed_by | varchar(32) | NO |  |  |  |

## `web_details`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| domain | varchar(150) | NO |  |  |  |
| primarydomain | varchar(200) | NO |  |  |  |
| hotchillstatus | int | NO |  |  |  |
| renewaldate | int | NO |  |  |  |
| stillrequired | int | NO |  |  |  |
| currentstatus | int | NO |  |  |  |
| ftpip | varchar(20) | NO |  |  |  |
| ftpun | varchar(32) | NO |  |  |  |
| ftppw | varchar(32) | NO |  |  |  |
| ftpstatus | int | NO |  |  |  |
| mysqlstatus | int | NO |  |  |  |
| mysqlip | varchar(20) | NO |  |  |  |
| mysqlun | varchar(32) | NO |  |  |  |
| mysqlpw | varchar(32) | NO |  |  |  |
| updatedon | int | NO |  |  |  |

## `web_details_status`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| description | varchar(128) | NO |  |  |  |

## `whererthey`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| iam | varchar(30) | NO |  |  |  |
| imat | varchar(30) | NO |  |  |  |
| iwas | varchar(40) | NO |  |  |  |

## `wildix_log`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| WildixDate | date | NO |  |  |  |
| WildixFrom | varchar(250) | NO |  |  |  |
| WildixGroupFrom | varchar(36) | NO |  |  |  |
| WildixTo | varchar(250) | NO |  |  |  |
| WildixGroupTo | varchar(12) | NO |  |  |  |
| WildixCountry | varchar(64) | NO |  |  |  |
| WildixCallClass | varchar(16) | NO |  |  |  |
| WildixCost | int | NO |  |  |  |
| WildixDirection | varchar(12) | NO |  |  |  |
| WildixStatus | varchar(12) | NO |  |  |  |
| WildixTalkTime | varchar(32) | NO |  |  |  |
| WildixRingTime | int | NO |  |  |  |
| WildixPBX | varchar(36) | NO |  |  |  |
| WildixTrunk | varchar(16) | NO |  |  |  |
| WildixTag | varchar(16) | NO |  |  |  |
| WildixService | varchar(16) | NO |  |  |  |
| WildixFromUser | int | NO |  |  |  |
| WildixToUser | int | NO |  |  |  |
| ISdate | bigint | NO |  |  |  |
| IScontact_id | int | NO |  |  |  |
| IScompany_id | int | NO |  |  |  |
| dialednumber | varchar(48) | NO |  |  |  |

## `z_temp_microstim`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| serialnumber | varchar(64) | NO |  |  |  |
| box | varchar(12) | NO |  |  |  |

## `z_temp_purchase`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| Account | varchar(16) | NO |  |  |  |
| SupRef | varchar(24) | NO |  |  |  |
| stkref | varchar(24) | NO |  |  |  |
| description | varchar(100) | NO |  |  |  |
| unitvalue | float(10,2) | NO |  |  |  |
| value | float(10,2) | NO |  |  |  |
| por | varchar(12) | NO |  |  |  |

## `z_test`

| Field | Type | Null | Key | Default | Extra |
|-------|------|------|-----|---------|-------|
| id | int | NO | PRI |  | auto_increment |
| test | varchar(32) | NO |  |  |  |

