package com.project.whatsappchatbot.repository;



import com.project.whatsappchatbot.model.Address;
import com.project.whatsappchatbot.model.Brand;
import com.project.whatsappchatbot.model.Order;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.security.config.web.servlet.oauth2.resourceserver.OpaqueTokenDsl;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface AddressRepository extends JpaRepository<Address, Long> {

    Optional<Address> findByUserId(String userId);
}




