package de.assecutor.votianlt.repository;

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

import java.util.List;

@Repository
public interface SignatureRepository extends MongoRepository<Signature, ObjectId> {
    List<Signature> findByTaskId(ObjectId taskId);

    List<Signature> findByTaskIdOrderByCreatedAtDesc(ObjectId taskId);
}