Skip to content

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