<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class DepreciationLog extends Model
{
    protected $fillable = [
        'company_id',
        'fixed_asset_id',
        'journal_entry_id',
        'transaction_date',
        'depreciation_amount',
        'book_value_after',
        'description',
        'created_by'
    ];

    public function asset()
    {
        return $this->belongsTo(FixedAsset::class, 'fixed_asset_id');
    }
}