<?php

namespace App\Models\Accounting;

use App\Models\Branch;
use App\Models\Currency;
use Illuminate\Database\Eloquent\Model;
use App\Models\Accounting\DepreciationDetail;
use Illuminate\Database\Eloquent\SoftDeletes;

class DepreciationPayment extends Model
{
    use SoftDeletes;
    protected $table = 'depreciation_payments';
    protected $fillable = [
        'id',
        'branch_id',
        'currency_id',
        'dep_detail_id',
        'paid_date',
        'paid',
        'loan_balance',
        'created_by'
    ];
    
   public function depreciationDetail()
    {
        return $this->belongsTo(DepreciationDetail::class, 'dep_detail_id');
    }

    
}
