<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\patientHcpName;
class PatientHealthHistory extends Model
{
    use HasFactory;
    protected $table = 'patient_health_history';
    protected $primaryKey = 'health_history_id'; 
    
      public $timestamps = false;  // Disable created_at and updated_at

    protected $fillable = [
        'patient_id',
        'health_condition',
        'hcp_notes',
        'diagnosis_date',
        'hcp_id',
        'health_history_id' 
    ];

 
    public function patient()
    {
        return $this->belongsTo(Patient::class, 'patient_id', 'patient_id');
    }
    
  
}
