32 lines
663 B
PHP
32 lines
663 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\HasOne;
|
|
|
|
class TrPatientVisit extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
"barcode",
|
|
"registration_date",
|
|
"service_date",
|
|
"check_in_date",
|
|
"check_in",
|
|
"active",
|
|
];
|
|
|
|
/**
|
|
* Get the user associated with the patient_visit
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
|
*/
|
|
public function MsDoctor(): HasOne
|
|
{
|
|
return $this->hasOne(MsDoctor::class, 'foreign_key', 'local_key');
|
|
}
|
|
}
|