package com.example.dateplanner.repositories;

import com.example.dateplanner.models.entities.AppUser;
import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;

import java.util.UUID;

public interface AppUserRepository extends R2dbcRepository<AppUser, UUID> {

    Mono<AppUser> findByPhone(String phone);
    Mono<AppUser> findByUsername(String username);
}
