Changes between Version 2 and Version 3 of ExistingAdmin


Ignore:
Timestamp:
08/24/26 16:06:46 (13 days ago)
Author:
211099
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ExistingAdmin

    v2 v3  
    88**2.**  The system displays a list of all registered users.
    99{{{#!sql
    10 SELECT user_id, username, email, name, surname
     10SELECT user_id, username, email, user_name, surname
    1111FROM USERS
    12 ORDER BY created_at DESC;
     12ORDER BY user_created_at DESC;
    1313}}}
    1414
     
    1717**4.** The system inserts a new record into the ADMINS table using the selected user's user_id.
    1818{{{#!sql
    19 INSERT INTO ADMINS (user_id)
    20 VALUES (1);
     19INSERT INTO ADMINS (user_id, assigned_at)
     20VALUES (1, CURRENT_TIMESTAMP);
    2121}}}
    2222
    2323**5.**  The system confirms the user has been successfully promoted to admin and sends them a notification.
    2424{{{#!sql
    25 INSERT INTO NOTIFICATION (content, is_read, created_at)
    26 VALUES ('You have been granted admin privileges on the platform.', FALSE, CURRENT_TIMESTAMP);
     25INSERT INTO NOTIFICATION (notification_content, content_type, is_read, user_id, story_id, notification_created_at)
     26VALUES ('You have been granted admin privileges on the platform.', 'admin_promotion', FALSE, 1, ?, CURRENT_TIMESTAMP);
    2727}}}