<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct> 
    <module>voip_prepaid</module> 
    <table>voip_prepaid</table> 
    <dependancy>voip</dependancy> 
    <cache>0</cache> 
    <order_by>id</order_by> 
    <limit>35</limit> 
    <index>
    	<pin>pin</pin>
    	<account>account_id</account>
    	<product>product_id</product>
    </index>
    <field>
        <id>
            <type>I8</type> 
            <unique>1</unique>
        </id>
        <site_id>
            <type>C(16)</type> 
        </site_id>
        <date_expire>
        	<type>I8</type> 
        	<convert>date</convert>
        </date_expire>        
        <date_email>
        	<type>I8</type> 
        </date_email>
        <account_id>
            <type>I4</type> 
            <validate>any</validate>
        </account_id>
        <parent_id>
            <type>I4</type>       
        </parent_id> 
        <voip_did_id>
            <type>I4</type>  
        </voip_did_id>        
        <product_id>
            <type>C(16)</type> 
            <validate>any</validate>
            <asso_table>product</asso_table>
            <asso_field>sku</asso_field> 
        </product_id>
        <ani>
        	<type>L</type>
        </ani>     
        <pin>
            <type>C(16)</type> 
            <unique>1</unique>
            <validate>numeric</validate>
        </pin>
        <balance>
            <type>F</type> 
        </balance>
        <in_use>
            <type>L</type> 
        </in_use>
        <bulk>
        	<type>C(16)</type> 
        </bulk> 
        <expire_days>
            <type>I4</type> 
        </expire_days>        
     </field> 
     <method>
     	<delete>id</delete>
        <add>id,site_id,account_id,product_id,pin,balance,in_use,expire_days,ani,voip_did_id</add>
        <update>id,site_id,date_expire,account_id,product_id,pin,balance,in_use,expire_days,ani,voip_did_id</update> 
        <view>id,site_id,date_expire,bulk,date_email,account_id,product_id,pin,balance,in_use,expire_days,ani,voip_did_id</view>
        <search>id,site_id,date_expire,bulk,date_email,account_id,product_id,pin,balance,in_use,expire_days,ani,voip_did_id</search> 
        <search_export>pin,balance,date_expire,account_id,product_id,bulk,expire_days,ani,voip_did_id</search_export>
        <export_excel>pin,balance,date_expire,bulk</export_excel>
        <export_xml>pin,balance,date_expire,bulk</export_xml>
        <export_tab>pin,balance,date_expire,bulk</export_tab>
        <export_csv>pin,balance,date_expire,bulk</export_csv>  
     </method> 
     <trigger>0</trigger>
</construct>