<?php

/**
 * BaseRestApiUsage
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int           $id                        Type: integer, primary key
 * @property string        $client_id                 Type: string(255)
 * @property string        $user_id                   Type: string(255)
 * @property string        $scope                     Type: string(20)
 * @property string        $method                    Type: string(20)
 * @property string        $module                    Type: string(20)
 * @property string        $action                    Type: string(50)
 * @property string        $path                      Type: string(255)
 * @property string        $parameters                Type: string
 * @property string        $created_at                Type: timestamp, Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 *  
 * @method int             getId()                    Type: integer, primary key
 * @method string          getClientId()              Type: string(255)
 * @method string          getUserId()                Type: string(255)
 * @method string          getScope()                 Type: string(20)
 * @method string          getMethod()                Type: string(20)
 * @method string          getModule()                Type: string(20)
 * @method string          getAction()                Type: string(50)
 * @method string          getPath()                  Type: string(255)
 * @method string          getParameters()            Type: string
 * @method string          getCreatedAt()             Type: timestamp, Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 *  
 * @method RestApiUsage    setId(int $val)            Type: integer, primary key
 * @method RestApiUsage    setClientId(string $val)   Type: string(255)
 * @method RestApiUsage    setUserId(string $val)     Type: string(255)
 * @method RestApiUsage    setScope(string $val)      Type: string(20)
 * @method RestApiUsage    setMethod(string $val)     Type: string(20)
 * @method RestApiUsage    setModule(string $val)     Type: string(20)
 * @method RestApiUsage    setAction(string $val)     Type: string(50)
 * @method RestApiUsage    setPath(string $val)       Type: string(255)
 * @method RestApiUsage    setParameters(string $val) Type: string
 * @method RestApiUsage    setCreatedAt(string $val)  Type: timestamp, Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseRestApiUsage extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_rest_api_usage');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             'length' => '',
             ));
        $this->hasColumn('client_id', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('user_id', 'string', 255, array(
             'type' => 'string',
             'length' => 255,
             ));
        $this->hasColumn('scope', 'string', 20, array(
             'type' => 'string',
             'length' => 20,
             ));
        $this->hasColumn('method', 'string', 20, array(
             'type' => 'string',
             'length' => 20,
             ));
        $this->hasColumn('module', 'string', 20, array(
             'type' => 'string',
             'length' => 20,
             ));
        $this->hasColumn('action', 'string', 50, array(
             'type' => 'string',
             'length' => 50,
             ));
        $this->hasColumn('path', 'string', 255, array(
             'type' => 'string',
             'length' => 255,
             ));
        $this->hasColumn('parameters', 'string', null, array(
             'type' => 'string',
             'length' => '',
             ));
        $this->hasColumn('created_at', 'timestamp', null, array(
             'type' => 'timestamp',
             ));
    }

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