23 lines
476 B
PHP
23 lines
476 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Slowlyo\OwlAdmin\Models\AdminUser as Base;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AdminUser extends Model
|
|
{
|
|
public function doctors()
|
|
{
|
|
return $this->hasMany(PatientRecord::class, 'doctor_id');
|
|
}
|
|
public function inviters()
|
|
{
|
|
return $this->hasMany(PatientRecord::class, 'inviter_id');
|
|
}
|
|
public function salers()
|
|
{
|
|
return $this->hasMany(PatientRecord::class, 'saler_id');
|
|
}
|
|
}
|