<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class JobApplication extends Model
{
    protected $fillable = [
        'job_id',
        'first_name',
        'last_name',
        'email',
        'phone',
        'address',
        'city',
        'county',
        'postcode',
        'country',
        'resume_url',
        'cover_letter',
    ];

    public function job()
    {
        return $this->belongsTo(Job::class);
    }
}
