Spaces:
Sleeping

asd / src /libs /shared /infrastructure /postgres /repositories /IPgUserRepository.ts
GitHub Actions
deploy: clean snapshot
7f81110
Raw History Blame Contribute Delete
273 Bytes
import { User, NewUser } from "../schema/users";
export interface IPgUserRepository {
upsert(input: NewUser): Promise<void>;
findById(id: string): Promise<User | null>;
findByEmail(email: string): Promise<User | null>;
delete(id: string): Promise<void>;
}