Files
nuhodds_fi4/app/Models/Supervisor.php
T
2026-01-08 11:06:23 +01:00

37 lines
617 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Supervisor extends Model
{
protected $fillable = [
'name',
'provider_id',
'sport_id',
'sleep',
'limit',
'runtime',
'maxsconds',
'lastcall',
'is_cron',
'is_active',
'grap_days_pattern',
];
protected $casts = [
'grap_days_pattern' => 'json',
];
public function sport()
{
return $this->belongsTo(Sport::class);
}
public function provider()
{
return $this->belongsTo(Provider::class);
}
}