package ru.soune.nocopy.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ru.soune.nocopy.entity.referral.ReferralLevelEntity;

import java.util.List;

@Repository
public interface ReferralLevelRepository extends JpaRepository<ReferralLevelEntity, Long> {
    List<ReferralLevelEntity> findAllByOrderByMinInviteesAsc();
    ReferralLevelEntity findById(String id);
}
