<?php

// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('RVC_RPS_CDPS_CONTRATO', '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 BaseRVC_RPS_CDPS_CONTRATO
 *
 * @author Manuel Enrique Paredes Lopez
 */
abstract class BaseRVC_RPS_CDPS_CONTRATO extends sfDoctrineRecord {

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

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

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


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




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



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

        $this->hasColumn('fecha_rp', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));




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




        $this->hasColumn('fecha_cdp', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));





        $this->hasColumn('tipo_recurso', 'integer', 1, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 1,
        ));
        
        $this->hasColumn('valor_rp', 'decimal', 20, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 20,
        ));
        
        
        
        $this->hasColumn('principal', 'integer', 1, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 1,
        ));
        
        
    }

    public function setUp() {
        parent::setUp();
    }

}
