package com.ttstd.signaling.repository;

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

import java.util.Optional;

@Repository
public interface AdminAccountRepository extends JpaRepository<AdminAccount, String> {

    Optional<AdminAccount> findByUsername(String username);

    boolean existsByUsername(String username);

    long countByStatusNot(com.ttstd.signaling.model.AccountStatus status);
}
