<?php

namespace App\Models;

use App\Models\Concerns\BelongsToOwner;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class PatientFamilyHistory extends Model
{
    use BelongsToOwner;

    protected $table = 'care_patient_family_history';

    protected $fillable = ['owner_ref', 'patient_id', 'relation', 'condition', 'notes'];

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