<?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 Product extends ActiveRecord
{
    //your database connection name
    protected $database = 'cygnite';

    // your table name here
    //protected $tableName = 'product';

    protected $primaryKey = 'id';

    //public $perPage = 5; // used to create pagination links

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

    /*
    // Used to set pagination limit
    public function pageLimit()
    {
        return Url::segment(3);
    }
    */
}// End of the Product Model