<?xml version="1.0" encoding="utf-8"?>
<table>
	<name>gateway_tx</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="pending_order_id">
			<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="document_ids">
			<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="net_amount">
			<type>decimal</type>
            <length>20,6</length>
			<null>NOT NULL</null>
			<default>0.00</default>
			<description></description>
		</column>
		<column name="tax_amount">
			<type>decimal</type>
            <length>20,6</length>
			<null>NOT NULL</null>
			<default>0.00</default>
			<description></description>
		</column>
		<column name="shipping_amount">
			<type>decimal</type>
            <length>20,6</length>
			<null>NOT NULL</null>
			<default>0.00</default>
			<description></description>
		</column>
		<column name="shipping_tax_amount">
			<type>decimal</type>
            <length>20,6</length>
			<null>NOT NULL</null>
			<default>0.00</default>
			<description></description>
		</column>
		<column name="entity_id">
            <type>int</type>
            <length>11</length>
            <signed>UNSIGNED</signed>
            <null>NOT NULL</null>
            <default>0</default>
            <description></description>
        </column>
        <column name="user_id">
            <type>int</type>
            <length>11</length>
            <signed>UNSIGNED</signed>
            <null>NOT NULL</null>
            <default>0</default>
            <description></description>
        </column>
        <column name="user_ip">
			<type>varchar</type>
			<length>20</length>
			<null>NOT NULL</null>
			<default></default>
			<allow_html>false</allow_html>
			<encode_html>false</encode_html>
			<description></description>
		</column>
		<column name="vendor_id">
			<type>int</type>
			<length>11</length>
			<signed>UNSIGNED</signed>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
		<column name="form_id">
			<type>int</type>
			<length>11</length>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
		<column name="other_params">
		    <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="turn_on_auto_renew">
			<type>tinyint</type>
			<length>4</length>
			<null>NOT NULL</null>
			<default>0</default>
			<description></description>
		</column>
        <column name="callback_file">
            <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="callback_function">
            <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="success_confirmed">
            <type>tinyint</type>
            <length>4</length>
            <null>NOT NULL</null>
            <default>0</default>
            <description></description>
        </column>
        <column name="last_updated">
            <type>int</type>
            <length>11</length>
            <signed>UNSIGNED</signed>
            <null>NOT NULL</null>
            <default>0</default>
            <description></description>
        </column>
        <column name="document_voucher_code">
            <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="payment_pending_until">
            <type>int</type>
            <length>11</length>
            <signed>UNSIGNED</signed>
            <null>NOT NULL</null>
            <default>0</default>
            <description></description>
        </column>
        <column name="psp_reference">
            <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>
    </columns>
    <primary>
        <columns>
            <column>
                <name>id</name>
            </column>
        </columns>
    </primary>
		<index>
			<type>multiple</type>
			<columns>
				<column>
					<name>pending_order_id</name>
				</column>
			</columns>
			<description></description>
		</index>
</table>