<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class patientHcpName extends Model
{
    use HasFactory;
    protected $table = 'patient_hcp_name'; 
    protected $primaryKey = 'provider_id'; 

    protected $fillable = [
        'patient_id',
        'provider_name',
        'provider_contact',
        'provider_speacialty',
        'health_history_id'
    ];
     public $timestamps = false;  // Disable created_at and updated_at

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