package com.platform2easy.genesis.domain.repository;

import com.platform2easy.genesis.domain.model.AppUser;
import org.springframework.data.jpa.repository.JpaRepository;

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

public interface AppUserRepository extends JpaRepository<AppUser, Long> {
    Optional<AppUser> findByUserEmail(String userEmail);

    List<AppUser> findByCompanyId(Integer companyId);
}