<?php
declare(strict_types=1);

namespace App\Models;

use App\Core\Model;

/**
 * Role and Permission Model
 */
class RoleModel extends Model
{
    protected string $table = 'roles';

    public function getTenantRoles(int $tenantId): array
    {
        $stmt = $this->db->prepare("SELECT * FROM roles WHERE tenant_id = ?");
        $stmt->execute([$tenantId]);
        return $stmt->fetchAll();
    }
}
