package com.printcalculator.repository;

import com.printcalculator.entity.Order;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.UUID;

public interface OrderRepository extends JpaRepository<Order, UUID> {
    List<Order> findAllByOrderByCreatedAtDesc();

    boolean existsBySourceQuoteSession_Id(UUID sourceQuoteSessionId);
}
