mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 02:01:06 +03:30
Come BackEnd
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user