package de.assecutor.votianlt.repository;

import de.assecutor.votianlt.model.UserInvoiceData;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface UserInvoiceDataRepository extends MongoRepository<UserInvoiceData, ObjectId> {

    Optional<UserInvoiceData> findByUserId(ObjectId userId);

    void deleteByUserId(ObjectId userId);
}