refactor to adapters

This commit is contained in:
2025-12-15 18:34:20 +01:00
parent fc671482c8
commit c817d76092
145 changed files with 906 additions and 361 deletions

View File

@@ -0,0 +1,19 @@
import { EmailAddress } from '../value-objects/EmailAddress';
import { User } from '../entities/User';
/**
* Domain Repository: IAuthRepository
*
* Repository interface for authentication operations.
*/
export interface IAuthRepository {
/**
* Find user by email
*/
findByEmail(email: EmailAddress): Promise<User | null>;
/**
* Save a user
*/
save(user: User): Promise<void>;
}