package com.magistr.app.repository;

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

import java.util.List;

public interface SubjectCommentRepository extends JpaRepository<SubjectComment, Long> {
    List<SubjectComment> findBySubjectIdOrderByCreatedAtDesc(Long subjectId);
}
