package com.mosquito.project.persistence.repository;

import com.mosquito.project.persistence.entity.ShortLinkEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface ShortLinkRepository extends JpaRepository<ShortLinkEntity, Long> {
    Optional<ShortLinkEntity> findByCode(String code);
    boolean existsByCode(String code);
}

