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.
35 lines
652 B
35 lines
652 B
<?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',
|
|
];
|
|
|
|
/**
|
|
* @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);
|
|
}
|
|
}
|