This commit is contained in:
Ovidiu U
2026-05-12 09:47:26 +01:00
parent 3d103f19e1
commit 759e4f2784
183 changed files with 20094 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class VehicleDataSource extends Model
{
protected $fillable = [
'vehicle_record_id',
'source_name',
'source_url',
'last_fetched_at',
'cache_expires_at',
];
protected function casts(): array
{
return [
'last_fetched_at' => 'datetime',
'cache_expires_at' => 'datetime',
];
}
public function vehicleRecord(): BelongsTo
{
return $this->belongsTo(VehicleRecord::class);
}
}