package com.printhub.printhub.repository.security;

import com.printhub.printhub.entity.security.Permission;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface PermissionRepository extends JpaRepository<Permission, Long> {
    Optional<Permission> findByModule_NameAndAction(String moduleName, String action);
}
