This commit is contained in:
2026-06-13 12:42:42 +03:30
parent f8c96a420f
commit e70fcef962
8 changed files with 264 additions and 7 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class PriceSyncLog extends Model
{
protected $table = 'price_sync_logs';
public $timestamps = false;
protected $fillable = [
'source',
'source_url',
'liquid_gold_price',
'products_updated',
'created_at',
];
protected $casts = [
'liquid_gold_price' => 'integer',
'products_updated' => 'integer',
'created_at' => 'datetime',
];
public function items(): HasMany
{
return $this->hasMany(PriceSyncLogItem::class, 'log_id');
}
}