ZindagiAssan_Backend / src /modules /user /user.entity.ts
Talha812's picture
Upload 45 files
2c16c8c verified
raw
history blame contribute delete
303 Bytes
export class User {
constructor(
public readonly id: number,
public email: string,
public profilePictureUrl?: string | null
) {}
updateEmail(newEmail: string) {
this.email = newEmail;
}
updateProfilePicture(url: string) {
this.profilePictureUrl = url;
}
}