This commit is contained in:
2025-12-10 00:38:59 +01:00
parent a4a732ddc5
commit 0f7fe67d3c
25 changed files with 1914 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
/**
* Repository Interface: ISponsorRepository
*
* Defines operations for Sponsor aggregate persistence
*/
import type { Sponsor } from '../entities/Sponsor';
export interface ISponsorRepository {
findById(id: string): Promise<Sponsor | null>;
findAll(): Promise<Sponsor[]>;
findByEmail(email: string): Promise<Sponsor | null>;
create(sponsor: Sponsor): Promise<Sponsor>;
update(sponsor: Sponsor): Promise<Sponsor>;
delete(id: string): Promise<void>;
exists(id: string): Promise<boolean>;
}