Implement Backend for User Avatar Management #148
Labels
Backend
Backend Related Issue
📥Icebox
Not a current priority but kept for future reference
New Feature
New feature to be implemented
Milestone
Description
Develop the backend functionality to support user avatar management. This includes creating a new Supabase bucket for storing avatars, updating the database schema to associate avatars with users, and implementing API endpoints for fetching and uploading avatars. These updates will allow seamless integration with the frontend for displaying and updating user avatars.
Tasks
Supabase Bucket Setup:
Database Schema Update:
avatar_url
field to theUser
table inschema.prisma
:avatar_url
: Optional field to store the public URL of the user's avatar.API Endpoints:
GET
endpoint for fetching a user's avatar:avatar_url
field from the database.POST
endpoint for uploading/updating a user's avatar:avatar_url
field in the database.Error Handling and Logging:
Notes
avatar_url
field should be optional to account for users who do not upload an avatar.Profile
API for user data updates.The text was updated successfully, but these errors were encountered: