activecourses / upwork-clone-backend

Upwork Clone: A platform connecting freelancers and clients for job postings, proposals, real-time chat, and secure payments via escrow.
MIT License
4 stars 5 forks source link

Implement "Delete User Account" in UserController #36

Open AhmedFatthy1040 opened 1 week ago

AhmedFatthy1040 commented 1 week ago

Issue Title: Implement "Delete User Account" in UserController

Issue Description:

As an admin, I want to be able to permanently delete a user account from the platform so that I can manage users effectively and remove any accounts that violate our policies.

Tasks:

  1. Create an endpoint in the UserController that allows the admin to delete a user account by their user ID.
  2. Ensure that when a user account is deleted, all associated data (e.g., user profile, jobs posted, reviews) is also removed from the database.
  3. Implement security measures to ensure only admin users can access this endpoint.

Acceptance Criteria:

Seifeldahshan commented 5 days ago

ill take this task