<?php

namespace App\Models;

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

class Career extends Model
{
    use HasFactory;

    protected $fillable = [
        'title',
        'category_id',
        'work_area',
        'job_type',
        'description',
        'candidate_requirement',
    ];

    public function category()
    {
        return $this->belongsTo(CareerCategory::class, 'category_id');
    }
}
