<?php

declare(strict_types=1);

namespace App\Models;

use DBCore\Permission\Models\Permission;

class DberpAdminPermission extends Permission
{
    /**
     * @var list<string>
     */
    protected $fillable = [
        'name',
        'display_name',
        'guard_name',
        'module',
        'description',
        'sort_order',
        'is_system',
    ];

    /**
     * @return array<string, string>
     */
    protected function casts(): array
    {
        return [
            'sort_order' => 'integer',
            'is_system' => 'boolean',
        ];
    }
}