<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
    <!-- define the module name -->
    <module>campaign</module>
    <!-- define the module table name -->
    <table>campaign</table>
    <!-- define the module dependancy(s) -->
    <dependancy/>
    <!-- define the DB cache in seconds -->
    <cache>0</cache>
    <!-- define the default order_by field for SQL queries -->
    <order_by>name</order_by>
    <!-- define the methods -->
    <limit>25</limit>
    <!-- define the fields -->
    <field>
        <id>
            <type>I4</type>
            <unique>1</unique>
            <index>1</index>
        </id>
        <site_id>
            <type>I4</type>
            <index>1</index>
        </site_id>
        <date_orig>
            <type>I8</type>
            <convert>date-now</convert>
        </date_orig>
        <date_last>
            <type>I8</type>
            <convert>date-now</convert>
        </date_last>
        <date_start>
            <type>C(16)</type>
            <convert>date</convert>
        </date_start>
        <date_expire>
            <type>C(16)</type>
            <convert>date</convert>
        </date_expire>
        <status>
            <type>L</type>
            <pdf_width>30</pdf_width>
        </status>
        <name>
            <type>C(128)</type>
            <min_len>1</min_len>
            <max_len>128</max_len>
            <validate>any</validate>
            <unique>1</unique>
            <pdf_width>30</pdf_width>
        </name>
        <description>
            <type>X2</type>
        </description>
        <budget>
            <type>F</type>
            <pdf_width>30</pdf_width>
        </budget>
        <target_conversion>
            <type>F</type>
            <pdf_width>30</pdf_width>
        </target_conversion>
        <file1>
            <type>C(128)</type>
            <min_len>1</min_len>
            <max_len>128</max_len>
            <validate>any</validate>
        </file1>
        <type1>
            <type>C(128)</type>
        </type1>
        <served1>
            <type>I4</type>
        </served1>
        <clicked1>
            <type>I4</type>
        </clicked1>
        <file2>
            <type>C(128)</type>
        </file2>
        <type2>
            <type>C(128)</type>
        </type2>
        <served2>
            <type>I4</type>
        </served2>
        <clicked2>
            <type>I4</type>
        </clicked2>
        <file3>
            <type>C(128)</type>
        </file3>
        <type3>
            <type>C(128)</type>
        </type3>
        <served3>
            <type>I4</type>
        </served3>
        <clicked3>
            <type>I4</type>
        </clicked3>
        <file4>
            <type>C(128)</type>
        </file4>
        <type4>
            <type>C(128)</type>
        </type4>
        <served4>
            <type>I4</type>
        </served4>
        <clicked4>
            <type>I4</type>
        </clicked4>
        <file5>
            <type>C(128)</type>
        </file5>
        <type5>
            <type>C(128)</type>
        </type5>
        <served5>
            <type>I4</type>
        </served5>
        <clicked5>
            <type>I4</type>
        </clicked5>
        <file6>
            <type>C(128)</type>
        </file6>
        <type6>
            <type>C(128)</type>
        </type6>
        <served6>
            <type>I4</type>
        </served6>
        <clicked6>
            <type>I4</type>
        </clicked6>
        <file7>
            <type>C(128)</type>
        </file7>
        <type7>
            <type>C(128)</type>
        </type7>
        <served7>
            <type>I4</type>
        </served7>
        <clicked7>
            <type>I4</type>
        </clicked7>
        <file8>
            <type>C(128)</type>
        </file8>
        <type8>
            <type>C(128)</type>
        </type8>
        <served8>
            <type>I4</type>
        </served8>
        <clicked8>
            <type>I4</type>
        </clicked8>
        <file9>
            <type>C(128)</type>
        </file9>
        <type9>
            <type>C(128)</type>
        </type9>
        <served9>
            <type>I4</type>
        </served9>
        <clicked9>
            <type>I4</type>
        </clicked9>
        <file10>
            <type>C(128)</type>
        </file10>
        <type10>
            <type>C(128)</type>
        </type10>
        <served10>
            <type>I4</type>
        </served10>
        <clicked10>
            <type>I4</type>
        </clicked10>
        <file11>
            <type>C(128)</type>
        </file11>
        <type11>
            <type>C(128)</type>
        </type11>
        <served11>
            <type>I4</type>
        </served11>
        <clicked11>
            <type>I4</type>
        </clicked11>
        <file12>
            <type>C(128)</type>
        </file12>
        <type12>
            <type>C(128)</type>
        </type12>
        <served12>
            <type>I4</type>
        </served12>
        <clicked12>
            <type>I4</type>
        </clicked12>
        <last_served>
            <type>I4</type>
        </last_served>
        <url>
            <type>C(128)</type>
        </url>
    </field>
    <!-- define all the methods for this class, and the fields they have access to, if applicable. -->
    <method>
        <add>id,site_id,date_orig,date_last,date_start,date_expire,status,name,description,budget,target_conversion,file1,type1,served1,clicked1,file2,type2,served2,clicked2,file3,type3,served3,clicked3,file4,type4,served4,clicked4,file5,type5,served5,clicked5,file6,type6,served6,clicked6,file7,type7,served7,clicked7,file8,type8,served8,clicked8,file9,type9,served9,clicked9,file10,type10,served10,clicked10,file11,type11,served11,clicked11,file12,type12,served12,clicked12,url</add>
        <update>id,site_id,date_orig,date_last,date_start,date_expire,status,name,description,budget,target_conversion,file1,type1,served1,clicked1,file2,type2,served2,clicked2,file3,type3,served3,clicked3,file4,type4,served4,clicked4,file5,type5,served5,clicked5,file6,type6,served6,clicked6,file7,type7,served7,clicked7,file8,type8,served8,clicked8,file9,type9,served9,clicked9,file10,type10,served10,clicked10,file11,type11,served11,clicked11,file12,type12,served12,clicked12,url</update>
        <delete>id,site_id,date_orig,date_last,date_start,date_expire,status,name,description,budget,target_conversion,file1,type1,served1,clicked1,file2,type2,served2,clicked2,file3,type3,served3,clicked3,file4,type4,served4,clicked4,file5,type5,served5,clicked5,file6,type6,served6,clicked6,file7,type7,served7,clicked7,file8,type8,served8,clicked8,file9,type9,served9,clicked9,file10,type10,served10,clicked10,file11,type11,served11,clicked11,file12,type12,served12,clicked12,url</delete>
        <view>id,site_id,date_orig,date_last,date_start,date_expire,status,name,description,budget,target_conversion,file1,type1,served1,clicked1,file2,type2,served2,clicked2,file3,type3,served3,clicked3,file4,type4,served4,clicked4,file5,type5,served5,clicked5,file6,type6,served6,clicked6,file7,type7,served7,clicked7,file8,type8,served8,clicked8,file9,type9,served9,clicked9,file10,type10,served10,clicked10,file11,type11,served11,clicked11,file12,type12,served12,clicked12,url</view>
        <search>id,site_id,date_orig,date_last,date_start,date_expire,status,name,description,budget,target_conversion,file1,type1,served1,clicked1,file2,type2,served2,clicked2,file3,type3,served3,clicked3,file4,type4,served4,clicked4,file5,type5,served5,clicked5,file6,type6,served6,clicked6,file7,type7,served7,clicked7,file8,type8,served8,clicked8,file9,type9,served9,clicked9,file10,type10,served10,clicked10,file11,type11,served11,clicked11,file12,type12,served12,clicked12,url</search>
        <export_excel>status,name,description,budget,target_conversion,file1,type1,served1,clicked1,file2,type2,served2,clicked2,file3,type3,served3,clicked3,file4,type4,served4,clicked4,file5,type5,served5,clicked5,file6,type6,served6,clicked6,file7,type7,served7,clicked7,file8,type8,served8,clicked8,file9,type9,served9,clicked9,file10,type10,served10,clicked10,file11,type11,served11,clicked11,file12,type12,served12,clicked12</export_excel>
        <export_xml>status,name,description,budget,target_conversion,file1,type1,served1,clicked1,file2,type2,served2,clicked2,file3,type3,served3,clicked3,file4,type4,served4,clicked4,file5,type5,served5,clicked5,file6,type6,served6,clicked6,file7,type7,served7,clicked7,file8,type8,served8,clicked8,file9,type9,served9,clicked9,file10,type10,served10,clicked10,file11,type11,served11,clicked11,file12,type12,served12,clicked12</export_xml>
        <export_csv>status,name,description,budget,target_conversion,file1,type1,served1,clicked1,file2,type2,served2,clicked2,file3,type3,served3,clicked3,file4,type4,served4,clicked4,file5,type5,served5,clicked5,file6,type6,served6,clicked6,file7,type7,served7,clicked7,file8,type8,served8,clicked8,file9,type9,served9,clicked9,file10,type10,served10,clicked10,file11,type11,served11,clicked11,file12,type12,served12,clicked12</export_csv>
        <export_tab>status,name,description,budget,target_conversion,file1,type1,served1,clicked1,file2,type2,served2,clicked2,file3,type3,served3,clicked3,file4,type4,served4,clicked4,file5,type5,served5,clicked5,file6,type6,served6,clicked6,file7,type7,served7,clicked7,file8,type8,served8,clicked8,file9,type9,served9,clicked9,file10,type10,served10,clicked10,file11,type11,served11,clicked11,file12,type12,served12,clicked12</export_tab>
    </method>
    <!-- define the method triggers -->
    <trigger>0</trigger>
</construct>
