package com.goldenchart.repository;

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

import java.util.List;

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