mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:51:07 +03:30
fix: change models namespace
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class InputValue extends Model
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user