<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class EbayCategory extends Model{
	
	protected $table = 'ebay_categories';
	protected $connection = 'mysql';

	public function childs(){
		return $this->hasMany('App\EbayCategory','parent_category_id','id');
	}
	
	protected $fillable = [
        'category_name',
		'category_tree_name',
		'is_last_level',
		'ebay_category_id',
		'category_level',
		'auto_pay_enabled',
		'parent_category_id',
		'parent_category_name',
		'ebay_parent_category_id',
		'ebay_site',
		'category_attributes'
    ];
}
