<?php
//profit
class ProfitDev extends ActiveRecord\Model {
    //static $connection = 'profit';
   static $table_name = 'dev_cli';
   static $primary_key = 'fact_num';
   //put your code here
	static $campos = array('fact_num','contrib','nombre','rif','nit','num_control','status','comentario','descrip','saldo','fec_emis','fec_venc','co_cli','co_ven','co_tran','dir_ent','forma_pag','tot_bruto','tot_neto','glob_desc','tot_reca','porc_gdesc','porc_reca','total_uc','total_cp','tot_flete','monto_dev','totklu','anulada','impresa','iva','iva_dev','feccom','numcom','tasa','moneda','dis_cen','nc_num','seriales','tasag','tasag10','tasag20','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','revisado','trasnfe','numcon','co_sucu','rowguid','mon_ilc','otros1','otros2','otros3','num_cob','mov_caj','mov_ban','saldoncr','num_turno','aux01','aux02','salestax','origen','origen_d','sta_prod','telefono');
    static $has_many = array(
     array('reng_dvc', 'foreign_key' => 'fact_num', 'class_name' => 'ProfitRengDev')
   );
    static $belongs_to = array(
      array('clientes', 'foreign_key' => 'co_cli', 'class_name' => 'ProfitClientes')
    );
   
   
}
