package com.saas.tenant.repository;

import com.saas.tenant.entity.RetellAgent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * Retell Agent Repository (TENANT DATABASE)
 * Pure JPA - NO SQL hardcoded
 */
@Repository
public interface RetellAgentRepository extends JpaRepository<RetellAgent, Long> {
    
    Optional<RetellAgent> findByRetellAgentId(String retellAgentId);
    
    List<RetellAgent> findByStatus(String status);
}
