<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('USUARIOS', 'doctrine');

/**
 * BaseUSUARIOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_usuario
 * @property integer $id_perfil
 * @property integer $id_grupo
 * @property string $username
 * @property string $pass
 * @property integer $estado
 * @property string $correo
 * @property integer $nitocc
 * @property string $nombres
 * @property integer $fk_username
 * @property string $apellidos
 * @property timestamp $created_at
 * @property timestamp $fecha_creacion_sistema
 * @property timestamp $update_at
 * @property integer $fk_id_usuario
 * @property integer $eliminado
 * @property integer $soporte
 * @property PERFILES $PERFILES
 * 
 * @method integer   getId()                     Returns the current record's "id" value
 * @method integer   getIdUsuario()              Returns the current record's "id_usuario" value
 * @method integer   getIdPerfil()               Returns the current record's "id_perfil" value
 * @method integer   getIdGrupo()                Returns the current record's "id_grupo" value
 * @method string    getUsername()               Returns the current record's "username" value
 * @method string    getPass()                   Returns the current record's "pass" value
 * @method integer   getEstado()                 Returns the current record's "estado" value
 * @method string    getCorreo()                 Returns the current record's "correo" value
 * @method integer   getNitocc()                 Returns the current record's "nitocc" value
 * @method string    getNombres()                Returns the current record's "nombres" value
 * @method integer   getFkUsername()             Returns the current record's "fk_username" value
 * @method string    getApellidos()              Returns the current record's "apellidos" value
 * @method timestamp getCreatedAt()              Returns the current record's "created_at" value
 * @method timestamp getFechaCreacionSistema()   Returns the current record's "fecha_creacion_sistema" value
 * @method timestamp getUpdateAt()               Returns the current record's "update_at" value
 * @method integer   getFkIdUsuario()            Returns the current record's "fk_id_usuario" value
 * @method integer   getEliminado()              Returns the current record's "eliminado" value
 * @method integer   getSoporte()                Returns the current record's "soporte" value
 * @method PERFILES  getPERFILES()               Returns the current record's "PERFILES" value
 * @method USUARIOS  setId()                     Sets the current record's "id" value
 * @method USUARIOS  setIdUsuario()              Sets the current record's "id_usuario" value
 * @method USUARIOS  setIdPerfil()               Sets the current record's "id_perfil" value
 * @method USUARIOS  setIdGrupo()                Sets the current record's "id_grupo" value
 * @method USUARIOS  setUsername()               Sets the current record's "username" value
 * @method USUARIOS  setPass()                   Sets the current record's "pass" value
 * @method USUARIOS  setEstado()                 Sets the current record's "estado" value
 * @method USUARIOS  setCorreo()                 Sets the current record's "correo" value
 * @method USUARIOS  setNitocc()                 Sets the current record's "nitocc" value
 * @method USUARIOS  setNombres()                Sets the current record's "nombres" value
 * @method USUARIOS  setFkUsername()             Sets the current record's "fk_username" value
 * @method USUARIOS  setApellidos()              Sets the current record's "apellidos" value
 * @method USUARIOS  setCreatedAt()              Sets the current record's "created_at" value
 * @method USUARIOS  setFechaCreacionSistema()   Sets the current record's "fecha_creacion_sistema" value
 * @method USUARIOS  setUpdateAt()               Sets the current record's "update_at" value
 * @method USUARIOS  setFkIdUsuario()            Sets the current record's "fk_id_usuario" value
 * @method USUARIOS  setEliminado()              Sets the current record's "eliminado" value
 * @method USUARIOS  setSoporte()                Sets the current record's "soporte" value
 * @method USUARIOS  setPERFILES()               Sets the current record's "PERFILES" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseUSUARIOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('USUARIOS');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_usuario', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_perfil', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_grupo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('username', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('pass', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             'default' => '1',
             ));
        $this->hasColumn('correo', 'string', 60, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 60,
             ));
        $this->hasColumn('nitocc', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('nombres', 'string', 40, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 40,
             ));
        $this->hasColumn('fk_username', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('apellidos', 'string', 40, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 40,
             ));
        $this->hasColumn('created_at', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_creacion_sistema', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('update_at', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fk_id_usuario', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('eliminado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('soporte', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('PERFILES', array(
             'local' => 'id_perfil',
             'foreign' => 'id'));
    }
}