<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use App\Models\Application;

class Career extends Model
{
    protected $fillable = [
        'title',
        'title_description',
        'salary_per_month',
        'bullets',
        'location',
        'salary_currency',
    ];

    protected $casts = [
        'bullets' => 'array',
    ];

    public function applications(): HasMany
    {
        return $this->hasMany(Application::class);
    }
}
