HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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');
    }


}