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