package com.magistr.app.repository;

import com.magistr.app.model.TeacherSubject;
import com.magistr.app.model.TeacherSubjectId;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherSubjectRepository extends JpaRepository<TeacherSubject, TeacherSubjectId> {
    List<TeacherSubject> findByUserId(Long userId);
    List<TeacherSubject> findBySubjectId(Long subjectId);
}
