<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Job extends Model
{
    protected $fillable = [
        'title',
        'department',
        'location',
        'job_type',
        'description',
        'requirements',
        'is_active',
        'sort_order',
    ];

    public function applications()
    {
        return $this->hasMany(JobApplication::class, 'job_id');
    }
}
