<?php

namespace App\Models;

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

class Departemen extends Model
{
    use HasFactory, SoftDeletes;
    protected $casts = [
        'level' => 'array',
    ];
    protected $fillable = ['name', 'level', 'kode'];

    public function jabatan()
    {
        return $this->hasMany(Jabatan::class);
    }
}
