PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/jairosvt/public_html/publicidadaf/etc/changes/
Server: Linux server2.noticiasdecolima.com 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Tue Nov 26 02:30:26 EST 2024 x86_64
IP: 107.161.180.42
Choose File :

Url:
Dir : /home/jairosvt/public_html/publicidadaf/etc/changes/schema_tables_core_620.xml

<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="xsl/mdb2_schema.xsl"?>
<database>

 <name>openads</name>
 <create>true</create>
 <overwrite>false</overwrite>
 <version>620</version>
 <status>final</status>

 <table>

  <name>account_preference_assoc</name>

  <declaration>

   <field>
    <name>account_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>preference_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>value</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>account_preference_assoc_pkey</name>
    <primary>true</primary>
    <field>
     <name>account_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>preference_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>account_user_assoc</name>

  <declaration>

   <field>
    <name>account_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>user_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>linked</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>account_user_assoc_pkey</name>
    <primary>true</primary>
    <field>
     <name>account_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>user_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>user_id</name>
    <field>
     <name>user_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>account_user_permission_assoc</name>

  <declaration>

   <field>
    <name>account_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>user_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>permission_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>is_allowed</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>true</notnull>
    <default>1</default>
   </field>

   <index>
    <name>account_user_permission_assoc_pkey</name>
    <primary>true</primary>
    <field>
     <name>account_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>user_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>permission_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>accounts</name>

  <declaration>

   <field>
    <name>account_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>account_type</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>account_name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>accounts_pkey</name>
    <primary>true</primary>
    <field>
     <name>account_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>account_type</name>
    <field>
     <name>account_type</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>acls</name>

  <declaration>

   <field>
    <name>bannerid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>logical</name>
    <type>openads_varchar</type>
    <length>3</length>
    <notnull>true</notnull>
    <default>and</default>
   </field>

   <field>
    <name>type</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>comparison</name>
    <type>openads_char</type>
    <length>2</length>
    <notnull>true</notnull>
    <default>==</default>
   </field>

   <field>
    <name>data</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>executionorder</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <index>
    <name>bannerid</name>
    <field>
     <name>bannerid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>bannerid_executionorder</name>
    <unique>true</unique>
    <field>
     <name>bannerid</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>executionorder</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>acls_channel</name>

  <declaration>

   <field>
    <name>channelid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>logical</name>
    <type>openads_varchar</type>
    <length>3</length>
    <notnull>true</notnull>
    <default>and</default>
   </field>

   <field>
    <name>type</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>comparison</name>
    <type>openads_char</type>
    <length>2</length>
    <notnull>true</notnull>
    <default>==</default>
   </field>

   <field>
    <name>data</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>executionorder</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <index>
    <name>channelid</name>
    <field>
     <name>channelid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>channelid_executionorder</name>
    <unique>true</unique>
    <field>
     <name>channelid</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>executionorder</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>ad_category_assoc</name>

  <declaration>

   <field>
    <name>ad_category_assoc_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>category_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>ad_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>ad_category_assoc_pkey</name>
    <primary>true</primary>
    <field>
     <name>ad_category_assoc_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>ad_zone_assoc</name>

  <declaration>

   <field>
    <name>ad_zone_assoc_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>zone_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>ad_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>priority</name>
    <type>openads_double</type>
    <notnull>false</notnull>
    <default>0</default>
   </field>

   <field>
    <name>link_type</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>true</notnull>
    <default>1</default>
   </field>

   <field>
    <name>priority_factor</name>
    <type>openads_double</type>
    <notnull>false</notnull>
    <default>0</default>
   </field>

   <field>
    <name>to_be_delivered</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>true</notnull>
    <default>1</default>
   </field>

   <index>
    <name>ad_zone_assoc_zone_id</name>
    <field>
     <name>zone_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>ad_id</name>
    <field>
     <name>ad_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>ad_zone_assoc_pkey</name>
    <primary>true</primary>
    <field>
     <name>ad_zone_assoc_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>affiliates</name>

  <declaration>

   <field>
    <name>affiliateid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>agencyid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>mnemonic</name>
    <type>openads_varchar</type>
    <length>5</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>comments</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>contact</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>email</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>website</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>oac_country_code</name>
    <type>openads_char</type>
    <length>2</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>oac_language_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>oac_category_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>account_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>affiliates_agencyid</name>
    <field>
     <name>agencyid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>affiliates_pkey</name>
    <primary>true</primary>
    <field>
     <name>affiliateid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>account_id</name>
    <unique>true</unique>
    <field>
     <name>account_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>affiliates_extra</name>

  <declaration>

   <field>
    <name>affiliateid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>address</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>city</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>postcode</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>country</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>phone</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>fax</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>account_contact</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>payee_name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tax_id</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>mode_of_payment</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>currency</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>unique_users</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>unique_views</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>page_rank</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>category</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>help_file</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>affiliates_extra_pkey</name>
    <primary>true</primary>
    <field>
     <name>affiliateid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>agency</name>

  <declaration>

   <field>
    <name>agencyid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>contact</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>email</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>logout_url</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>active</name>
    <type>openads_smallint</type>
    <length>1</length>
    <notnull>false</notnull>
    <default>0</default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>account_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>agency_pkey</name>
    <primary>true</primary>
    <field>
     <name>agencyid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>account_id</name>
    <unique>true</unique>
    <field>
     <name>account_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>application_variable</name>

  <declaration>

   <field>
    <name>name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>value</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>application_variable_pkey</name>
    <primary>true</primary>
    <field>
     <name>name</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>audit</name>

  <declaration>

   <field>
    <name>auditid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>actionid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>context</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>contextid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>parentid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>details</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>userid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>username</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>usertype</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>account_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>advertiser_account_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>website_account_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>audit_pkey</name>
    <primary>true</primary>
    <field>
     <name>auditid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>audit_parentid_contextid</name>
    <field>
     <name>parentid</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>contextid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>audit_updated</name>
    <field>
     <name>updated</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>audit_usertype</name>
    <field>
     <name>usertype</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>audit_username</name>
    <field>
     <name>username</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>audit_context_actionid</name>
    <field>
     <name>context</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>actionid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>account_id</name>
    <field>
     <name>account_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>advertiser_account_id</name>
    <field>
     <name>advertiser_account_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>website_account_id</name>
    <field>
     <name>website_account_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>banners</name>

  <declaration>

   <field>
    <name>bannerid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>campaignid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>contenttype</name>
    <type>openads_enum</type>
    <length>'gif','jpeg','png','html','swf','dcr','rpm','mov','txt'</length>
    <notnull>true</notnull>
    <default>gif</default>
   </field>

   <field>
    <name>pluginversion</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>storagetype</name>
    <type>openads_enum</type>
    <length>'sql','web','url','html','network','txt'</length>
    <notnull>true</notnull>
    <default>sql</default>
   </field>

   <field>
    <name>filename</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>imageurl</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>htmltemplate</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>htmlcache</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>width</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>height</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>weight</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>1</default>
   </field>

   <field>
    <name>seq</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>target</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>url</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>alt</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>statustext</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>bannertext</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>description</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>adserver</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>block</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>capping</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>session_capping</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>compiledlimitation</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>acl_plugins</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>append</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>bannertype</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>alt_filename</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>alt_imageurl</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>alt_contenttype</name>
    <type>openads_enum</type>
    <length>'gif','jpeg','png'</length>
    <notnull>true</notnull>
    <default>gif</default>
   </field>

   <field>
    <name>comments</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>acls_updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default>0000-00-00 00:00:00</default>
   </field>

   <field>
    <name>keyword</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>transparent</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>parameters</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>status</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>ext_bannertype</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>prepend</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>iframe_friendly</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>true</notnull>
    <default>1</default>
   </field>

   <index>
    <name>banners_campaignid</name>
    <field>
     <name>campaignid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>banners_pkey</name>
    <primary>true</primary>
    <field>
     <name>bannerid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>campaigns</name>

  <declaration>

   <field>
    <name>campaignid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>campaignname</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>clientid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>views</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>false</notnull>
    <default>-1</default>
   </field>

   <field>
    <name>clicks</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>false</notnull>
    <default>-1</default>
   </field>

   <field>
    <name>conversions</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>false</notnull>
    <default>-1</default>
   </field>

   <field>
    <name>priority</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>weight</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>1</default>
   </field>

   <field>
    <name>target_impression</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>target_click</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>target_conversion</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>anonymous</name>
    <type>openads_enum</type>
    <length>'t','f'</length>
    <notnull>true</notnull>
    <default>f</default>
   </field>

   <field>
    <name>companion</name>
    <type>openads_smallint</type>
    <length>1</length>
    <notnull>false</notnull>
    <default>0</default>
   </field>

   <field>
    <name>comments</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>revenue</name>
    <type>openads_decimal</type>
    <length>10,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>revenue_type</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>block</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>capping</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>session_capping</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>status</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>hosted_views</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>hosted_clicks</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>viewwindow</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>clickwindow</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>ecpm</name>
    <type>openads_decimal</type>
    <length>10,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>min_impressions</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>ecpm_enabled</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>activate_time</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>expire_time</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>type</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>show_capped_no_cookie</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <index>
    <name>campaigns_clientid</name>
    <field>
     <name>clientid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>campaigns_pkey</name>
    <primary>true</primary>
    <field>
     <name>campaignid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>campaigns_trackers</name>

  <declaration>

   <field>
    <name>campaign_trackerid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>campaignid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>trackerid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>status</name>
    <type>openads_smallint</type>
    <unsigned>true</unsigned>
    <length>1</length>
    <notnull>true</notnull>
    <default>4</default>
   </field>

   <index>
    <name>campaigns_trackers_campaignid</name>
    <field>
     <name>campaignid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>campaigns_trackers_trackerid</name>
    <field>
     <name>trackerid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>campaigns_trackers_pkey</name>
    <primary>true</primary>
    <field>
     <name>campaign_trackerid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>category</name>

  <declaration>

   <field>
    <name>category_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>category_pkey</name>
    <primary>true</primary>
    <field>
     <name>category_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>channel</name>

  <declaration>

   <field>
    <name>channelid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>agencyid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>affiliateid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>description</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>compiledlimitation</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>acl_plugins</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>active</name>
    <type>openads_smallint</type>
    <length>1</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>comments</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>acls_updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default>0000-00-00 00:00:00</default>
   </field>

   <index>
    <name>channel_pkey</name>
    <primary>true</primary>
    <field>
     <name>channelid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>clients</name>

  <declaration>

   <field>
    <name>clientid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>agencyid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>clientname</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>contact</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>email</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>report</name>
    <type>openads_enum</type>
    <length>'t','f'</length>
    <notnull>true</notnull>
    <default>t</default>
   </field>

   <field>
    <name>reportinterval</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>7</default>
   </field>

   <field>
    <name>reportlastdate</name>
    <type>openads_date</type>
    <notnull>true</notnull>
    <default>0000-00-00</default>
   </field>

   <field>
    <name>reportdeactivate</name>
    <type>openads_enum</type>
    <length>'t','f'</length>
    <notnull>true</notnull>
    <default>t</default>
   </field>

   <field>
    <name>comments</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>account_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>advertiser_limitation</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>type</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <index>
    <name>clients_pkey</name>
    <primary>true</primary>
    <field>
     <name>clientid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>account_id</name>
    <unique>true</unique>
    <field>
     <name>account_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>clients_agencyid_type</name>
    <field>
     <name>agencyid</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>type</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_intermediate_ad</name>

  <declaration>

   <field>
    <name>data_intermediate_ad_id</name>
    <type>openads_bigint</type>
    <length>20</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>date_time</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>operation_interval</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>operation_interval_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>interval_start</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>interval_end</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>ad_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>creative_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>zone_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>requests</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>impressions</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>clicks</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>conversions</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>total_basket_value</name>
    <type>openads_decimal</type>
    <length>10,4</length>
    <notnull>true</notnull>
    <default>0.0000</default>
   </field>

   <field>
    <name>total_num_items</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>data_intermediate_ad_pkey</name>
    <primary>true</primary>
    <field>
     <name>data_intermediate_ad_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>ad_id_date_time</name>
    <field>
     <name>ad_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>date_time</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>zone_id_date_time</name>
    <field>
     <name>zone_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>date_time</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>date_time</name>
    <field>
     <name>date_time</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>interval_start</name>
    <field>
     <name>interval_start</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_intermediate_ad_connection</name>

  <declaration>

   <field>
    <name>data_intermediate_ad_connection_id</name>
    <type>openads_bigint</type>
    <length>20</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>server_raw_ip</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>server_raw_tracker_impression_id</name>
    <type>openads_bigint</type>
    <length>20</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>viewer_id</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>viewer_session_id</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_date_time</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_date_time</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>ad_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>creative_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>zone_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_channel</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_channel</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_channel_ids</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_channel_ids</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_language</name>
    <type>openads_varchar</type>
    <length>13</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_language</name>
    <type>openads_varchar</type>
    <length>13</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_ip_address</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_ip_address</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_host_name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_host_name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_country</name>
    <type>openads_char</type>
    <length>2</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_country</name>
    <type>openads_char</type>
    <length>2</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_https</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_https</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_domain</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_domain</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_page</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_page</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_query</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_query</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_referer</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_referer</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_search_term</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_search_term</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_user_agent</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_user_agent</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_os</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_os</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_browser</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_browser</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_action</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_window</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>connection_status</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>4</default>
   </field>

   <field>
    <name>inside_window</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>comments</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>data_intermediate_ad_connection_tracker_date_time</name>
    <field>
     <name>tracker_date_time</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_intermediate_ad_connection_tracker_id</name>
    <field>
     <name>tracker_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_intermediate_ad_connection_ad_id</name>
    <field>
     <name>ad_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_intermediate_ad_connection_zone_id</name>
    <field>
     <name>zone_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_intermediate_ad_connection_viewer_id</name>
    <field>
     <name>viewer_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_intermediate_ad_connection_pkey</name>
    <primary>true</primary>
    <field>
     <name>data_intermediate_ad_connection_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_intermediate_ad_variable_value</name>

  <declaration>

   <field>
    <name>data_intermediate_ad_variable_value_id</name>
    <type>openads_bigint</type>
    <length>20</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>data_intermediate_ad_connection_id</name>
    <type>openads_bigint</type>
    <length>20</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_variable_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>value</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>data_intermediate_ad_connection_id</name>
    <field>
     <name>data_intermediate_ad_connection_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_intermediate_ad_variable_value_tracker_variable_id</name>
    <field>
     <name>tracker_variable_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_intermediate_ad_variable_value_tracker_value</name>
    <field>
     <name>value</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_intermediate_ad_variable_value_pkey</name>
    <primary>true</primary>
    <field>
     <name>data_intermediate_ad_variable_value_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_raw_ad_click</name>

  <declaration>

   <field>
    <name>viewer_id</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>viewer_session_id</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>date_time</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>ad_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>creative_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>zone_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>channel</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>channel_ids</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>language</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>ip_address</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>host_name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>country</name>
    <type>openads_char</type>
    <length>2</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>https</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>domain</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>page</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>query</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>referer</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>search_term</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>user_agent</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>os</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>browser</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>max_https</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_region</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_city</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_postal_code</name>
    <type>openads_varchar</type>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_latitude</name>
    <type>openads_decimal</type>
    <length>8,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_longitude</name>
    <type>openads_decimal</type>
    <length>8,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_dma_code</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_area_code</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_organisation</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_netspeed</name>
    <type>openads_varchar</type>
    <length>20</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_continent</name>
    <type>openads_varchar</type>
    <length>13</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>data_raw_ad_click_viewer_id</name>
    <field>
     <name>viewer_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_raw_ad_click_date_time</name>
    <field>
     <name>date_time</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_raw_ad_click_ad_id</name>
    <field>
     <name>ad_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_raw_ad_click_zone_id</name>
    <field>
     <name>zone_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_raw_ad_impression</name>

  <declaration>

   <field>
    <name>viewer_id</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>viewer_session_id</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>date_time</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>ad_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>creative_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>zone_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>channel</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>channel_ids</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>language</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>ip_address</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>host_name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>country</name>
    <type>openads_char</type>
    <length>2</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>https</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>domain</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>page</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>query</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>referer</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>search_term</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>user_agent</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>os</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>browser</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>max_https</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_region</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_city</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_postal_code</name>
    <type>openads_varchar</type>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_latitude</name>
    <type>openads_decimal</type>
    <length>8,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_longitude</name>
    <type>openads_decimal</type>
    <length>8,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_dma_code</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_area_code</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_organisation</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_netspeed</name>
    <type>openads_varchar</type>
    <length>20</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_continent</name>
    <type>openads_varchar</type>
    <length>13</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>data_raw_ad_impression_viewer_id</name>
    <field>
     <name>viewer_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_raw_ad_impression_date_time</name>
    <field>
     <name>date_time</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_raw_ad_impression_ad_id</name>
    <field>
     <name>ad_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_raw_ad_impression_zone_id</name>
    <field>
     <name>zone_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_raw_ad_request</name>

  <declaration>

   <field>
    <name>viewer_id</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>viewer_session_id</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>date_time</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>ad_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>creative_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>zone_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>channel</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>channel_ids</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>language</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>ip_address</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>host_name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>https</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>domain</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>page</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>query</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>referer</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>search_term</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>user_agent</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>os</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>browser</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>max_https</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>data_raw_ad_request_viewer_id</name>
    <field>
     <name>viewer_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_raw_ad_request_date_time</name>
    <field>
     <name>date_time</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_raw_ad_request_ad_id</name>
    <field>
     <name>ad_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_raw_ad_request_zone_id</name>
    <field>
     <name>zone_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_raw_tracker_impression</name>

  <declaration>

   <field>
    <name>server_raw_tracker_impression_id</name>
    <type>openads_bigint</type>
    <length>20</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>server_raw_ip</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>viewer_id</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>viewer_session_id</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>date_time</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>channel</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>channel_ids</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>language</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>ip_address</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>host_name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>country</name>
    <type>openads_char</type>
    <length>2</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>https</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>domain</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>page</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>query</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>referer</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>search_term</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>user_agent</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>os</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>browser</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>max_https</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_region</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_city</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_postal_code</name>
    <type>openads_varchar</type>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_latitude</name>
    <type>openads_decimal</type>
    <length>8,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_longitude</name>
    <type>openads_decimal</type>
    <length>8,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_dma_code</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_area_code</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_organisation</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_netspeed</name>
    <type>openads_varchar</type>
    <length>20</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>geo_continent</name>
    <type>openads_varchar</type>
    <length>13</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>data_raw_tracker_impression_viewer_id</name>
    <field>
     <name>viewer_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_raw_tracker_impression_date_time</name>
    <field>
     <name>date_time</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_raw_tracker_impression_pkey</name>
    <primary>true</primary>
    <field>
     <name>server_raw_tracker_impression_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>server_raw_ip</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_raw_tracker_variable_value</name>

  <declaration>

   <field>
    <name>server_raw_tracker_impression_id</name>
    <type>openads_bigint</type>
    <length>20</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>server_raw_ip</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_variable_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>date_time</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>value</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>data_raw_tracker_variable_value_pkey</name>
    <primary>true</primary>
    <field>
     <name>server_raw_tracker_impression_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>server_raw_ip</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>tracker_variable_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_summary_ad_hourly</name>

  <declaration>

   <field>
    <name>data_summary_ad_hourly_id</name>
    <type>openads_bigint</type>
    <length>20</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>date_time</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>ad_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>creative_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>zone_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>requests</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>impressions</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>clicks</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>conversions</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>total_basket_value</name>
    <type>openads_decimal</type>
    <length>10,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>total_num_items</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>total_revenue</name>
    <type>openads_decimal</type>
    <length>10,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>total_cost</name>
    <type>openads_decimal</type>
    <length>10,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>total_techcost</name>
    <type>openads_decimal</type>
    <length>10,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>data_summary_ad_hourly_pkey</name>
    <primary>true</primary>
    <field>
     <name>data_summary_ad_hourly_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>date_time</name>
    <field>
     <name>date_time</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>ad_id_date_time</name>
    <field>
     <name>ad_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>date_time</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>zone_id_date_time</name>
    <field>
     <name>zone_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>date_time</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_summary_ad_zone_assoc</name>

  <declaration>

   <field>
    <name>data_summary_ad_zone_assoc_id</name>
    <type>openads_bigint</type>
    <length>20</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>operation_interval</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>operation_interval_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>interval_start</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>interval_end</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>ad_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>zone_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>required_impressions</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>requested_impressions</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>priority</name>
    <type>openads_double</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>priority_factor</name>
    <type>openads_double</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>priority_factor_limited</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>past_zone_traffic_fraction</name>
    <type>openads_double</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>created</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>created_by</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>expired</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>expired_by</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>to_be_delivered</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>true</notnull>
    <default>1</default>
   </field>

   <index>
    <name>data_summary_ad_zone_assoc_interval_start</name>
    <field>
     <name>interval_start</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_summary_ad_zone_assoc_interval_end</name>
    <field>
     <name>interval_end</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_summary_ad_zone_assoc_ad_id</name>
    <field>
     <name>ad_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_summary_ad_zone_assoc_zone_id</name>
    <field>
     <name>zone_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>expired</name>
    <field>
     <name>expired</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_summary_ad_zone_assoc_pkey</name>
    <primary>true</primary>
    <field>
     <name>data_summary_ad_zone_assoc_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_summary_channel_daily</name>

  <declaration>

   <field>
    <name>data_summary_channel_daily_id</name>
    <type>openads_bigint</type>
    <length>20</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>day</name>
    <type>openads_date</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>channel_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>zone_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>forecast_impressions</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>actual_impressions</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <index>
    <name>data_summary_channel_daily_day</name>
    <field>
     <name>day</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_summary_channel_daily_channel_id</name>
    <field>
     <name>channel_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_summary_channel_daily_zone_id</name>
    <field>
     <name>zone_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_summary_channel_daily_pkey</name>
    <primary>true</primary>
    <field>
     <name>data_summary_channel_daily_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>data_summary_zone_impression_history</name>

  <declaration>

   <field>
    <name>data_summary_zone_impression_history_id</name>
    <type>openads_bigint</type>
    <length>20</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>operation_interval</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>operation_interval_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>interval_start</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>interval_end</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>zone_id</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>forecast_impressions</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>actual_impressions</name>
    <type>openads_int</type>
    <unsigned>true</unsigned>
    <length>10</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>est</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>data_summary_zone_impression_history_operation_interval_id</name>
    <field>
     <name>operation_interval_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_summary_zone_impression_history_zone_id</name>
    <field>
     <name>zone_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>data_summary_zone_impression_history_pkey</name>
    <primary>true</primary>
    <field>
     <name>data_summary_zone_impression_history_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>images</name>

  <declaration>

   <field>
    <name>filename</name>
    <type>openads_varchar</type>
    <length>128</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>contents</name>
    <type>blob</type>
    <notnull>true</notnull>
   </field>

   <field>
    <name>t_stamp</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>images_pkey</name>
    <primary>true</primary>
    <field>
     <name>filename</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>log_maintenance_forecasting</name>

  <declaration>

   <field>
    <name>log_maintenance_forecasting_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>start_run</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>end_run</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>operation_interval</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>duration</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>updated_to</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>log_maintenance_forecasting_pkey</name>
    <primary>true</primary>
    <field>
     <name>log_maintenance_forecasting_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>log_maintenance_priority</name>

  <declaration>

   <field>
    <name>log_maintenance_priority_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>start_run</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>end_run</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>operation_interval</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>duration</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>run_type</name>
    <type>openads_tinyint</type>
    <unsigned>true</unsigned>
    <length>3</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>updated_to</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>log_maintenance_priority_pkey</name>
    <primary>true</primary>
    <field>
     <name>log_maintenance_priority_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>log_maintenance_statistics</name>

  <declaration>

   <field>
    <name>log_maintenance_statistics_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>start_run</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>end_run</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>duration</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>adserver_run_type</name>
    <type>openads_int</type>
    <length>2</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>search_run_type</name>
    <type>openads_int</type>
    <length>2</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>tracker_run_type</name>
    <type>openads_int</type>
    <length>2</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>updated_to</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>log_maintenance_statistics_pkey</name>
    <primary>true</primary>
    <field>
     <name>log_maintenance_statistics_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>password_recovery</name>

  <declaration>

   <field>
    <name>user_type</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>user_id</name>
    <type>openads_int</type>
    <length>10</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>recovery_id</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>password_recovery_pkey</name>
    <primary>true</primary>
    <field>
     <name>user_type</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>user_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>recovery_id</name>
    <unique>true</unique>
    <field>
     <name>recovery_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>placement_zone_assoc</name>

  <declaration>

   <field>
    <name>placement_zone_assoc_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>zone_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>placement_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>placement_zone_assoc_zone_id</name>
    <field>
     <name>zone_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>placement_id</name>
    <field>
     <name>placement_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>placement_zone_assoc_pkey</name>
    <primary>true</primary>
    <field>
     <name>placement_zone_assoc_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>preferences</name>

  <declaration>

   <field>
    <name>preference_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>preference_name</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>account_type</name>
    <type>openads_varchar</type>
    <length>16</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>preferences_pkey</name>
    <primary>true</primary>
    <field>
     <name>preference_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>preference_name</name>
    <unique>true</unique>
    <field>
     <name>preference_name</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>account_type</name>
    <field>
     <name>account_type</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>session</name>

  <declaration>

   <field>
    <name>sessionid</name>
    <type>openads_varchar</type>
    <length>32</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>sessiondata</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>lastused</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>session_pkey</name>
    <primary>true</primary>
    <field>
     <name>sessionid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>targetstats</name>

  <declaration>

   <field>
    <name>day</name>
    <type>openads_date</type>
    <notnull>true</notnull>
    <default>0000-00-00</default>
   </field>

   <field>
    <name>campaignid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>target</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>views</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>modified</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

  </declaration>

 </table>

 <table>

  <name>tracker_append</name>

  <declaration>

   <field>
    <name>tracker_append_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>tracker_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>rank</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>tagcode</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>paused</name>
    <type>openads_enum</type>
    <length>'t','f'</length>
    <notnull>true</notnull>
    <default>f</default>
   </field>

   <field>
    <name>autotrack</name>
    <type>openads_enum</type>
    <length>'t','f'</length>
    <notnull>true</notnull>
    <default>f</default>
   </field>

   <index>
    <name>tracker_id</name>
    <field>
     <name>tracker_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>rank</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>tracker_append_pkey</name>
    <primary>true</primary>
    <field>
     <name>tracker_append_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>trackers</name>

  <declaration>

   <field>
    <name>trackerid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>trackername</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>description</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>clientid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>viewwindow</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>clickwindow</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>blockwindow</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>status</name>
    <type>openads_smallint</type>
    <unsigned>true</unsigned>
    <length>1</length>
    <notnull>true</notnull>
    <default>4</default>
   </field>

   <field>
    <name>type</name>
    <type>openads_smallint</type>
    <unsigned>true</unsigned>
    <length>1</length>
    <notnull>true</notnull>
    <default>1</default>
   </field>

   <field>
    <name>linkcampaigns</name>
    <type>openads_enum</type>
    <length>'t','f'</length>
    <notnull>true</notnull>
    <default>f</default>
   </field>

   <field>
    <name>variablemethod</name>
    <type>openads_enum</type>
    <length>'default','js','dom','custom'</length>
    <notnull>true</notnull>
    <default>default</default>
   </field>

   <field>
    <name>appendcode</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>trackers_clientid</name>
    <field>
     <name>clientid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>trackers_pkey</name>
    <primary>true</primary>
    <field>
     <name>trackerid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>userlog</name>

  <declaration>

   <field>
    <name>userlogid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>timestamp</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>usertype</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>userid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>action</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>object</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>details</name>
    <type>openads_mediumtext</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>userlog_pkey</name>
    <primary>true</primary>
    <field>
     <name>userlogid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>users</name>

  <declaration>

   <field>
    <name>user_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>contact_name</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>email_address</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>username</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>password</name>
    <type>openads_varchar</type>
    <length>64</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>language</name>
    <type>openads_varchar</type>
    <length>5</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>default_account_id</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>comments</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>active</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>true</notnull>
    <default>1</default>
   </field>

   <field>
    <name>sso_user_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>date_created</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>date_last_login</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>email_updated</name>
    <type>openads_datetime</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <index>
    <name>users_pkey</name>
    <primary>true</primary>
    <field>
     <name>user_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>username</name>
    <unique>true</unique>
    <field>
     <name>username</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>sso_user_id</name>
    <unique>true</unique>
    <field>
     <name>sso_user_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>variable_publisher</name>

  <declaration>

   <field>
    <name>variable_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>publisher_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>visible</name>
    <type>openads_tinyint</type>
    <length>1</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>variable_publisher_pkey</name>
    <primary>true</primary>
    <field>
     <name>variable_id</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>publisher_id</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>variables</name>

  <declaration>

   <field>
    <name>variableid</name>
    <type>openads_mediumint</type>
    <unsigned>true</unsigned>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>trackerid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>name</name>
    <type>openads_varchar</type>
    <length>250</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>description</name>
    <type>openads_varchar</type>
    <length>250</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>datatype</name>
    <type>openads_enum</type>
    <length>'numeric','string','date'</length>
    <notnull>true</notnull>
    <default>numeric</default>
   </field>

   <field>
    <name>purpose</name>
    <type>openads_enum</type>
    <length>'basket_value','num_items','post_code'</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>reject_if_empty</name>
    <type>openads_smallint</type>
    <unsigned>true</unsigned>
    <length>1</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>is_unique</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>unique_window</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>variablecode</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>hidden</name>
    <type>openads_enum</type>
    <length>'t','f'</length>
    <notnull>true</notnull>
    <default>f</default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <index>
    <name>variables_is_unique</name>
    <field>
     <name>is_unique</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>variables_trackerid</name>
    <field>
     <name>trackerid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>variables_pkey</name>
    <primary>true</primary>
    <field>
     <name>variableid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

 <table>

  <name>zones</name>

  <declaration>

   <field>
    <name>zoneid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>true</notnull>
    <default>0</default>
    <autoincrement>1</autoincrement>
   </field>

   <field>
    <name>affiliateid</name>
    <type>openads_mediumint</type>
    <length>9</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>zonename</name>
    <type>openads_varchar</type>
    <length>245</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>description</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>delivery</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>zonetype</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>category</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>width</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>height</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>ad_selection</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>chain</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>prepend</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>append</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>appendtype</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>forceappend</name>
    <type>openads_enum</type>
    <length>'t','f'</length>
    <notnull>false</notnull>
    <default>f</default>
   </field>

   <field>
    <name>inventory_forecast_type</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>comments</name>
    <type>openads_text</type>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>cost</name>
    <type>openads_decimal</type>
    <length>10,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>cost_type</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>cost_variable_id</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>technology_cost</name>
    <type>openads_decimal</type>
    <length>10,4</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>technology_cost_type</name>
    <type>openads_smallint</type>
    <length>6</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>updated</name>
    <type>openads_datetime</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>block</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>capping</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>session_capping</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <field>
    <name>what</name>
    <type>openads_text</type>
    <notnull>true</notnull>
    <default></default>
   </field>

   <field>
    <name>rate</name>
    <type>openads_decimal</type>
    <length>19,2</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>pricing</name>
    <type>openads_varchar</type>
    <length>50</length>
    <notnull>true</notnull>
    <default>CPM</default>
   </field>

   <field>
    <name>oac_category_id</name>
    <type>openads_int</type>
    <length>11</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>ext_adselection</name>
    <type>openads_varchar</type>
    <length>255</length>
    <notnull>false</notnull>
    <default></default>
   </field>

   <field>
    <name>show_capped_no_cookie</name>
    <type>openads_tinyint</type>
    <length>4</length>
    <notnull>true</notnull>
    <default>0</default>
   </field>

   <index>
    <name>zonenameid</name>
    <field>
     <name>zonename</name>
     <sorting>ascending</sorting>
    </field>
    <field>
     <name>zoneid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>affiliateid</name>
    <field>
     <name>affiliateid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

   <index>
    <name>zones_pkey</name>
    <primary>true</primary>
    <field>
     <name>zoneid</name>
     <sorting>ascending</sorting>
    </field>
   </index>

  </declaration>

 </table>

</database>