<?php 
namespace Apps\Models;

use Cygnite\Foundation\Application;
use Cygnite\Database\Schema;
use Cygnite\Common\UrlManager\Url;
use Cygnite\Database\ActiveRecord;

/**
* This file is generated by Cygnite CLI Crud generator
*/

class User extends ActiveRecord
{
    //your database connection name
    protected $database = 'cygnite';

    /*
     | By default Every model class name used as table name
     | "User" => 'user'
     | You can also override the table name here
     */
    //protected $tableName = 'users';

    protected $primaryKey = 'id';

    //public $perPage = 5;

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

    /*
    // used for pagination
    public function pageLimit()
    {
        return Url::segment(3);
    }
    */

    /**
     * Skip columns from the select query
     * @return array
     */
    public function skip()
    {
        return array('created_at', 'updated_at');
    }
}// End of the User Model