PrismaUserProfileRepository
@adamondo/backend / infrastructure/prisma/repositories/PrismaUserProfileRepository
infrastructure/prisma/repositories/PrismaUserProfileRepository
Classes
PrismaUserProfileRepository
Defined in: src/infrastructure/prisma/repositories/PrismaUserProfileRepository.ts:5
Implements
Constructors
Constructor
new PrismaUserProfileRepository(
prisma):PrismaUserProfileRepository
Defined in: src/infrastructure/prisma/repositories/PrismaUserProfileRepository.ts:6
Parameters
prisma
Returns
Methods
findFirst()
findFirst(
where):Promise<{ } |null>
Defined in: src/infrastructure/prisma/repositories/PrismaUserProfileRepository.ts:12
Legacy lookup matching various filter criteria. Note: The UserProfile table was merged into User; profileId no longer exists.
Parameters
where
UserWhereInput
Returns
Promise<{ } | null>
Implementation of
UserProfileRepository.findFirst
findByUserId()
findByUserId(
userId):Promise<{ } |null>
Defined in: src/infrastructure/prisma/repositories/PrismaUserProfileRepository.ts:21
Find a user profile by their userId string.
Parameters
userId
string
Returns
Promise<{ } | null>
Implementation of
UserProfileRepository.findByUserId
findUserIdByProfileId()
findUserIdByProfileId(
_profileId):Promise<string|undefined>
Defined in: src/infrastructure/prisma/repositories/PrismaUserProfileRepository.ts:31
Legacy lookup for userId by numeric profile ID. Returns undefined as numeric profile IDs were discontinued in the schema merge.
Parameters
_profileId
number
Returns
Promise<string | undefined>
Implementation of
UserProfileRepository.findUserIdByProfileId
updatePicture()
updatePicture(
userId,picture):Promise<void>
Defined in: src/infrastructure/prisma/repositories/PrismaUserProfileRepository.ts:38
Update the profile picture URL for the given userId.
Parameters
userId
string
picture
string | null
Returns
Promise<void>