package ru.kirillius.pf.sdn.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import ru.kirillius.pf.sdn.entity.User;

import java.util.Optional;

public interface UserRepository extends JpaRepository<User, Long> {

    Optional<User> findByUsername(String username);

    boolean existsByUsername(String username);
}
