<?php

// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('CO_CONTRATO_SIRECI_ANM', 'doctrine');

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BaseCO_CONTRATO_SIRECI_ANM
 *
 * @author ManuelEnrique Paredes Lopez
 */
abstract class BaseCO_CONTRATO_SIRECI_ANM extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('CO_CONTRATO_SIRECI_ANM');

        $this->hasColumn('id_contrato_sireci_anm', 'integer', 20, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 20,
        ));

        $this->hasColumn('id_contrato', 'integer', 20, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('no_contrato', 'integer', 20, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));

        $this->hasColumn('justificacion', 'string', 250, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 250,
        ));

        $this->hasColumn('registrado_sireci', 'string', 250, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 250,
        ));

        $this->hasColumn('otra_clase_contrato', 'string', 250, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 250,
        ));

        $this->hasColumn('codigo_secop', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));

        $this->hasColumn('origen_recursos', 'integer', 1, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));

        $this->hasColumn('nit_entidad_origen_recursos', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));


        $this->hasColumn('dv_entidad_origen_recursos', 'integer', 1, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));


        $this->hasColumn('tipo_garantias', 'string', 250, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 250,
        ));

        $this->hasColumn('tipo_seguimiento', 'integer', 1, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));

        $this->hasColumn('interventor_tipo_ident', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));



        $this->hasColumn('interventor_num_doc', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));


        $this->hasColumn('interventor_nit', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));


        $this->hasColumn('interventor_dv', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));



        $this->hasColumn('interventor_nombre_completo', 'string', 250, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 250,
        ));


        $this->hasColumn('interventor_doc_ext', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));

        $this->hasColumn('pago_anticipado', 'string', 250, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 250,
        ));

        $this->hasColumn('valor_pago_anticipado', 'decimal', 20, array(
            'notnull' => false,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));


        $this->hasColumn('porc_avan_fis_progra', 'decimal',20, array(
            'notnull' => false,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));


        $this->hasColumn('porc_avan_fis_real', 'decimal',20, array(
            'notnull' => false,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));

        $this->hasColumn('porc_avan_pre_progra', 'decimal', 20, array(
            'notnull' => false,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));


        $this->hasColumn('porc_avan_pre_real', 'decimal', 20, array(
            'notnull' => false,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));




        $this->hasColumn('observaciones', 'string', 512, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 512,
        ));

        $this->hasColumn('just', 'integer', 1, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));

        $this->hasColumn('ent_ori', 'integer', 1, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));



    }
    
    
    
    public function setUp() {
        parent::setUp();
        
        
         $this->hasMany('CO_CONTRATO', array(
             'local' => 'id_contrato',
             'foreign' => 'id_contrato'));
    }

}
