<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

final class AdminMenuAction extends Model
{
    protected $table = 'admin_menu_actions';

    protected $fillable = [
        'menu_id',
        'action_id',
        'permission_code',
        'name',
        'status',
    ];

    /** @return BelongsTo<AdminMenu, AdminMenuAction> */
    public function menu(): BelongsTo
    {
        return $this->belongsTo(AdminMenu::class, 'menu_id');
    }
}
