Model Structure
Every Model generated by code builder will have same structure and code
Model code
class Module extends BaseModel {
protected $table = 'table';
protected $primaryKey = 'key';
public function __construct() {
parent::__construct();
}
public static function querySelect( ){
return " SELECT table.* FROM table ";
}
public static function queryWhere( ){
return " WHERE table.key IS NOT NULL ";
}
public static function queryGroup(){
return " ";
}
}