mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 20:51:07 +03:30
23 lines
419 B
PHP
23 lines
419 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class TestType extends Model
|
|
{
|
|
public $fillable = ['name','unique_code','user_id'];
|
|
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');
|
|
}
|
|
}
|