Changes between Version 2 and Version 3 of ExistingAdmin
- Timestamp:
- 08/24/26 16:06:46 (13 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExistingAdmin
v2 v3 8 8 **2.** The system displays a list of all registered users. 9 9 {{{#!sql 10 SELECT user_id, username, email, name, surname10 SELECT user_id, username, email, user_name, surname 11 11 FROM USERS 12 ORDER BY created_at DESC;12 ORDER BY user_created_at DESC; 13 13 }}} 14 14 … … 17 17 **4.** The system inserts a new record into the ADMINS table using the selected user's user_id. 18 18 {{{#!sql 19 INSERT INTO ADMINS (user_id )20 VALUES (1 );19 INSERT INTO ADMINS (user_id, assigned_at) 20 VALUES (1, CURRENT_TIMESTAMP); 21 21 }}} 22 22 23 23 **5.** The system confirms the user has been successfully promoted to admin and sends them a notification. 24 24 {{{#!sql 25 INSERT INTO NOTIFICATION ( content, is_read,created_at)26 VALUES ('You have been granted admin privileges on the platform.', FALSE, CURRENT_TIMESTAMP);25 INSERT INTO NOTIFICATION (notification_content, content_type, is_read, user_id, story_id, notification_created_at) 26 VALUES ('You have been granted admin privileges on the platform.', 'admin_promotion', FALSE, 1, ?, CURRENT_TIMESTAMP); 27 27 }}}
