<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class DepartmentModulePermission extends Model
{
    protected $fillable = [
        'department_id',
        'module_key',
        'is_allowed',
    ];

    protected $casts = [
        'is_allowed' => 'boolean',
    ];

    public function department()
    {
        return $this->belongsTo(Department::class);
    }
}
