package com.dbnt.faisp.main.publicBoard.repository;

import com.dbnt.faisp.main.publicBoard.model.PublicFile;
import org.springframework.data.jpa.repository.JpaRepository;

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


public interface PublicFileRepository extends JpaRepository<PublicFile, PublicFile.PublicFileId> {
  List<PublicFile> findByPublicKey(Integer publicKey);
  Optional<PublicFile> findTopByPublicKeyOrderByFileSeq(Integer publicKey);

}
