<?php

namespace App;

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

class ChargedInvoices extends Model
{
    use SoftDeletes;
    protected $table = 'charged_invoices';

    protected $fillable = ['application_id', 'lender_id', 'invoice_id', 'amount', 'igst', 'cgst', 'sgst', 'invoice_date', 'type', 'version'];

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

}
