festbench-web/app/Models/PsychbenchResult.php

28 lines
724 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Models;
use Database\Factories\PsychbenchResultFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class PsychbenchResult extends SuiteResult
{
/** @use HasFactory<PsychbenchResultFactory> */
use HasFactory;
protected $fillable = [
'benchmark_run_id', 'ran_at', 'task', 'level',
'ok', 'decode', 'user_tps', 'ttft', 't_answer', 'wall',
'reasoning', 'visible', 'total', 'finish', 'detail',
'section', 'checks_passed', 'checks_total', 'payload',
];
protected function casts(): array
{
return array_merge(parent::casts(), [
'checks_passed' => 'integer',
'checks_total' => 'integer',
]);
}
}