Changes between Initial Version and Version 1 of ExistingAdmin


Ignore:
Timestamp:
03/04/26 15:14:31 (3 weeks ago)
Author:
211099
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ExistingAdmin

    v1 v1  
     1== Admin Registration(Existing Admin)
     2
     3=== Authors: **Existing Admin**
     4An existing admin promotes an already registered user to admin role, granting them full read-write access to the entire system.
     5
     6**1.**  The admin navigates to the user management section of the platform.
     7
     8**2.**  The system displays a list of all registered users.
     9{{{#!sql
     10SELECT user_id, username, email, name, surname
     11FROM USERS
     12ORDER BY created_at DESC;
     13}}}
     14
     15**3.** The admin selects a user and assigns them the admin role.
     16
     17**4.** The system inserts a new record into the ADMINS table using the selected user's user_id.
     18{{{#!sql
     19INSERT INTO ADMINS (user_id)
     20VALUES (1);
     21}}}
     22
     23**5.**  The system confirms the user has been successfully promoted to admin and sends them a notification.
     24{{{#!sql
     25INSERT INTO NOTIFICATION (content, is_read, created_at)
     26VALUES ('You have been granted admin privileges on the platform.', FALSE, CURRENT_TIMESTAMP);
     27}}}