Files
fuel-price/app/Models/BrentPrice.php
Ovidiu U d5fb7f85bd
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled
feat: add Filament admin panel with migrations and design spec
- Add AdminPanelProvider mounting panel at `/admin` with `is_admin` auth guard
- Add `is_admin` boolean column to users table
- Add brent_prices and price_predictions tables with appropriate indexes
- Add comprehensive admin design spec covering resources, dashboard, navigation, and build order
- Configure default panel with amber primary color and standard middleware stack
- Add compiled Filament assets (actions.js, app.css)
2026-04-04 13:40:56 +01:00

32 lines
580 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
/**
* @property Carbon $date
* @property string $price_usd
*/
#[Fillable(['date', 'price_usd'])]
class BrentPrice extends Model
{
public $timestamps = false;
protected $primaryKey = 'date';
public $incrementing = false;
protected $keyType = 'string';
protected function casts(): array
{
return [
'date' => 'date',
'price_usd' => 'decimal:2',
];
}
}