Skip to content

Add User Profile/Settings Feature and Enhance User Account Deletion #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: backend_dev
Choose a base branch
from

Conversation

nhatminh23-03
Copy link
Collaborator

This pull request includes the following changes:

  • Created the profiles table with a unique user_id tied to the users table and enforced unique email constraint.
  • Enhanced the deleteAccount function to ensure all associated profiles and bookmarks are deleted when a user is deleted.
  • Implemented full CRUD operations for user profiles, including createProfile, getProfile, and updateProfile endpoints.
  • Added validation for profile inputs using Joi, ensuring proper email format and valid URLs for profile pictures.
  • Integrated the profile routes into the main user routes for access and operations.

These changes aim to improve user management and ensure data integrity across the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant