Работа над журналом для ст. мед сестер
This commit is contained in:
21
app/Models/SurgicalOperation.php
Normal file
21
app/Models/SurgicalOperation.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SurgicalOperation extends Model
|
||||
{
|
||||
protected $table = 'mv_surgical_operations';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
public function medicalHistory(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(MedicalHistory::class, 'medical_history_id', 'id');
|
||||
}
|
||||
|
||||
public function migration(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(MigrationPatient::class, 'migration_patient_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user