Spaces:
Sleeping
Sleeping
Download src/libs/shared/infrastructure/postgres/repositories/IPgUserRepository.ts from fouadkhalid123/asd: direct link, hf CLI and curl.
- Browser
- Download file 273 Bytes
-
https://huggingface.co/spaces/fouadkhalid123/asd/resolve/main/src/libs/shared/infrastructure/postgres/repositories/IPgUserRepository.ts
- Command line
-
hf download hf://spaces/fouadkhalid123/asd/src/libs/shared/infrastructure/postgres/repositories/IPgUserRepository.ts
-
curl -L -o IPgUserRepository.ts https://huggingface.co/spaces/fouadkhalid123/asd/resolve/main/src/libs/shared/infrastructure/postgres/repositories/IPgUserRepository.ts
273 Bytes
| import { User, NewUser } from "../schema/users"; | |
| export interface IPgUserRepository { | |
| upsert(input: NewUser): Promise<void>; | |
| findById(id: string): Promise<User | null>; | |
| findByEmail(email: string): Promise<User | null>; | |
| delete(id: string): Promise<void>; | |
| } | |