mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 21:31:06 +03:30
25 lines
458 B
PHP
25 lines
458 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class TestType extends Model
|
|
{
|
|
public $fillable = ['name','unique_code','user_id'];
|
|
protected $softDelete = true;
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('App\User');
|
|
}
|
|
public function test_results()
|
|
{
|
|
return $this->hasMany('App\TestResult');
|
|
}
|
|
public function inputs()
|
|
{
|
|
return $this->hasMany('App\Input');
|
|
}
|
|
}
|