<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserModuleOverride extends Model
{
    protected $fillable = [
        'user_id',
        'module_key',
        'is_allowed',
    ];

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

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
