<?php

namespace App\Models;

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

class DiagnosaDetail extends Model
{
    use HasFactory;
    protected $primaryKey = 'id';
    protected $fillable = [
        'diagnosaId',
        'gejalaId',
        'nilaiKeyakinan',
    ];

    public function gejala()
    {
        return $this->belongsTo(Gejala::class, 'gejalaId', 'gejalaId');
    }
}
