server/src/main/java/com/example/server/repository/MemberRepository.java
<gh_stars>0package com.example.server.repository;

import com.example.server.entity.MemberEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface MemberRepository extends JpaRepository<MemberEntity, Long> {
    Optional<MemberEntity> findByUserId(String userId);
    boolean existsByUserId(String userId);
}
