Files

34 lines
610 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;
#[Fillable([
'source',
'status',
'started_at',
'finished_at',
'fetched_contacts',
'synced_contacts',
'deleted_contacts',
'message',
'error',
])]
class SourceSyncRun extends Model
{
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'started_at' => 'datetime',
'finished_at' => 'datetime',
];
}
}