<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;

#[Fillable([
    'ran_at',
    'forecast_for_week',
    'direction',
    'confidence',
    'reasoning',
    'events_json',
    'agrees_with_ridge',
    'major_impact_event',
    'volatility_flag_on',
    'search_used',
])]
class LlmOverlay extends Model
{
    protected function casts(): array
    {
        return [
            'ran_at' => 'datetime',
            'forecast_for_week' => 'date',
            'confidence' => 'integer',
            'events_json' => 'array',
            'agrees_with_ridge' => 'boolean',
            'major_impact_event' => 'boolean',
            'volatility_flag_on' => 'boolean',
            'search_used' => 'boolean',
        ];
    }
}
