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.

38 lines
749 B

5 months 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',
1 month ago
'title_en',
5 months ago
'description',
1 month ago
'description_en',
5 months ago
'sort',
'is_enabled',
2 months ago
'scoring_sheet_json',
5 months ago
];
/**
* @var array<string, string>
*/
protected $casts = [
'is_enabled' => 'boolean',
2 months ago
'scoring_sheet_json' => 'array',
5 months ago
];
public function competition(): BelongsTo
{
return $this->belongsTo(Competition::class);
}
}