<?php

namespace App\Models;

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

class PerformanceMetric extends Model
{
    use HasFactory;

    protected $fillable = [
        'metric_group',
        'metric_key',
        'metric_value',
        'unit',
        'meta',
        'recorded_at',
    ];

    protected $casts = [
        'metric_value' => 'decimal:4',
        'meta' => 'array',
        'recorded_at' => 'datetime',
    ];
}
