<?php
//profit
class ProfitCobros extends ActiveRecord\Model {
   // static $connection = 'profit';
   static $table_name = 'cobros';
   static $primary_key = 'cob_num';
   //put your code here
   static $campos = array('cob_num','recibo','co_cli','co_ven','fec_cob','anulado','monto','dppago','mont_ncr','ncr','tcomi_porc','tcomi_line','tcomi_art','tcomi_conc','feccom','tasa','moneda','numcom','dis_cen','campo1','campo2','campo3','campo4','campo5','campo6','campo7','campo8','co_us_in','fe_us_in','co_us_mo','fe_us_mo','co_us_el','fe_us_el','recargo','adel_num','revisado','trasnfe','co_sucu','rowguid','descrip','num_dev','devdinero','num_turno','aux01','aux02','origen','origen_d');
    static $has_many = array(
     array('reng_cob', 'foreign_key' => 'cob_num', 'class_name' => 'ProfitRengCobros')
	 ,array('reng_tip','foreign_key'=>'cob_num','class_name'=>'ProfitRengCobroTip')
   );
    static $belongs_to = array(
      array('clientes', 'foreign_key' => 'co_cli', 'class_name' => 'ProfitClientes')
    );
  
   
}
