feat: add HasFactory and factories for ApiLog, BrentPrice, PricePrediction
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user