<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class DepreciationRule extends Model
{
    use HasFactory;

    protected $fillable = [
        'age_years',
        'depreciation_percentage',
        'description',
    ];

    protected function casts(): array
    {
        return [
            'age_years' => 'integer',
            'depreciation_percentage' => 'decimal:2',
        ];
    }
}
