presseportale/app/Models/LegacyImportMap.php
Kevin Adametz 5b8bdf4182
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
12-05-2026 Frontend dev
2026-05-12 18:32:33 +02:00

32 lines
626 B
PHP

<?php
namespace App\Models;
use App\Enums\Portal;
use Illuminate\Database\Eloquent\Model;
class LegacyImportMap extends Model
{
public $timestamps = false;
protected $table = 'legacy_import_map';
protected $fillable = [
'legacy_portal',
'legacy_table',
'legacy_id',
'target_table',
'target_id',
'imported_at',
];
protected function casts(): array
{
return [
'legacy_portal' => Portal::class,
'legacy_id' => 'integer',
'target_id' => 'integer',
'imported_at' => 'datetime',
];
}
}