package com.ikon.projectmanagement.repository;

import com.ikon.projectmanagement.entity.ProjectSchedule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

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

@Repository
public interface ProjectScheduleRepository extends JpaRepository<ProjectSchedule, UUID> {
    Optional<ProjectSchedule> findByAccountIdAndProjectIdentifier(UUID accountId, UUID projectIdentifier);

    Optional<ProjectSchedule> findByAccountIdAndProductIdentifier(UUID accountId, UUID productIdentifier);

    List<ProjectSchedule> findAllByAccountId(UUID accountId);
}
