diff --git a/src/domain/card-repository.ts b/src/domain/card-repository.ts new file mode 100644 index 0000000..0020cbd --- /dev/null +++ b/src/domain/card-repository.ts @@ -0,0 +1,12 @@ +import type { Card, CardInput } from './card' + +export interface CardRepository { + findAll(): Promise + findById(id: string): Promise + create(input: CardInput): Promise + update(id: string, input: Partial): Promise + delete(id: string): Promise + findRandom(): Promise + findRandomByTheme(theme: string): Promise + findThemes(): Promise +} \ No newline at end of file