Adds three resources under a new "Forecasting" navigation group: a full-CRUD WatchedEventResource for the Layer 5 volatility detector, plus read-only WeeklyForecastResource and BacktestResource so the ridge model output and its calibration can be inspected without SQL. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
29 lines
559 B
PHP
29 lines
559 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Database\Factories\WatchedEventFactory;
|
|
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
#[Fillable([
|
|
'label',
|
|
'starts_at',
|
|
'ends_at',
|
|
'notes',
|
|
])]
|
|
class WatchedEvent extends Model
|
|
{
|
|
/** @use HasFactory<WatchedEventFactory> */
|
|
use HasFactory;
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'starts_at' => 'datetime',
|
|
'ends_at' => 'datetime',
|
|
];
|
|
}
|
|
}
|