<?php

namespace App\Models;

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

class PengajuanP1 extends Model
{
    use HasFactory;

    protected $table = 'pengajuan_p1';

    protected $fillable = [
        'nim',
        'file_disposisi',
        'file_transkrip',
        'file_ijazah',
        'file_khs',
        'file_pkk',
        'status',
        'tanggal_pengajuan'
    ];

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