<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>

    <!-- define the module name -->
    <module>faq</module>

    <!-- define the module table name -->
    <table>faq</table>

    <!-- define the module dependancy(s) -->
    <dependancy></dependancy>

    <!-- define the DB cache in seconds -->
    <cache>0</cache>

    <!-- define the default order_by field for SQL queries -->
    <order_by>sort_order,date_orig,name</order_by>

    <!-- define the methods -->
    <limit>35</limit>

    <!-- define the fields -->
    <field>
        <id>
            <type>I4</type>
            <unique>1</unique>  
        </id>
        <site_id>
            <type>I4</type> 
        </site_id>
        <faq_category_id>
            <type>I4</type>
            <asso_table>faq_category</asso_table>
            <asso_field>name</asso_field> 
        </faq_category_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>I8</type>
            <convert>date</convert>
        </date_start>
        <date_expire>
            <type>I8</type>
            <convert>date</convert>
        </date_expire>
        <sort_order>
            <type>I4</type>  
        </sort_order>
        <status>
            <type>L</type>
        </status>
        <name>
            <type>C(255)</type>
            <min_len>1</min_len>
            <max_len>255</max_len>
            <validate>any</validate>
            <unique>1</unique>
        </name>
     </field>

     <!-- define all the methods for this class, and the fields they have access to, if applicable. -->
     <method>
        <add>id,site_id,faq_category_id,date_orig,date_last,date_start,date_expire,sort_order,status,name</add>
        <update>id,site_id,faq_category_id,date_orig,date_last,date_start,date_expire,sort_order,status,name</update>
        <delete>id,site_id,faq_category_id,date_orig,date_last,date_start,date_expire,sort_order,status,name</delete>
        <view>id,site_id,faq_category_id,date_orig,date_last,date_start,date_expire,sort_order,status,name</view>
        <search>id,site_id,faq_category_id,date_orig,date_last,date_start,date_expire,sort_order,status,name</search>
     </method>

     <!-- define the method triggers -->
     <trigger>0</trigger>
</construct>
