<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ApplicationRejection extends Model
{
    protected $fillable = [
        'application_id', 'rejection_type', 'reason_code', 'reason_en', 'internal_notes', 'rejected_by',
    ];

    public function application()
    {
        return $this->belongsTo(Application::class);
    }

    public function rejectedBy()
    {
        return $this->belongsTo(User::class, 'rejected_by');
    }
}
