wip
This commit is contained in:
17
packages/racing/domain/repositories/ISponsorRepository.ts
Normal file
17
packages/racing/domain/repositories/ISponsorRepository.ts
Normal 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>;
|
||||
}
|
||||
Reference in New Issue
Block a user