<?php

namespace App\Models;

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

class P4TimPenguji extends Model
{
    use HasFactory;

    protected $table = 'p4_tim_penguji';

    protected $fillable = [
        'nim_mahasiswa',
        'nama_mahasiswa',
        'judul_skripsi',
        'nip_penguji1',
        'nama_penguji1',
        'nip_penguji2',
        'nama_penguji2',
        'nip_penguji3',
        'nama_penguji3',
        'nip_penguji4',
        'nama_penguji4',
        'nip_penguji5',
        'nama_penguji5'
    ];

    public function mahasiswa()
    {
        return $this->belongsTo(Mahasiswa::class, 'nim_mahasiswa', 'nim');
    }
}
