22 lines
522 B
PHP
22 lines
522 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class MisSurgicalOperation extends Model
|
|
{
|
|
protected $table = 'stt_surgicaloperation';
|
|
protected $primaryKey = 'SurgicalOperationID';
|
|
|
|
public function serviceMedical()
|
|
{
|
|
return $this->belongsTo(MisServiceMedical::class, 'rf_kl_ServiceMedicalID', 'ServiceMedicalID');
|
|
}
|
|
|
|
public function medicalHistory()
|
|
{
|
|
return $this->belongsTo(MisMedicalHistory::class, 'rf_MedicalHistoryID', 'MedicalHistoryID');
|
|
}
|
|
}
|