Files
nuhodds_fi4/app/Models/Supervisor.php
T
2026-01-08 12:51:12 +01:00

38 lines
628 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',
'days_from',
'days_to',
];
protected $casts = [
'grap_days_pattern' => 'json',
];
public function sport()
{
return $this->belongsTo(Sport::class);
}
public function provider()
{
return $this->belongsTo(Provider::class);
}
}