package com.devjob.user.repository;

import com.devjob.user.domain.Member;
import com.devjob.user.domain.Role;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;

public interface MemberRepository extends JpaRepository<Member, Long> {

    Optional<Member> findByEmail(String email);

    boolean existsByEmail(String email);

    List<Member> findByRoleOrderByCreatedAtDesc(Role role);
}
