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.

36 lines
678 B

5 months ago
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ReviewerScope extends Model
{
public $timestamps = false;
protected $fillable = [
'reviewer_id',
'competition_id',
'track_code',
4 weeks ago
'event_location',
5 months ago
];
/**
* @var array<string, string>
*/
protected $casts = [
'created_at' => 'datetime',
];
public function reviewer(): BelongsTo
{
return $this->belongsTo(Reviewer::class, 'reviewer_id');
}
public function competition(): BelongsTo
{
return $this->belongsTo(Competition::class);
}
}