mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 23:31:06 +03:30
32 lines
637 B
PHP
32 lines
637 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class InputValue extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
public $fillable = [
|
|
'value', 'test_result_id', 'input_id', 'option_id'
|
|
];
|
|
|
|
public function input(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Input::class);
|
|
}
|
|
|
|
public function test_result(): BelongsTo
|
|
{
|
|
return $this->belongsTo(TestResult::class);
|
|
}
|
|
|
|
public function option(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Option::class);
|
|
}
|
|
}
|