<?php

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

/**
 * RVSP_FORMATO_FACTURA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_servicio
 * @property string $descripcion
 * 
 * @method integer          getIdTipoRegimen()   Returns the current record's "id_tipo_regimen" value
 * @method string           getDescripcion()     Returns the current record's "descripcion" value
 * @method RVC_TIPO_REGIMEN setIdTipoRegimen()   Sets the current record's "id_tipo_regimen" value
 * @method RVC_TIPO_REGIMEN setDescripcion()     Sets the current record's "descripcion" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseRVSP_FORMATO_FACTURA_DET extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('RVSP_FORMATO_FACTURA_DET');
        $this->hasColumn('id_formato_factura_det', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('id_formato_factura', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('valor', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0 ',
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('subtotal_total_factura', 'decimal', 18, array(
            'notnull' => false,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 18,
        ));

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

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


        $this->hasColumn('id_tipo_servicio', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('usuario_log', 'string', 20, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('consumo_inicial', 'decimal', 20, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0 ',
            'primary' => false,
            'length' => 20,
        ));

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

        $this->hasColumn('cantidad_consumo', 'decimal', 20, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0 ',
            'primary' => false,
            'length' => 20,
        ));
    }

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

}
