<?php

namespace App;

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

class ProFormaInvoice extends Model
{

    protected $table = 'pro_forma_invoice';

    protected $fillable = ['application_id','gst_number','center_name','customer_name','treatment_name','customer_registration_date','customer_registration_number','loan_application_no', 'processing_fee_by_merchant','insurance_premium_by_merchant','insurance_premium_applicable','insurance_premium_amount','merchant_collected_advance_amount', 'fldg_applied', 'fldg_applied_category', 'spouse_name', 'insurance_coverage'];

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

    public function fldg_category(){
        return $this->hasOne('App\FLDGCategory','id','fldg_applied_category');
    }

}
