mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 02:31:05 +03:30
23 lines
418 B
PHP
23 lines
418 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 testresults()
|
|
{
|
|
return $this->hasMany('App\TestResult');
|
|
}
|
|
public function inputs()
|
|
{
|
|
return $this->hasMany('App\Input');
|
|
}
|
|
}
|