<?php namespace App\Models;

use Illuminate\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;

class petaktebang extends Sximo  {
	
	protected $table = 'tx_petak_tebang';
	protected $primaryKey = 'id';

	public function __construct() {
		parent::__construct();
		
	}

	public static function querySelect(  ){
		
		return "  SELECT tx_petak_tebang.*, tx_ajuan_tebang.rayon FROM tx_petak_tebang";
	}	

	public static function queryWhere(  ){
		
		return " inner join tx_ajuan_tebang on tx_ajuan_tebang.lahan_id=tx_petak_tebang.id_petak  WHERE tx_petak_tebang.id IS NOT NULL ";
	}
	
	public static function queryGroup(){
		return "  ";
	}
	

}
