package com.ttstd.signaling.repository;

import com.ttstd.signaling.model.DeviceAccount;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface DeviceAccountRepository extends JpaRepository<DeviceAccount, String> {
    Optional<DeviceAccount> findBySn(String sn);
    boolean existsBySn(String sn);
}
