<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class MiscellaneousCharge extends Model
{
    /**
     * @var string[]
     */
    protected $fillable = [
     	'invoice',
     	'date_invoice',
     	'date_invoiced',
     	'invoiced',
     	'price',
     	'description',
     	'customer_id',
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function customer()
    {
        return $this->belongsTo(XeroCustomer::class, 'customer_id');
    }
}
