Started work to re-work database; add new models for benchmarks and components

This commit is contained in:
2023-09-22 23:03:24 -06:00
parent e176398f41
commit 0dd7098681
18 changed files with 343 additions and 51 deletions

View File

@ -7,12 +7,21 @@ use Illuminate\Database\Eloquent\Model;
class Test extends Model {
protected $fillable = [
'name',
'description',
'date_tag',
'benchmark_id',
'component_id',
];
public function results() {
return $this->hasMany(Result::class);
}
public function benchmark() {
return $this->belongsTo(Benchmark::class);
}
public function component() {
return $this->belongsTo(Component::class);
}
}