This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/login_log/login_log_construct.xml
2008-11-26 14:50:40 -08:00

57 lines
1.7 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- define the module name -->
<module>login_log</module>
<!-- define the module table name -->
<table>login_log</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>date_orig</order_by>
<!-- define the methods -->
<limit>25</limit>
<!-- define database indexes -->
<index>
<account>account_id</account>
<ip>ip</ip>
</index>
<!-- define the fields -->
<field>
<id>
<type>I4</type>
<unique>1</unique>
</id>
<site_id>
<type>I4</type>
<index>1</index>
</site_id>
<date_orig>
<type>I8</type>
<convert>date-now</convert>
</date_orig>
<account_id>
<type>I8</type>
<asso_table>account</asso_table>
<asso_field>username</asso_field>
</account_id>
<status>
<type>L</type>
</status>
<ip>
<type>C(32)</type>
</ip>
</field>
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
<method>
<add>id,site_id,date_orig,account_id,status,ip</add>
<update>id,site_id,date_orig,account_id,status,ip</update>
<delete>id,site_id,date_orig,account_id,status,ip</delete>
<view>id,site_id,date_orig,account_id,status,ip</view>
<search>id,site_id,date_orig,account_id,status,ip</search>
</method>
<!-- define the method triggers -->
<trigger>0</trigger>
</construct>