1
0
Fork 0

Update Instance model, add entity casts

This commit is contained in:
Daniel Supernault 2024-02-07 02:49:29 -07:00
parent 240e6bbe4f
commit 289cad470b
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1
1 changed files with 67 additions and 53 deletions

View File

@ -6,7 +6,21 @@ use Illuminate\Database\Eloquent\Model;
class Instance extends Model
{
protected $fillable = ['domain', 'banned', 'auto_cw', 'unlisted', 'notes'];
protected $casts = [
'last_crawled_at' => 'datetime',
'actors_last_synced_at' => 'datetime',
'notes' => 'array',
'nodeinfo_last_fetched' => 'datetime',
'delivery_next_after' => 'datetime',
];
protected $fillable = [
'domain',
'banned',
'auto_cw',
'unlisted',
'notes'
];
public function profiles()
{