Files
Checkmate/server/src/repositories/users/IUsersRepository.ts
T

12 lines
400 B
TypeScript
Raw Normal View History

2026-01-16 20:29:54 +00:00
import type { User } from "@/types/index.js";
export interface IUsersRepository {
// create
create(user: Partial<User>, imageFile?: Express.Multer.File | null): Promise<User>;
// fetch
findByEmail(email: string): Promise<User>;
// update
updateById(id: string, patch: Partial<User>, file?: Express.Multer.File | null): Promise<User>;
// delete
// other
findSuperAdmin(): Promise<boolean>;
}