package com.goldenchart.repository;

import com.goldenchart.entity.GcWatchlist;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface GcWatchlistRepository extends JpaRepository<GcWatchlist, Long> {
    List<GcWatchlist> findByUserIdOrderByDisplayOrderAsc(Long userId);
    List<GcWatchlist> findByDeviceIdOrderByDisplayOrderAsc(String deviceId);
    void deleteByUserIdAndSymbol(Long userId, String symbol);
    void deleteByDeviceIdAndSymbol(String deviceId, String symbol);
}
