Changes between Version 2 and Version 3 of UserCreatesReadingList
- Timestamp:
- 08/24/26 16:11:57 (13 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UserCreatesReadingList
v2 v3 2 2 3 3 === Actor: **Regular User / Writer** 4 4 5 A user creates a new personal reading list, choosing whether to make it public or private. 5 6 … … 12 13 **4.** The system inserts a new record into the READING_LIST table. 13 14 {{{#!sql 14 INSERT INTO READING_LIST ( name, content, is_public, user_id, created_at,updated_at)15 INSERT INTO READING_LIST (list_name, list_content, is_public, user_id, list_created_at, list_updated_at) 15 16 VALUES ('Sara''s Fantasy Favorites', 16 17 'My collection of the best fantasy stories with strong female leads', … … 22 23 **6.** The system displays the reading list with zero stories added yet. 23 24 {{{#!sql 24 SELECT rl.list_id, rl. name, rl.content, rl.is_public, COUNT(rli.story_id) AS total_stories25 SELECT rl.list_id, rl.list_name, rl.list_content, rl.is_public, COUNT(rli.story_id) AS total_stories 25 26 FROM READING_LIST rl 26 27 LEFT JOIN READING_LIST_ITEMS rli ON rl.list_id = rli.list_id
