29 lines
452 B
PHP
29 lines
452 B
PHP
<?php
|
|
|
|
namespace BitGoblin\Colossus\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Result extends Model {
|
|
|
|
protected $fillable = [
|
|
'test_id',
|
|
'average',
|
|
'minimum',
|
|
'maximum',
|
|
];
|
|
|
|
public function test() {
|
|
return $this->belongsTo(Test::class);
|
|
}
|
|
|
|
public function component() {
|
|
return $this->belongsTo(Component::class);
|
|
}
|
|
|
|
public function benchmark() {
|
|
return $this->belongsTo(Benchmark::class);
|
|
}
|
|
|
|
}
|