5 use Illuminate\Database\Eloquent\Factories\HasFactory;
6 use Illuminate\Database\Eloquent\Model;
8 class Result extends Model
12 public function round() {
13 return $this->belongsTo(Round::class);
16 public function participant() {
17 return $this->belongsTo(Participant::class);
20 public function getHasFinishedAttribute() {
21 return $this->time > 0;
24 protected $appends = [
28 protected $fillable = [