1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6declare(strict_types=1);
7
8namespace App\Models;
9
10use Illuminate\Database\Eloquent\Relations\BelongsTo;
11
12/**
13 * @property-read ContestScoringCategory $category
14 * @property int $contest_judge_category_id
15 * @property int $contest_judge_vote_id
16 * @property \Carbon\Carbon|null $created_at
17 * @property int $id
18 * @property \Carbon\Carbon|null $updated_at
19 * @property int $value
20 * @property-read ContestJudgeVote $vote
21 */
22class ContestJudgeScore extends Model
23{
24 public function category(): BelongsTo
25 {
26 return $this->belongsTo(ContestScoringCategory::class, 'contest_scoring_category_id');
27 }
28
29 public function vote(): BelongsTo
30 {
31 return $this->belongsTo(ContestJudgeVote::class, 'contest_judge_vote_id');
32 }
33}