'datetime', 'finished_at' => 'datetime', 'score' => 'float', 'max_score' => 'integer', ]; public function candidate(): BelongsTo { return $this->belongsTo(Candidate::class); } public function quiz(): BelongsTo { return $this->belongsTo(Quiz::class); } public function answers(): HasMany { return $this->hasMany(Answer::class); } }