feat: add HasFactory and factories for ApiLog, BrentPrice, PricePrediction

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ovidiu U
2026-04-04 13:59:55 +01:00
parent efba3cbfd6
commit cf187f9721
6 changed files with 107 additions and 0 deletions

View File

@@ -2,7 +2,9 @@
namespace App\Models;
use Database\Factories\BrentPriceFactory;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
@@ -13,6 +15,9 @@ use Illuminate\Support\Carbon;
#[Fillable(['date', 'price_usd'])]
class BrentPrice extends Model
{
/** @use HasFactory<BrentPriceFactory> */
use HasFactory;
public $timestamps = false;
protected $primaryKey = 'date';