<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class FixedAsset extends Model
{
    protected $fillable = ['asset_code', 'name', 'category', 'acquisition_date', 'acquisition_cost', 'accumulated_depreciation', 'residual_value', 'currency_code', 'status', 'notes'];
    protected function casts(): array { return ['acquisition_date' => 'date', 'acquisition_cost' => 'decimal:2', 'accumulated_depreciation' => 'decimal:2', 'residual_value' => 'decimal:2']; }
}
