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

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

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

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

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

    <!-- define the default order_by field for SQL queries -->
    <order_by>sort_order,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>
        <date_orig>
            <type>I8</type>
            <convert>date-now</convert>
        </date_orig>
        <group_avail>
            <type>C(255)</type>
            <validate>any</validate>
            <convert>array</convert>
        </group_avail>
        <name>
            <type>C(128)</type>
            <min_len>1</min_len>
            <max_len>128</max_len>
            <validate>any</validate> 
            <unique>1</unique>
        </name>
        <description>
            <type>X2</type>
        </description>
        <status>
            <type>L</type>
        </status>
        <sort_order>
            <type>I4</type>
        </sort_order>
     </field>

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

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