package com.sikey.wa04.business.infrastructure.repository;

import com.sikey.wa04.business.infrastructure.dto.model.ChildModel;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import org.springframework.data.domain.Limit;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChildRepository extends JpaRepository<ChildModel, String> {
    List<ChildModel> findByPhoneNumberAndAreaCode(@Size(max = 125) @NotNull String phoneNumber, @Size(max = 10) @NotNull String areaCode);
}
