<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Invoices extends Model
{
    use SoftDeletes;

    protected $table = 'invoices';

    public function application()
    {
        return $this->hasOne('App\ConsumerApplication','id','application_id');
    }

    public function merchant()
    {
        return $this->hasOne('App\Merchant','id','merchant_id');
    }

    public function center()
    {
        return $this->hasOne('App\MerchantLocation','id','center_id');
    }
}
