32 lines
626 B
PHP
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',
|
|
];
|
|
}
|
|
}
|