You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
632 B

1 month ago
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CompetitionTrack extends Model
{
use HasFactory;
protected $fillable = [
'competition_id',
'track_code',
'title',
'description',
'sort',
'is_enabled',
];
/**
* @var array<string, string>
*/
protected $casts = [
'is_enabled' => 'boolean',
];
public function competition(): BelongsTo
{
return $this->belongsTo(Competition::class);
}
}