<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use App\Models\Career;

class Application extends Model
{
    protected $fillable = [
        'career_id',
        'name',
        'birthdate',
        'resume_file',
        'email',
        'phone_number',
        'cover_letter',
    ];

    public function career(): BelongsTo
    {
        return $this->belongsTo(Career::class);
    }
}
