<?xml version="1.0" encoding="utf-8"?>
<table>
	<name>vendor</name>
	<collation>utf8_general_ci</collation>
	<description></description>
	<columns>
		<column name="id">
			<type>int</type>
			<length>11</length>
			<signed>UNSIGNED</signed>
			<null>NOT NULL</null>
			<extra>auto_increment</extra>
			<description></description>
		</column>
		<column name="vendor_name">
			<type>varchar</type>
			<length>255</length>
			<null>NOT NULL</null>
			<default></default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="vendor_address">
		    <type>text</type>
            <length></length>
            <null>NULL</null>
            <default></default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
		<column name="vendor_country">
			<type>char</type>
			<length>2</length>
			<null>NOT NULL</null>
			<default></default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="vendor_currency">
			<type>char</type>
			<length>3</length>
			<null>NOT NULL</null>
			<default></default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="default_vendor">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>0</default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
        <column name="tax_reference_no">
            <type>varchar</type>
            <length>100</length>
            <null>NOT NULL</null>
            <default></default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
		<column name="next_invoice_no">
			<type>varchar</type>
			<length>30</length>
			<null>NOT NULL</null>
			<default>0001</default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="invoice_no_locked">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
		<column name="next_order_no">
			<type>varchar</type>
			<length>30</length>
			<null>NOT NULL</null>
			<default>0001</default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="order_no_locked">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
		<column name="next_receipt_no">
			<type>varchar</type>
			<length>30</length>
			<null>NOT NULL</null>
			<default>0001</default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="receipt_no_locked">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
		<column name="next_payment_no">
			<type>varchar</type>
			<length>30</length>
			<null>NOT NULL</null>
			<default>0001</default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="payment_no_locked">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
		<column name="next_credit_no">
			<type>varchar</type>
			<length>30</length>
			<null>NOT NULL</null>
			<default>CR-0001</default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="credit_no_locked">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
        <column name="next_quote_no">
            <type>varchar</type>
            <length>30</length>
            <null>NOT NULL</null>
            <default>QU-0001</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="quote_no_locked">
            <type>tinyint</type>
            <length>4</length>
            <null>NOT NULL</null>
            <default>0</default>
            <description></description>
        </column>
        <column name="next_po_no">
            <type>varchar</type>
            <length>30</length>
            <null>NOT NULL</null>
            <default>PO-0001</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="po_no_locked">
            <type>tinyint</type>
            <length>4</length>
            <null>NOT NULL</null>
            <default>0</default>
            <description></description>
        </column>
        <column name="quote_default_intro">
            <type>text</type>
            <length></length>
            <null>NULL</null>
            <default></default>
            <allow_html>true</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
		<column name="payment_instructions">
		    <type>text</type>
            <length></length>
            <null>NULL</null>
            <default></default>
            <allow_html>true</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
		<column name="invoice_offline_pay_inst">
            <type>text</type>
            <length></length>
            <null>NULL</null>
            <default></default>
            <allow_html>true</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="quote_offline_pay_inst">
            <type>text</type>
            <length></length>
            <null>NULL</null>
            <default></default>
            <allow_html>true</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="small_print">
		    <type>text</type>
            <length></length>
            <null>NULL</null>
            <default></default>
            <allow_html>true</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
		<column name="credit_small_print">
		    <type>text</type>
            <length></length>
            <null>NULL</null>
            <default></default>
            <allow_html>true</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="quote_small_print">
            <type>text</type>
            <length></length>
            <null>NULL</null>
            <default></default>
            <allow_html>true</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="delivery_small_print">
            <type>text</type>
            <length></length>
            <null>NULL</null>
            <default></default>
            <allow_html>true</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="invoice_template_name">
			<type>varchar</type>
			<length>50</length>
			<null>NOT NULL</null>
			<default>invoice_default</default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
        <column name="invoice_email_template_name">
            <type>varchar</type>
            <length>50</length>
            <null>NOT NULL</null>
            <default>invoice_email_default</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="credit_template_name">
            <type>varchar</type>
            <length>50</length>
            <null>NOT NULL</null>
            <default>credit_default</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="credit_email_template_name">
            <type>varchar</type>
            <length>50</length>
            <null>NOT NULL</null>
            <default>credit_email_default</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="quote_template_name">
            <type>varchar</type>
            <length>50</length>
            <null>NOT NULL</null>
            <default>quote_default</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="qrc_email_template_name">
            <type>varchar</type>
            <length>50</length>
            <null>NOT NULL</null>
            <default>quote_request_email_default</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="quote_email_template_name">
            <type>varchar</type>
            <length>50</length>
            <null>NOT NULL</null>
            <default>quote_email_default</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="delivery_template_name">
            <type>varchar</type>
            <length>50</length>
            <null>NOT NULL</null>
            <default>delivery_default</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="po_template_name">
            <type>varchar</type>
            <length>50</length>
            <null>NOT NULL</null>
            <default>po_default</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="po_email_template_name">
            <type>varchar</type>
            <length>50</length>
            <null>NOT NULL</null>
            <default>po_email_default</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="pending_email_template_name">
            <type>varchar</type>
            <length>50</length>
            <null>NOT NULL</null>
            <default>pending_email_default</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
        <column name="order_email_template_name">
            <type>varchar</type>
            <length>50</length>
            <null>NOT NULL</null>
            <default>order_email_default</default>
            <allow_html>false</allow_html>
            <encode_html>false</encode_html>
            <description></description>
        </column>
		<column name="show_remittance">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>1</default>
			<description></description>
		</column>
		<column name="show_paylink">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>1</default>
			<description></description>
		</column>
		<column name="admin_email">
			<type>varchar</type>
			<length>100</length>
			<null>NOT NULL</null>
			<default></default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="paper_size">
			<type>varchar</type>
			<length>30</length>
			<null>NOT NULL</null>
			<default>A4</default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="default_gateway">
			<type>varchar</type>
			<length>50</length>
			<null>NOT NULL</null>
			<default>paypal</default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="auto_create_income">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>1</default>
			<description></description>
		</column>
		<column name="suppress_receipt_nos">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
		<column name="suppress_payment_nos">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
		<column name="suppress_generation_buttons">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
		<column name="use_master_db">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
		<column name="master_host">
			<type>varchar</type>
			<length>255</length>
			<null>NOT NULL</null>
			<default></default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="master_username">
			<type>varchar</type>
			<length>100</length>
			<null>NOT NULL</null>
			<default></default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="master_password">
			<type>varchar</type>
			<length>100</length>
			<null>NOT NULL</null>
			<default></default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="master_dbname">
			<type>varchar</type>
			<length>100</length>
			<null>NOT NULL</null>
			<default></default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="master_table_prefix">
			<type>varchar</type>
			<length>255</length>
			<null>NOT NULL</null>
			<default>jos_</default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="master_vendor_id">
			<type>int</type>
			<length>11</length>
			<signed>UNSIGNED</signed>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
    </columns>
    <primary>
        <columns>
            <column>
                <name>id</name>
            </column>
        </columns>
    </primary>
</table>