File: D:/HostingSpaces/SBogers85/equichecker.com/app/KommaApp/Stats/Models/DetailPageStats.php
<?php
/**
* Short description for the file.
*
* @author Tim Van Samang <timvansamang@komma.pro>
* @copyright (c) 2012-2015, Komma Mediadesign
*/
namespace KommaApp\Stats\Models;
use Illuminate\Database\Eloquent\Model;
class DetailPageStats extends Model
{
protected $table = 'detail_page_stats';
protected $fillable = ['id','customer_id','customer_country_id','debtor_id','search_term'];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function customer()
{
return $this->hasOne(\KommaApp\Customers\Models\Customer::class, 'id', 'customer_id');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function customer_country()
{
return $this->hasOne(\KommaApp\Countries\Models\Country::class, 'id', 'customer_country_id');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function debtor()
{
return $this->hasOne(\KommaApp\Debtors\Models\Debtor::class, 'id', 'debtor_id');
}
}