Files
Checkmate/server/src/repositories/invites/IInvitesRepository.ts
T

13 lines
295 B
TypeScript
Raw Normal View History

2026-01-16 20:29:54 +00:00
import type { Invite } from "@/types/index.js";
export interface IInvitesRepository {
// create
2026-01-18 05:38:50 +00:00
create(invite: Partial<Invite>): Promise<Invite>;
2026-01-16 20:29:54 +00:00
// fetch
2026-01-18 05:38:50 +00:00
findByToken(token: string): Promise<Invite>;
2026-01-16 20:29:54 +00:00
findByTokenAndDelete(token: string): Promise<Invite>;
// update
// delete
// other
}